aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--udev.c2
-rw-r--r--udevd.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 162a78d3..f4f371d4 100644
--- 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 eb21f754..cc6ce105 100644
--- 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 e0c5bf5c..79de1124 100644
--- 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;