On 20.09.2010 18:44, Stephen Hemminger wrote: > Revised version of the original patch in the bug > https://bugzilla.kernel.org/show_bug.cgi?id=17622 > from clark wang > > I took the opportunity to do some cleanup here. > * reorder the assignment to make the byte order clear > * get rid of unnecessary ref/deref and just pass the bytes > * use sizeof() instead of hard coding size > > Signed-off-by: Stephen Hemminger Thanks Stephen, but this patch didn't compile: net/ipv4/netfilter/nf_nat_snmp_basic.c: In function 'fast_csum': net/ipv4/netfilter/nf_nat_snmp_basic.c:893: error: 's' undeclared (first use in this function) net/ipv4/netfilter/nf_nat_snmp_basic.c:893: error: (Each undeclared identifier is reported only once net/ipv4/netfilter/nf_nat_snmp_basic.c:893: error: for each function it appears in.) net/ipv4/netfilter/nf_nat_snmp_basic.c:890: warning: unused variable 'diff' Since I prefer to keep this fix to the minimal size at this point, I've committed this patch based on Clark's and your patches: