lkml.org 
[lkml]   [2001]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectinclude/asm-i386/checksum.h
Hi,

compiling the new 2.4.5 kernel with GCC 3.0 came with several errors and
warnings. One of the most ugly warnings was:

include/asm/checksum.h: warning: multi-line string literals are deprecated

The diff to version 2.4.5 of it is attached.

Regards,
Erik Meusel

P.S.: would it be possible to patch the menuconfig in that way, that it
does look in the whole include-path for the <ncurses.h> and relating
files? they aren't in /usr/include/ in my system and I'm tired of patching
linux/scripts/lxdialog/Makefile all the time. :)
--- include/asm-i386/checksum.h Tue Feb 1 08:41:14 2000
+++ /scratch/backup/src/linux/include/asm/checksum.h Tue Jul 3 08:35:27 2001
@@ -72,18 +72,18 @@
- __asm__ __volatile__("
- movl (%1), %0
- subl $4, %2
- jbe 2f
- addl 4(%1), %0
- adcl 8(%1), %0
- adcl 12(%1), %0
-1: adcl 16(%1), %0
- lea 4(%1), %1
- decl %2
- jne 1b
- adcl $0, %0
- movl %0, %2
- shrl $16, %0
- addw %w2, %w0
- adcl $0, %0
- notl %0
-2:
+ __asm__ __volatile__("\
+ movl (%1), %0 \
+ subl $4, %2 \
+ jbe 2f \
+ addl 4(%1), %0 \
+ adcl 8(%1), %0 \
+ adcl 12(%1), %0 \
+1: adcl 16(%1), %0 \
+ lea 4(%1), %1 \
+ decl %2 \
+ jne 1b \
+ adcl $0, %0 \
+ movl %0, %2 \
+ shrl $16, %0 \
+ addw %w2, %w0 \
+ adcl $0, %0 \
+ notl %0 \
+2: \
@@ -105,3 +105,3 @@
- __asm__("
- addl %1, %0
- adcl $0xffff, %0
+ __asm__("\
+ addl %1, %0 \
+ adcl $0xffff, %0 \
@@ -121,5 +121,5 @@
- __asm__("
- addl %1, %0
- adcl %2, %0
- adcl %3, %0
- adcl $0, %0
+ __asm__("\
+ addl %1, %0 \
+ adcl %2, %0 \
+ adcl %3, %0 \
+ adcl $0, %0 \
@@ -161,12 +161,12 @@
- __asm__("
- addl 0(%1), %0
- adcl 4(%1), %0
- adcl 8(%1), %0
- adcl 12(%1), %0
- adcl 0(%2), %0
- adcl 4(%2), %0
- adcl 8(%2), %0
- adcl 12(%2), %0
- adcl %3, %0
- adcl %4, %0
- adcl $0, %0
+ __asm__("\
+ addl 0(%1), %0 \
+ adcl 4(%1), %0 \
+ adcl 8(%1), %0 \
+ adcl 12(%1), %0 \
+ adcl 0(%2), %0 \
+ adcl 4(%2), %0 \
+ adcl 8(%2), %0 \
+ adcl 12(%2), %0 \
+ adcl %3, %0 \
+ adcl %4, %0 \
+ adcl $0, %0 \
\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.039 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site