Skip to content

Commit

Permalink
Revert "[WATCHDOG] make watchdog/hpwdt.c:asminline_call() static"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Mingarelli authored and Wim Van Sebroeck committed Jun 17, 2008
1 parent c8988f9 commit 58c2709
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/watchdog/hpwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ MODULE_DEVICE_TABLE(pci, hpwdt_devices);

#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"
"movl %esp, %ebp \n\t"
Expand Down Expand Up @@ -333,8 +333,8 @@ static int __devinit detect_cru_service(void)

#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"
"movq %rsp, %rbp \n\t"
Expand Down

0 comments on commit 58c2709

Please sign in to comment.