Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1540125 > unrolled thread
| Started by | Zhang Rui <rui.zhang@intel.com> |
|---|---|
| First post | 2016-12-12 04:50 +0100 |
| Last post | 2016-12-13 16:10 +0100 |
| 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.
Re: [PATCH] Fix multiple definition error under lto Zhang Rui <rui.zhang@intel.com> - 2016-12-12 04:50 +0100
Re: [PATCH] Fix multiple definition error under lto Eduardo Valentin <edubezval@gmail.com> - 2016-12-13 04:20 +0100
Re: [PATCH] Fix multiple definition error under lto Jiri Kosina <jikos@kernel.org> - 2016-12-13 16:10 +0100
| From | Zhang Rui <rui.zhang@intel.com> |
|---|---|
| Date | 2016-12-12 04:50 +0100 |
| Subject | Re: [PATCH] Fix multiple definition error under lto |
| Message-ID | <sNpMJ-7EK-1@gated-at.bofh.it> |
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?
thanks,
rui
> Signed-off-by: Peter Foley <pefoley2@pefoley.com>
> ---
> drivers/thermal/thermal_core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/thermal_core.c
> b/drivers/thermal/thermal_core.c
> index 226b0b4aced6..23ec1dd2ff3b 100644
> --- a/drivers/thermal/thermal_core.c
> +++ b/drivers/thermal/thermal_core.c
> @@ -643,7 +643,7 @@ static void thermal_zone_device_check(struct
> work_struct *work)
> container_of(_dev, struct thermal_zone_device, device)
>
> static ssize_t
> -type_show(struct device *dev, struct device_attribute *attr, char
> *buf)
> +thermal_type_show(struct device *dev, struct device_attribute *attr,
> char *buf)
> {
> struct thermal_zone_device *tz = to_thermal_zone(dev);
>
> @@ -1159,7 +1159,7 @@ int power_actor_set_power(struct
> thermal_cooling_device *cdev,
> return 0;
> }
>
> -static DEVICE_ATTR(type, 0444, type_show, NULL);
> +static DEVICE_ATTR(type, 0444, thermal_type_show, NULL);
> static DEVICE_ATTR(temp, 0444, temp_show, NULL);
> static DEVICE_ATTR(mode, 0644, mode_show, mode_store);
> static DEVICE_ATTR(passive, S_IRUGO | S_IWUSR, passive_show,
> passive_store);
[toc] | [next] | [standalone]
| From | Eduardo Valentin <edubezval@gmail.com> |
|---|---|
| Date | 2016-12-13 04:20 +0100 |
| Message-ID | <sNLNf-4oe-9@gated-at.bofh.it> |
| In reply to | #1540125 |
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): first defined here > > > can you illustrate how to reproduce this problem? same here. I am not able to see this. Can you please describe your environment?
[toc] | [prev] | [next] | [standalone]
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Date | 2016-12-13 16:10 +0100 |
| Message-ID | <sNWSl-2IE-29@gated-at.bofh.it> |
| In reply to | #1540815 |
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 this problem? > > same here. I am not able to see this. Can you please describe your > environment? I'm pretty sure he's experimenting with LTO and hitting the LTO phase getting link-time symbol conflicts between definitions coming from thermal and base. I'd even say this to be a toolchain bug, given the fact that both symbols are static. -- Jiri Kosina SUSE Labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web