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]
Message-ID: <52205027.6070704@asianux.com>
Date:	Fri, 30 Aug 2013 15:56:23 +0800
From:	Chen Gang <gang.chen@...anux.com>
To:	Koichi Yasutake <yasutake.koichi@...panasonic.com>,
	Geert Uytterhoeven <geert@...ux-m68k.org>
CC:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] h8300: include: asm: add default 'ioremap_wc' definition
 in "io.h"

h8300 does not implement ioremap_wc(), but implement ioremap(), need
define ioremap_wc() just like "asm-generic/io.h" to pass compiling.

The related error (allmodconfig for h8300):

  drivers/video/uvesafb.c: In function 'uvesafb_ioremap':
  drivers/video/uvesafb.c:1563:2: error: implicit declaration of function 'ioremap_wc' [-Werror=implicit-function-declaration]


Signed-off-by: Chen Gang <gang.chen@...anux.com>
---
 arch/h8300/include/asm/io.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/h8300/include/asm/io.h b/arch/h8300/include/asm/io.h
index c1a8df2..0bf4577 100644
--- a/arch/h8300/include/asm/io.h
+++ b/arch/h8300/include/asm/io.h
@@ -262,6 +262,14 @@ static inline void *ioremap_fullcache(unsigned long physaddr, unsigned long size
 	return __ioremap(physaddr, size, IOMAP_FULL_CACHING);
 }
 
+#ifndef ioremap_nocache
+#define ioremap_nocache ioremap
+#endif
+
+#ifndef ioremap_wc
+#define ioremap_wc ioremap_nocache
+#endif
+
 extern void iounmap(void *addr);
 
 /* H8/300 internal I/O functions */
-- 
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