[PATCH] input/misc: wistron_btns: disable on UML

2022-11-30 Thread Randy Dunlap
The wistron_btns driver calls rtc_cmos_read(), which isn't available with UML builds, so disable this driver on UML. Prevents this build error: ld: drivers/input/misc/wistron_btns.o: in function `poll_bios': wistron_btns.c:(.text+0x4be): undefined reference to `rtc_cmos_read' Fixes: 0bbadafdc49d

[PATCH 2/2] IB/rdmavt: don't use rdmavt for UML

2022-11-30 Thread Randy Dunlap
When building rdmavt for ARCH=um, qp.c has a build error on a reference to the x86-specific cpuinfo field 'x86_cache_size'. Fix the build errors by making this driver depend on !UML. Prevents these build errors: ../drivers/infiniband/sw/rdmavt/qp.c: In function ‘rvt_wss_llc_size’: ../drivers/inf

[PATCH 1/2 v2] IB/qib: don't use qib_wc_x86_64 for UML

2022-11-30 Thread Randy Dunlap
When building qib_wc_x86_64.c on ARCH=um, references to some cpuinfo fields cause build errors since cpuinfo does not contain x86-specific fields. Fix the build errors by making this driver depend on !UML. Prevents these build errors: ../drivers/infiniband/hw/qib/qib_wc_x86_64.c: In function ‘qi

[PATCH 1/2] fbdev: geode: don't build on UML

2022-11-30 Thread Randy Dunlap
The geode fbdev driver uses struct cpuinfo fields that are not present on ARCH=um, so don't allow this driver to be built on UML. Prevents these build errors: In file included from ../arch/x86/include/asm/olpc.h:7:0, from ../drivers/mfd/cs5535-mfd.c:17: ../arch/x86/include/asm/ge

[PATCH 2/2] fbdev: uvesafb: don't build on UML

2022-11-30 Thread Randy Dunlap
The uvesafb fbdev driver uses memory management information that is not available on ARCH=um, so don't allow this driver to be built on UML. Prevents these build errors: ../drivers/video/fbdev/uvesafb.c: In function ‘uvesafb_vbe_init’: ../drivers/video/fbdev/uvesafb.c:807:21: error: ‘__supported_

Re: [PATCH] input/misc: wistron_btns: disable on UML

2022-11-30 Thread Dmitry Torokhov
On Wed, Nov 30, 2022 at 08:16:04AM -0800, Randy Dunlap wrote: > The wistron_btns driver calls rtc_cmos_read(), which isn't > available with UML builds, so disable this driver on UML. > > Prevents this build error: > > ld: drivers/input/misc/wistron_btns.o: in function `poll_bios': > wistron_btns.

[PATCH] mfd: cs5535: don't build on UML

2022-11-30 Thread Randy Dunlap
The cs5535-mfd driver uses CPU-specific data that is not available for ARCH=um builds, so don't allow it to be built for UML. Prevents these build errors: In file included from ../arch/x86/include/asm/olpc.h:7, from ../drivers/mfd/cs5535-mfd.c:17: ../arch/x86/include/asm/geode.h:

Re: [PATCH 2/2] fbdev: uvesafb: don't build on UML

2022-11-30 Thread Helge Deller
On 11/30/22 22:55, Randy Dunlap wrote: The uvesafb fbdev driver uses memory management information that is not available on ARCH=um, so don't allow this driver to be built on UML. Prevents these build errors: ../drivers/video/fbdev/uvesafb.c: In function ‘uvesafb_vbe_init’: ../drivers/video/fbd

Re: [PATCH 1/2] fbdev: geode: don't build on UML

2022-11-30 Thread Helge Deller
On 11/30/22 22:55, Randy Dunlap wrote: The geode fbdev driver uses struct cpuinfo fields that are not present on ARCH=um, so don't allow this driver to be built on UML. Prevents these build errors: In file included from ../arch/x86/include/asm/olpc.h:7:0, from ../drivers/mfd/c