public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen@asianux.com>
To: Yoshinori Sato <ysato@users.sourceforge.jp>,
	Al Viro <viro@zeniv.linux.org.uk>,
	Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] h8300/kernel/h8300_ksyms.c: add "asm/gpio-internal.h" to pass compiling
Date: Mon, 26 Aug 2013 18:25:35 +0800	[thread overview]
Message-ID: <521B2D1F.8080402@asianux.com> (raw)

Need add "asm/gpio-internal.h" to pass compiling.

The related error (allmodconfig for h8300):

  In file included from include/linux/linkage.h:6:0,
                   from include/linux/kernel.h:6,
                   from include/linux/cache.h:4,
                   from include/linux/time.h:4,
                   from include/linux/stat.h:18,
                   from include/linux/module.h:10,
                   from arch/h8300/kernel/h8300_ksyms.c:1:
  arch/h8300/kernel/h8300_ksyms.c: At top level:
  arch/h8300/kernel/h8300_ksyms.c:98:15: error: 'h8300_reserved_gpio' undeclared here (not in a function)
   EXPORT_SYMBOL(h8300_reserved_gpio);
                 ^
  include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
    extern typeof(sym) sym;     \
                  ^
  arch/h8300/kernel/h8300_ksyms.c:98:1: note: in expansion of macro 'EXPORT_SYMBOL'
   EXPORT_SYMBOL(h8300_reserved_gpio);
   ^
  arch/h8300/kernel/h8300_ksyms.c:99:15: error: 'h8300_free_gpio' undeclared here (not in a function)
   EXPORT_SYMBOL(h8300_free_gpio);
                 ^
  include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
    extern typeof(sym) sym;     \
                  ^
  arch/h8300/kernel/h8300_ksyms.c:99:1: note: in expansion of macro 'EXPORT_SYMBOL'
   EXPORT_SYMBOL(h8300_free_gpio);
   ^
  arch/h8300/kernel/h8300_ksyms.c:100:15: error: 'h8300_set_gpio_dir' undeclared here (not in a function)
   EXPORT_SYMBOL(h8300_set_gpio_dir);
                 ^
  include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
    extern typeof(sym) sym;     \
                  ^
  arch/h8300/kernel/h8300_ksyms.c:100:1: note: in expansion of macro 'EXPORT_SYMBOL'
   EXPORT_SYMBOL(h8300_set_gpio_dir);
   ^
  cc1: some warnings being treated as errors
  make[1]: *** [arch/h8300/kernel/h8300_ksyms.o] Error 1
  make: *** [arch/h8300/kernel] Error 2


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/h8300/kernel/h8300_ksyms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/h8300/kernel/h8300_ksyms.c b/arch/h8300/kernel/h8300_ksyms.c
index 53d7c0e..a21900f 100644
--- a/arch/h8300/kernel/h8300_ksyms.c
+++ b/arch/h8300/kernel/h8300_ksyms.c
@@ -14,6 +14,7 @@
 #include <asm/io.h>
 #include <asm/checksum.h>
 #include <asm/current.h>
+#include <asm/gpio-internal.h>
 #include <asm/gpio.h>
 
 //asmlinkage long long __ashrdi3 (long long, int);
-- 
1.7.7.6

                 reply	other threads:[~2013-08-26 10:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=521B2D1F.8080402@asianux.com \
    --to=gang.chen@asianux.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=ysato@users.sourceforge.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox