Hi Werner, On Thu, Oct 24, 2013 at 10:08:48AM -0300, Werner Almesberger wrote: > Alexander Aring wrote: > > @@ -1065,7 +1065,7 @@ lowpan_process_data(struct sk_buff *skb) > > skb_copy_to_linear_data(skb, &uh, sizeof(struct udphdr)); > > > > lowpan_raw_dump_table(__func__, "raw UDP header dump", > > - (u8 *)&uh, sizeof(uh)); > > + (u8 *)&uh, sizeof(uh)); > > This patch is odd. In the original, I see > > |.......|.......lowpan_raw_dump_table(__func__, "raw UDP header dump", > |.......|.......|.......|.......|.....(u8 *)&uh, sizeof(uh)); > > and no complaint from checkpatch --strict. And it does indeed look > correct. After your patch, it becomes > > |.......|.......lowpan_raw_dump_table(__func__, "raw UDP header dump", > |.......|.......|.......|.......(u8 *)&uh, sizeof(uh)); > > and checkpatch --strict complains > > CHECK: Alignment should match open parenthesis > #1068: FILE: ieee802154/6lowpan.c:1068: > > > }
Okay I fix this, never used --strict in checkpatch. Thanks for this hint. > > @@ -1080,8 +1080,8 @@ lowpan_process_data(struct sk_buff *skb) > > "nexthdr = 0x%02x\n\thop_lim = %d\n", hdr.version, > > ntohs(hdr.payload_len), hdr.nexthdr, hdr.hop_limit); > > > > - lowpan_raw_dump_table(__func__, "raw header dump", (u8 *)&hdr, > > - sizeof(hdr)); > > + lowpan_raw_dump_table(__func__, "raw header dump", > > + (u8 *)&hdr, sizeof(hdr)); > > This turns > > |.......lowpan_raw_dump_table(__func__, "raw header dump", (u8 *)&hdr, > |.......|.......|.......|.......|.......|.......|.......sizeof(hdr)); > > into > > |.......lowpan_raw_dump_table(__func__, "raw header dump", > |.......|.......|.......(u8 *)&hdr, sizeof(hdr)); > > still not satisfying checkpatch. > > > @@ -1117,7 +1117,7 @@ static int lowpan_get_mac_header_length(struct > > sk_buff *skb) > > > > static int > > lowpan_fragment_xmit(struct sk_buff *skb, u8 *head, > > - int mlen, int plen, int offset, int type) > > + int mlen, int plen, int offset, int type) > > lowpan_fragment_xmit(struct sk_buff *skb, u8 *head, > |.......|.......|.......int mlen, int plen, int offset, int type) > > becomes > > lowpan_fragment_xmit(struct sk_buff *skb, u8 *head, > |.......|.......int mlen, int plen, int offset, int type) > > checkpatch complains. > > > @@ -1142,8 +1142,8 @@ lowpan_fragment_xmit(struct sk_buff *skb, u8 *head, > > skb_copy_from_linear_data_offset(skb, offset + mlen, > > skb_put(frag, plen), plen); > > > > - lowpan_raw_dump_table(__func__, " raw fragment dump", frag->data, > > - frag->len); > > + lowpan_raw_dump_table(__func__, " raw fragment dump", > > + frag->data, frag->len); > > |.......lowpan_raw_dump_table(__func__, " raw fragment dump", frag->data, > |.......|.......|.......|.......|.......|.......|.......|.......frag->len); > > becomes > > |.......lowpan_raw_dump_table(__func__, " raw fragment dump", > |.......|.......|.......frag->data, frag->len); > Got here: CHECK: Alignment should match open parenthesis #54: FILE: net/ieee802154/6lowpan.c:1146: + lowpan_raw_dump_table(__func__, " raw fragment dump", + frag->data, frag->len); I will fix this too. - Alex ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel