Linux-mm Archive on lore.kernel.org
 help / color / Atom feed
* [mmotm:master 236/260] sdhci-of-aspeed.c:undefined reference to `of_platform_device_create'
@ 2019-09-29  7:35 kbuild test robot
  2019-09-30 23:28 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2019-09-29  7:35 UTC (permalink / raw)
  To: Andrew Morton
  Cc: kbuild-all, Linux Memory Management List, Lu Shuaibing, Johannes Weiner

[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]

Hi Andrew,

It's probably a bug fix that unveils the link errors.

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   89331b857195aa00660fb19f1383924e95f7709e
commit: d9cc9c2bd830a180cc8ac762a739fcfd3fc6c330 [236/260] linux-next-git-rejects
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d9cc9c2bd830a180cc8ac762a739fcfd3fc6c330
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sparc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   drivers/mmc/host/sdhci-of-aspeed.o: In function `aspeed_sdc_probe':
>> sdhci-of-aspeed.c:(.text+0xf8): undefined reference to `of_platform_device_create'

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 59247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mmotm:master 236/260] sdhci-of-aspeed.c:undefined reference to `of_platform_device_create'
  2019-09-29  7:35 [mmotm:master 236/260] sdhci-of-aspeed.c:undefined reference to `of_platform_device_create' kbuild test robot
@ 2019-09-30 23:28 ` Randy Dunlap
  2019-10-09  6:37   ` [kbuild-all] " Rong Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2019-09-30 23:28 UTC (permalink / raw)
  To: kbuild test robot, Andrew Morton
  Cc: kbuild-all, Linux Memory Management List, Lu Shuaibing, Johannes Weiner

On 9/29/19 12:35 AM, kbuild test robot wrote:
> Hi Andrew,
> 
> It's probably a bug fix that unveils the link errors.
> 
> tree:   git://git.cmpxchg.org/linux-mmotm.git master
> head:   89331b857195aa00660fb19f1383924e95f7709e
> commit: d9cc9c2bd830a180cc8ac762a739fcfd3fc6c330 [236/260] linux-next-git-rejects
> config: sparc-allyesconfig (attached as .config)
> compiler: sparc64-linux-gcc (GCC) 7.4.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout d9cc9c2bd830a180cc8ac762a739fcfd3fc6c330
>         # save the attached .config to linux build tree
>         GCC_VERSION=7.4.0 make.cross ARCH=sparc 
> 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>    `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>    `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>    `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>    drivers/mmc/host/sdhci-of-aspeed.o: In function `aspeed_sdc_probe':
>>> sdhci-of-aspeed.c:(.text+0xf8): undefined reference to `of_platform_device_create'

I don't see how this last build error could happen with
mmotm-2019-09-25-18-10 (latest ATM) since it contains this patch:

commit 72976643aef55a2a3eec85e5342a3c3608f66e64
Author: Andrew Jeffery <andrew@aj.id.au>
Date:   Wed Sep 4 11:51:20 2019 +0930

    mmc: sdhci-of-aspeed: Depend on CONFIG_OF_ADDRESS
    
    Resolves the following build error reported by the 0-day bot:
    
        ERROR: "of_platform_device_create" [drivers/mmc/host/sdhci-of-aspeed.ko] undefined!
    
    SPARC does not set CONFIG_OF_ADDRESS so the symbol is missing. Depend on
    CONFIG_OF_ADDRESS to ensure the driver is only built for supported
    configurations.
    
    Fixes: 2d28dbe042f4 ("mmc: sdhci-of-aspeed: Add support for the ASPEED SD controller")
    Reported-by: kbuild test robot <lkp@intel.com>
    Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>


I cannot reproduce this problem with mmotm latest.

-- 
~Randy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [kbuild-all] Re: [mmotm:master 236/260] sdhci-of-aspeed.c:undefined reference to `of_platform_device_create'
  2019-09-30 23:28 ` Randy Dunlap
@ 2019-10-09  6:37   ` " Rong Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Rong Chen @ 2019-10-09  6:37 UTC (permalink / raw)
  To: Randy Dunlap, kbuild test robot, Andrew Morton
  Cc: kbuild-all, Linux Memory Management List, Lu Shuaibing, Johannes Weiner



On 10/1/19 7:28 AM, Randy Dunlap wrote:
> On 9/29/19 12:35 AM, kbuild test robot wrote:
>> Hi Andrew,
>>
>> It's probably a bug fix that unveils the link errors.
>>
>> tree:   git://git.cmpxchg.org/linux-mmotm.git master
>> head:   89331b857195aa00660fb19f1383924e95f7709e
>> commit: d9cc9c2bd830a180cc8ac762a739fcfd3fc6c330 [236/260] linux-next-git-rejects
>> config: sparc-allyesconfig (attached as .config)
>> compiler: sparc64-linux-gcc (GCC) 7.4.0
>> reproduce:
>>          wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>>          chmod +x ~/bin/make.cross
>>          git checkout d9cc9c2bd830a180cc8ac762a739fcfd3fc6c330
>>          # save the attached .config to linux build tree
>>          GCC_VERSION=7.4.0 make.cross ARCH=sparc
>>
>> If you fix the issue, kindly add following tag
>> Reported-by: kbuild test robot <lkp@intel.com>
>>
>> All errors (new ones prefixed by >>):
>>
>>     `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>>     `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>>     `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>>     `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
>>     drivers/mmc/host/sdhci-of-aspeed.o: In function `aspeed_sdc_probe':
>>>> sdhci-of-aspeed.c:(.text+0xf8): undefined reference to `of_platform_device_create'
> I don't see how this last build error could happen with
> mmotm-2019-09-25-18-10 (latest ATM) since it contains this patch:
>
> commit 72976643aef55a2a3eec85e5342a3c3608f66e64
> Author: Andrew Jeffery <andrew@aj.id.au>
> Date:   Wed Sep 4 11:51:20 2019 +0930
>
>      mmc: sdhci-of-aspeed: Depend on CONFIG_OF_ADDRESS
>      
>      Resolves the following build error reported by the 0-day bot:
>      
>          ERROR: "of_platform_device_create" [drivers/mmc/host/sdhci-of-aspeed.ko] undefined!
>      
>      SPARC does not set CONFIG_OF_ADDRESS so the symbol is missing. Depend on
>      CONFIG_OF_ADDRESS to ensure the driver is only built for supported
>      configurations.
>      
>      Fixes: 2d28dbe042f4 ("mmc: sdhci-of-aspeed: Add support for the ASPEED SD controller")
>      Reported-by: kbuild test robot <lkp@intel.com>
>      Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
>      Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>
>
> I cannot reproduce this problem with mmotm latest.
>

Thanks for the explanation, the master branch doesn't contain the fix 
patch, so the bot reported it.

Best Regards,
Rong Chen


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-29  7:35 [mmotm:master 236/260] sdhci-of-aspeed.c:undefined reference to `of_platform_device_create' kbuild test robot
2019-09-30 23:28 ` Randy Dunlap
2019-10-09  6:37   ` [kbuild-all] " Rong Chen

Linux-mm Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mm/0 linux-mm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mm linux-mm/ https://lore.kernel.org/linux-mm \
		linux-mm@kvack.org linux-mm@archiver.kernel.org
	public-inbox-index linux-mm

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kvack.linux-mm


AGPL code for this site: git clone https://public-inbox.org/ public-inbox