Skip to contentSkip to conversation

staging: unisys: Disable driver for UML

PATCH In review Richard Weinberger 2 participants 3 messages May 4, 2015 – May 10, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: unisys: Disable driver for UML

UML has no io memory nor cpuid.
Let's disable this driver for UML.

Fixes:
drivers/staging/unisys/common-spar/include/iovmcall_gnuc.h: In function ‘__unisys_vmcall_gnuc’:
drivers/staging/unisys/common-spar/include/iovmcall_gnuc.h:24:2: error: implicit declaration of function ‘cpuid’ [-Werror=implicit-function-declaration]
cpuid(0x00000001, &cpuid_eax, &cpuid_ebx, &cpuid_ecx, &cpuid_edx);
^
In file included from drivers/staging/unisys/uislib/uislib.c:33:0:
drivers/staging/unisys/include/uisutils.h: In function ‘dbg_ioremap_cache’:
drivers/staging/unisys/include/uisutils.h:78:2: error: implicit declaration of function ‘ioremap_cache’ [-Werror=implicit-function-declaration]
new = ioremap_cache(addr, size);
^
drivers/staging/unisys/include/uisutils.h:78:6: warning: assignment makes pointer from integer without a cast [enabled by default]

  new = ioremap_cache(addr, size);
      ^

drivers/staging/unisys/include/uisutils.h: In function ‘dbg_ioremap’:
drivers/staging/unisys/include/uisutils.h:89:2: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]
new = ioremap(addr, size);
^
drivers/staging/unisys/include/uisutils.h:89:6: warning: assignment makes pointer from integer without a cast [enabled by default]

  new = ioremap(addr, size);
      ^

drivers/staging/unisys/include/uisutils.h: In function ‘dbg_iounmap’:
drivers/staging/unisys/include/uisutils.h:98:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
iounmap(addr);

---
 drivers/staging/unisys/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/unisys/Kconfig +1 -1
index 19fcb34..a6d6c2a 100644
@@ -3,7 +3,7 @@
 #
 menuconfig UNISYSSPAR
 	bool "Unisys SPAR driver support"
-	depends on X86_64
+	depends on X86_64 && !UML
 	---help---
 	Support for the Unisys SPAR drivers
 
Signature · 1 line
1.8.4.5
maintainer
#1 lore raw
Quoted 2 lines · Richard Weinberger

UML has no io memory nor cpuid.
Let's disable this driver for UML.

Doesn't apply to my tree :(

#2 lore raw

Am 10.05.2015 um 15:02 schrieb Greg KH:

Quoted 5 lines · Richard Weinberger
Quoted 2 lines

UML has no io memory nor cpuid.
Let's disable this driver for UML.

Doesn't apply to my tree :(

I'm sorry Greg, looks like my -next tree needs updating. Will resend soon.

Thanks,
//richard