Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hsi: Build hsi_boardinfo.c into hsi core if enabled

If the HSI core is built as a module hsi_boardinfo may still
be built-in as its Kconfig type is bool, which can cause build
issues. Fix this by building this code into the HSI core when
enabled.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>

authored by

Andrew F. Davis and committed by
Sebastian Reichel
e01957ab 3c13ab1d

+3 -2
+1 -1
Documentation/DocBook/device-drivers.tmpl
··· 511 511 </para> 512 512 513 513 !Iinclude/linux/hsi/hsi.h 514 - !Edrivers/hsi/hsi.c 514 + !Edrivers/hsi/hsi_core.c 515 515 </chapter> 516 516 517 517 <chapter id="pwm">
+2 -1
drivers/hsi/Makefile
··· 1 1 # 2 2 # Makefile for HSI 3 3 # 4 - obj-$(CONFIG_HSI_BOARDINFO) += hsi_boardinfo.o 5 4 obj-$(CONFIG_HSI) += hsi.o 5 + hsi-objs := hsi_core.o 6 + hsi-$(CONFIG_HSI_BOARDINFO) += hsi_boardinfo.o 6 7 obj-y += controllers/ 7 8 obj-y += clients/
drivers/hsi/hsi.c drivers/hsi/hsi_core.c