Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1530786

[PATCH] Fix multiple definition error under lto

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Peter Foley <pefoley2@pefoley.com>
Newsgroups linux.kernel
Subject [PATCH] Fix multiple definition error under lto
Date Sat, 26 Nov 2016 23:30:01 +0100
Message-ID <sHTDP-47v-1@gated-at.bofh.it> (permalink)
X-Original-To linux-kernel@vger.kernel.org, rui.zhang@intel.com, edubezval@gmail.com, linux-pm@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=pefoley.com; s=google; h=from:to:cc:subject:date:message-id; bh=Sxc2vPxuQystu+7vnBWxSGo0JifNXtiLReK524ZSXNs=; b=gW/Mhw/ZyrEPGYUI3Hook0C/sq3Dh2uJsIxlJu3EJtMBBf3HObTZBqI2/B4vf+uvsa dO6fndw2OCGw8LXzEtjM6nxVfvqa2OZyAn46BtrFs1yr2XNfD5DtS1lmf8G1CyL2dtFt YOnIIXkDr9dERHWuWHZNlLOiMYHP2vfrh6gaI=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Sxc2vPxuQystu+7vnBWxSGo0JifNXtiLReK524ZSXNs=; b=kIWZoUmVRv7+VArcf67cP+hQ508BJIMO9pYfNDtE2gyehIMh+dmKlS6kXL9U7VofVY 0aZWU/1lx3nnNlcGXyI8HL7pr119F8TjeSBFoAFc8h8xbyVP5ufr8NcWMAbVeosk1ndK F4obCnkvJYlz/t6/4yPZVjQJSiKApVck5FMXJ8CpJeOWPn7UcXY9PYKhNPtWNxYYhybP 9fFNILgc3Vw7VGN5Dtwj+rpv1E2363IuOPZb7vWxKBz+y9OhgWfNAlfdH7L67LJFKQel Rgg8Up8yC27mQrNZ3SLPRx17gYl6r2Kvz98rG/EgiMn40waDB6GXozOObxgABWkY4Ksb x/NQ==
X-Gm-Message-State AKaTC03vIwSY1s1HqGS/6XssFIqsRCRNrXeJyREvr+zsBugII7jPfEVZLHxXyGvOLX9Jmw==
X-Received by 10.237.60.200 with SMTP id e8mr12590327qtf.248.1480199133353; Sat, 26 Nov 2016 14:25:33 -0800 (PST)
X-Mailer git-send-email 2.11.0.rc2
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 33
Organization linux.* mail to news gateway
X-Original-Cc Peter Foley <pefoley2@pefoley.com>
X-Original-Date Sat, 26 Nov 2016 17:25:28 -0500
X-Original-Message-ID <20161126222528.15261-1-pefoley2@pefoley.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1530786

Show key headers only | View raw


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 <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);
-- 
2.11.0.rc2

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] Fix multiple definition error under lto Peter Foley <pefoley2@pefoley.com> - 2016-11-26 23:30 +0100

csiph-web