lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 26 Aug 2013 18:25:35 +0800
From:	Chen Gang <gang.chen@...anux.com>
To:	Yoshinori Sato <ysato@...rs.sourceforge.jp>,
	Al Viro <viro@...iv.linux.org.uk>,
	Geert Uytterhoeven <geert@...ux-m68k.org>
CC:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] h8300/kernel/h8300_ksyms.c: add "asm/gpio-internal.h" to
 pass compiling

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@...anux.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ