netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Build failure due commit 9217e566bdee
@ 2018-04-04  7:22 Jarkko Nikula
  2018-04-04  8:00 ` Mike Looijmans
  0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Nikula @ 2018-04-04  7:22 UTC (permalink / raw)
  To: Mike Looijmans
  Cc: linux-kernel, netdev, Andrew Lunn, Florian Fainelli,
	David S. Miller

Hi

Today's head and linux-next doesn't compile due commit 9217e566bdee 
("of_net: Implement of_get_nvmem_mac_address helper"):

drivers/of/of_net.o: In function `of_get_nvmem_mac_address':
.../drivers/of/of_net.c:100: undefined reference to `of_nvmem_cell_get'
.../drivers/of/of_net.c:104: undefined reference to `nvmem_cell_read'
.../drivers/of/of_net.c:106: undefined reference to `nvmem_cell_put'
Makefile:1033: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

Builds if I set CONFIG_NVMEM=y from CONFIG_NVMEM=m or revert above commit.

-- 
Jarkko

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

* Re: Build failure due commit 9217e566bdee
  2018-04-04  7:22 Build failure due commit 9217e566bdee Jarkko Nikula
@ 2018-04-04  8:00 ` Mike Looijmans
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Looijmans @ 2018-04-04  8:00 UTC (permalink / raw)
  To: Jarkko Nikula
  Cc: linux-kernel, netdev, Andrew Lunn, Florian Fainelli,
	David S. Miller

On 04-04-18 09:22, Jarkko Nikula wrote:
> Hi
> 
> Today's head and linux-next doesn't compile due commit 9217e566bdee ("of_net: 
> Implement of_get_nvmem_mac_address helper"):
> 
> drivers/of/of_net.o: In function `of_get_nvmem_mac_address':
> .../drivers/of/of_net.c:100: undefined reference to `of_nvmem_cell_get'
> .../drivers/of/of_net.c:104: undefined reference to `nvmem_cell_read'
> .../drivers/of/of_net.c:106: undefined reference to `nvmem_cell_put'
> Makefile:1033: recipe for target 'vmlinux' failed
> make: *** [vmlinux] Error 1
> 
> Builds if I set CONFIG_NVMEM=y from CONFIG_NVMEM=m or revert above commit.
> 


I've been looking into it, but haven't come up with a proper solution.

The issue is that OF_NET now requires NVMEM as either not-present or built-in, 
but cannot support it as module.

I don't know if that requirement can be expressed. I think having nvnmem_core 
as a module doesn't make much sense anyway, but that's not up to me.

Moving the code from of to nvmem seems weird, but would solve it.



Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

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

end of thread, other threads:[~2018-04-04  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-04  7:22 Build failure due commit 9217e566bdee Jarkko Nikula
2018-04-04  8:00 ` Mike Looijmans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).