X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-x86_64%2Fchecksum.h;fp=include%2Fasm-x86_64%2Fchecksum.h;h=989469e8e0b7d756ce2d3a0e17d76c83d2763d3a;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=d01356f01448188f4f8322c371b0899c2d47ae16;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/include/asm-x86_64/checksum.h b/include/asm-x86_64/checksum.h index d01356f01..989469e8e 100644 --- a/include/asm-x86_64/checksum.h +++ b/include/asm-x86_64/checksum.h @@ -64,7 +64,7 @@ static inline unsigned short ip_fast_csum(unsigned char *iph, unsigned int ihl) " adcl $0, %0\n" " notl %0\n" "2:" - /* 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)