Skip to content

Commit

Permalink
arch/microblaze/include/asm/entry.h: Include "linux/linkage.h" to avo…
Browse files Browse the repository at this point in the history
…id compiling issue

"entry.h" needs 'asmlinkage', and "asm/linkage.h" does not provide it.
So need include "linux/linkage.h" to use generic one instead of.

The related error (with allmodconfig under microblaze):

    CC [M]  drivers/net/ethernet/emulex/benet/be_main.o
  In file included from ./arch/microblaze/include/asm/processor.h:17:0,
                   from include/linux/prefetch.h:14,
                   from drivers/net/ethernet/emulex/benet/be_main.c:18:
  ./arch/microblaze/include/asm/entry.h:33:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
   extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall);
                     ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Chen Gang authored and Michal Simek committed Sep 9, 2014
1 parent 2ce7598 commit dd03524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/microblaze/include/asm/entry.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <asm/percpu.h>
#include <asm/ptrace.h>
#include <linux/linkage.h>

/*
* These are per-cpu variables required in entry.S, among other
Expand Down

0 comments on commit dd03524

Please sign in to comment.