X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-i386%2Fchecksum.h;h=67d3630c4e8953c74773ce17aaf1bf2c197c1930;hb=314981ac7177a933319e3c071a5cf0a579205e6e;hp=641342002bcd39e3835793394b3961b59efd8427;hpb=325a479c4c110db278ef3361460a48c4093252cc;p=powerpc.git diff --git a/include/asm-i386/checksum.h b/include/asm-i386/checksum.h index 641342002b..67d3630c4e 100644 --- a/include/asm-i386/checksum.h +++ b/include/asm-i386/checksum.h @@ -3,6 +3,8 @@ #include +#include + /* * computes the checksum of a memory block at buff, length len, * and adds in "sum" (32-bit) @@ -81,7 +83,7 @@ static inline unsigned short ip_fast_csum(unsigned char * iph, "adcl $0, %0 ;\n" "notl %0 ;\n" "2: ;\n" - /* Since the input registers which are loaded with iph and ipl + /* Since the input registers which are loaded with iph and ihl are modified, we must also specify them as outputs, or gcc will assume they contain their original values. */ : "=r" (sum), "=r" (iph), "=r" (ihl)