diff mbox

[l2-mtd:master,47/48] jedec_probe.c:undefined reference to `cfi_build_cmd_addr'

Message ID 20150528013805.GN27753@ld-irv-0074
State Accepted
Commit bde90062a38160fdce0d51a4340bb93c1a8f1114
Headers show

Commit Message

Brian Norris May 28, 2015, 1:38 a.m. UTC
+ linux-mtd

On Thu, May 28, 2015 at 09:31:27AM +0800, kbuild test robot wrote:
> tree:   git://git.infradead.org/users/dedekind/l2-mtd.git master
> head:   636fdbf88efe069f9951d1b7df8d3fd82060dc60
> commit: 4612c715a6ea6b3af2aee0163c0721375b2548d7 [47/48] mtd: cfi: deinline large functions
> config: i386-randconfig-r1 (attached as .config)
> reproduce:
>   git checkout 4612c715a6ea6b3af2aee0163c0721375b2548d7
>   # save the attached .config to linux build tree
>   make ARCH=i386 
> 
> All error/warnings:
> 
>    drivers/built-in.o: In function `jedec_read_id':
> >> jedec_probe.c:(.text+0x187ed8): undefined reference to `cfi_build_cmd_addr'
>    drivers/built-in.o: In function `jedec_read_mfr':
> >> jedec_probe.c:(.text+0x187f4a): undefined reference to `cfi_build_cmd_addr'
>    drivers/built-in.o: In function `jedec_reset':
> >> jedec_probe.c:(.text+0x187fe0): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x188004): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x18802b): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x18804e): undefined reference to `cfi_send_gen_cmd'
>    drivers/built-in.o: In function `jedec_probe_chip':
> >> jedec_probe.c:(.text+0x188130): undefined reference to `cfi_build_cmd_addr'
> >> jedec_probe.c:(.text+0x18814d): undefined reference to `cfi_build_cmd_addr'
> >> jedec_probe.c:(.text+0x1881dc): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x188203): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x18822d): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x1884c0): undefined reference to `cfi_send_gen_cmd'
> >> jedec_probe.c:(.text+0x1884e7): undefined reference to `cfi_send_gen_cmd'
>    drivers/built-in.o:jedec_probe.c:(.text+0x188511): more undefined references to `cfi_send_gen_cmd' follow
>    drivers/built-in.o: In function `jedec_probe_chip':
> >> jedec_probe.c:(.text+0x188618): undefined reference to `cfi_build_cmd'
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

I think this comes down to these two:

> CONFIG_MTD_JEDECPROBE=y
> CONFIG_MTD_CFI_UTIL=m

I'll apply the following if nobody has objections:

Signed-off-by: Brian Norris <computersforpeace@gmail.com>

Comments

Brian Norris May 28, 2015, 6:12 p.m. UTC | #1
On Wed, May 27, 2015 at 6:38 PM, Brian Norris
<computersforpeace@gmail.com> wrote:
> I think this comes down to these two:
>
>> CONFIG_MTD_JEDECPROBE=y
>> CONFIG_MTD_CFI_UTIL=m
>
> I'll apply the following if nobody has objections:
>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>

Applied to l2-mtd.git, with a bit of context for a commit message.
diff mbox

Patch

diff --git a/drivers/mtd/chips/Kconfig b/drivers/mtd/chips/Kconfig
index 9f02c28c0204..54479c481a7a 100644
--- a/drivers/mtd/chips/Kconfig
+++ b/drivers/mtd/chips/Kconfig
@@ -16,6 +16,7 @@  config MTD_CFI
 config MTD_JEDECPROBE
 	tristate "Detect non-CFI AMD/JEDEC-compatible flash chips"
 	select MTD_GEN_PROBE
+	select MTD_CFI_UTIL
 	help
 	  This option enables JEDEC-style probing of flash chips which are not
 	  compatible with the Common Flash Interface, but will use the common