Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1421473 > unrolled thread

Re: [PATCH 06/12] hsi: Only descend into hsi directory when CONFIG_HSI is set

Started bykbuild test robot <lkp@intel.com>
First post2016-06-14 02:40 +0200
Last post2016-06-15 14:50 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 06/12] hsi: Only descend into hsi directory when  CONFIG_HSI is set kbuild test robot <lkp@intel.com> - 2016-06-14 02:40 +0200
    [PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled "Andrew F. Davis" <afd@ti.com> - 2016-06-14 18:20 +0200
      Re: [PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled Sebastian Reichel <sre@kernel.org> - 2016-06-15 14:50 +0200

#1421473 — Re: [PATCH 06/12] hsi: Only descend into hsi directory when CONFIG_HSI is set

Fromkbuild test robot <lkp@intel.com>
Date2016-06-14 02:40 +0200
SubjectRe: [PATCH 06/12] hsi: Only descend into hsi directory when CONFIG_HSI is set
Message-ID<rJKyB-5yc-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

[auto build test ERROR on gpio/for-next]
[also build test ERROR on v4.7-rc3 next-20160609]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Andrew-F-Davis/gpio-Only-descend-into-gpio-directory-when-CONFIG_GPIOLIB-is-set/20160614-061705
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next
config: i386-randconfig-sb0-06140627 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

>> ERROR: "hsi_board_list" [drivers/hsi/hsi.ko] undefined!

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [next] | [standalone]


#1422057 — [PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled

From"Andrew F. Davis" <afd@ti.com>
Date2016-06-14 18:20 +0200
Subject[PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled
Message-ID<rJZeh-7cH-7@gated-at.bofh.it>
In reply to#1421473
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>
---
This build error seems to be due to Kconfig symbol CONFIG_HSI_BOARDINFO
being a bool but depending on a tristate (CONFIG_HSI). This is normally
okay when it is just a flag to enable a feature in source, but the
helper code file hsi_boardinfo.c is built as a separate entity when
enabled. This patch is probably how it was intended, and is more like
how others do this kind of thing.

This patch should be applied before the parent patch:

 drivers/hsi/Makefile              | 3 ++-
 drivers/hsi/{hsi.c => hsi_core.c} | 0
 2 files changed, 2 insertions(+), 1 deletion(-)
 rename drivers/hsi/{hsi.c => hsi_core.c} (100%)

diff --git a/drivers/hsi/Makefile b/drivers/hsi/Makefile
index 360371e..9694478 100644
--- a/drivers/hsi/Makefile
+++ b/drivers/hsi/Makefile
@@ -1,7 +1,8 @@
 #
 # Makefile for HSI
 #
-obj-$(CONFIG_HSI_BOARDINFO)    += hsi_boardinfo.o
 obj-$(CONFIG_HSI)              += hsi.o
+hsi-objs                       := hsi_core.o
+hsi-$(CONFIG_HSI_BOARDINFO)    += hsi_boardinfo.o
 obj-y                          += controllers/
 obj-y                          += clients/
diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi_core.c
similarity index 100%
rename from drivers/hsi/hsi.c
rename to drivers/hsi/hsi_core.c
-- 
2.8.3

[toc] | [prev] | [next] | [standalone]


#1422982 — Re: [PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled

FromSebastian Reichel <sre@kernel.org>
Date2016-06-15 14:50 +0200
SubjectRe: [PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled
Message-ID<rKiqC-2zV-13@gated-at.bofh.it>
In reply to#1422057

[Multipart message — attachments visible in raw view] — view raw

Hi Andrew,

On Tue, Jun 14, 2016 at 11:13:04AM -0500, Andrew F. Davis wrote:
> 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>
> ---
> This build error seems to be due to Kconfig symbol CONFIG_HSI_BOARDINFO
> being a bool but depending on a tristate (CONFIG_HSI). This is normally
> okay when it is just a flag to enable a feature in source, but the
> helper code file hsi_boardinfo.c is built as a separate entity when
> enabled. This patch is probably how it was intended, and is more like
> how others do this kind of thing.
> 
> This patch should be applied before the parent patch:

Thanks, I applied both patches.

-- Sebastian

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web