瀏覽代碼

Revert "[WATCHDOG] make watchdog/hpwdt.c:asminline_call() static"

The driver needs the asmlinkage tag and the CFLAGS line in the Makefile.
Without it the driver doesn't work.

Signed-off-by: Thomas Mingarelli <Thomas.Mingarelli@hp.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Thomas Mingarelli 17 年之前
父節點
當前提交
58c2709c2b
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      drivers/watchdog/hpwdt.c

+ 4 - 4
drivers/watchdog/hpwdt.c

@@ -145,8 +145,8 @@ MODULE_DEVICE_TABLE(pci, hpwdt_devices);
 
 
 #define HPWDT_ARCH	32
 #define HPWDT_ARCH	32
 
 
-static void asminline_call(struct cmn_registers *pi86Regs,
-			   unsigned long *pRomEntry)
+asmlinkage void asminline_call(struct cmn_registers *pi86Regs,
+			       unsigned long *pRomEntry)
 {
 {
 	asm("pushl       %ebp               \n\t"
 	asm("pushl       %ebp               \n\t"
 	    "movl        %esp, %ebp         \n\t"
 	    "movl        %esp, %ebp         \n\t"
@@ -333,8 +333,8 @@ static int __devinit detect_cru_service(void)
 
 
 #define HPWDT_ARCH	64
 #define HPWDT_ARCH	64
 
 
-static void asminline_call(struct cmn_registers *pi86Regs,
-			   unsigned long *pRomEntry)
+asmlinkage void asminline_call(struct cmn_registers *pi86Regs,
+			       unsigned long *pRomEntry)
 {
 {
 	asm("pushq      %rbp            \n\t"
 	asm("pushq      %rbp            \n\t"
 	    "movq       %rsp, %rbp      \n\t"
 	    "movq       %rsp, %rbp      \n\t"