]> err.no Git - systemd/commitdiff
[PATCH] Add 'asmlinkage' to udev-030
authortrini@kernel.crashing.org <trini@kernel.crashing.org>
Tue, 10 Aug 2004 07:49:42 +0000 (00:49 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:36:59 +0000 (21:36 -0700)
The following patch adds 'asmlinkage' defines to udev, to kill off 2
warnings on !i386.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Makefile
udev.c
udevd.c

index 162a78d39dc16fc0a4ad44b5c202ddbd28516b72..f4f371d463c0820144a888d639d8fdf64bcd911b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -114,9 +114,9 @@ ifeq ($(strip $(TARGET_ARCH)),i386)
                /dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2"; fi}
        OPTIMIZATION += ${shell if $(CC) -malign-functions=0 -malign-jumps=0 -S -o /dev/null -xc \
                /dev/null >/dev/null 2>&1; then echo "-malign-functions=0 -malign-jumps=0"; fi}
-       CFLAGS+=-pipe
+       CFLAGS+=-pipe -Dasmlinkage=__attribute__((regparm(0)))
 else
-       CFLAGS+=-pipe
+       CFLAGS+=-pipe -Dasmlinkage=
 endif
 
 ifeq ($(strip $(USE_LOG)),true)
diff --git a/udev.c b/udev.c
index eb21f7546104b0b287afdaaffe7857205a749665..cc6ce10542928a53bf0adbb099b0acd6efebe256 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -55,7 +55,7 @@ void log_message(int level, const char *format, ...)
 }
 #endif
 
-__attribute__((regparm(0))) static void sig_handler(int signum)
+asmlinkage static void sig_handler(int signum)
 {
        switch (signum) {
                case SIGINT:
diff --git a/udevd.c b/udevd.c
index e0c5bf5c779789f10d2faf0714dc812dacd0fa6f..79de11248ec5e8db484ce31318916d446af6353a 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -306,7 +306,7 @@ skip:
        return;
 }
 
-__attribute__((regparm(0))) static void sig_handler(int signum)
+asmlinkage static void sig_handler(int signum)
 {
        int rc;