Re: [PATCH] Fix multiple definition error under lto

2016-12-13 Thread Jiri Kosina
On Mon, 12 Dec 2016, Eduardo Valentin wrote: > > > drivers/thermal/built-in.o: In function `type_show.lto_priv.33': > > > (.text+0x3d80): multiple definition of `type_show.lto_priv.33' > > > drivers/base/built-in.o:(.text+0x2a40): first defined here > > > > > can you illustrate how to reproduce t

Re: [PATCH] Fix multiple definition error under lto

2016-12-12 Thread Eduardo Valentin
On Mon, Dec 12, 2016 at 11:45:06AM +0800, Zhang Rui wrote: > On Sat, 2016-11-26 at 17:25 -0500, Peter Foley wrote: > > drivers/thermal/built-in.o: In function `type_show.lto_priv.33': > > (.text+0x3d80): multiple definition of `type_show.lto_priv.33' > > drivers/base/built-in.o:(.text+0x2a40): firs

Re: [PATCH] Fix multiple definition error under lto

2016-12-11 Thread Zhang Rui
On Sat, 2016-11-26 at 17:25 -0500, Peter Foley wrote: > drivers/thermal/built-in.o: In function `type_show.lto_priv.33': > (.text+0x3d80): multiple definition of `type_show.lto_priv.33' > drivers/base/built-in.o:(.text+0x2a40): first defined here > can you illustrate how to reproduce this problem?

[PATCH] Fix multiple definition error under lto

2016-11-26 Thread Peter Foley
drivers/thermal/built-in.o: In function `type_show.lto_priv.33': (.text+0x3d80): multiple definition of `type_show.lto_priv.33' drivers/base/built-in.o:(.text+0x2a40): first defined here Signed-off-by: Peter Foley --- drivers/thermal/thermal_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de