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>
/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)
}
#endif
-__attribute__((regparm(0))) static void sig_handler(int signum)
+asmlinkage static void sig_handler(int signum)
{
switch (signum) {
case SIGINT:
return;
}
-__attribute__((regparm(0))) static void sig_handler(int signum)
+asmlinkage static void sig_handler(int signum)
{
int rc;