Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5642267imu; Mon, 26 Nov 2018 03:25:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/W0VAIMWTD6AzZyLPNsJTx7uFC6oioNMhKJWme/noZMBuUChcu6jDdgqToH2uL4i7lV+PIp X-Received: by 2002:a17:902:7783:: with SMTP id o3mr7283589pll.23.1543231501308; Mon, 26 Nov 2018 03:25:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543231501; cv=none; d=google.com; s=arc-20160816; b=EG7s13+rJy1Bx23h6sgHkj4FBmJIr1iatsFN4szJoqd3ZcdUZavVJZusrYy+9baumC sXlm2whYxMNksgfmdGzqyMQgEV+lfysiqlM4PzLGLFpZJssA4jDOji80lzD7pIktkOZz utqFxuOwvf4duXBNvWpHnlSCEl75wyr9C5aZ/x1JZl9/Edf+pq8x4xCIFF4ORp8JhZ+D 5GETJbBHf5/ZuCW2Aic0xy17qTI5NG+N71nQYj18B8/yMdXV342nbrAP7V2u5tC7jWBa mF6OBPSRy0MUDmdJsImSpI36Ev8cffPl40JJqcxBTBWWEliGhGeA69HqW2NLxDyHQJBN OXbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Il20JHtxhXjSnnbBFNKYav58Bz4/JeTmFqTo4NzIv9E=; b=dCrCYCoSuxhMm8It/8GspJ1ctpA+cgJjW8HrV8dGFae1o8aaLfEL/FzSxqtd1yzPqZ beU8jsdoDulqYjKnENXjXj7ejEUHKyBSk+kusFgmYLXueN83PnZafcF+UFfo+Ed6xt3h t4GNxunwtRmOkCHeZle3bBcZG9KooV8rKVt+FjHktUgFw8KeucApEA4nv+kUFSDVPwpz lntbjosbfzgV33KguvVtfyJutkXdHTH8h3SerxYrBfbK/YPlw7Al3fEJqD//tS79ACMa oEzxm96556pAEHdWwtksnKdUIG4w8xTMTauyv0plkQTgPBmPwvEv/vWu99xy2Q2yS7E0 yEew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Eaze3M+L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si9440pgv.351.2018.11.26.03.24.46; Mon, 26 Nov 2018 03:25:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Eaze3M+L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728448AbeKZVuT (ORCPT + 99 others); Mon, 26 Nov 2018 16:50:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:59470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbeKZVuS (ORCPT ); Mon, 26 Nov 2018 16:50:18 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C43A2146F; Mon, 26 Nov 2018 10:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229793; bh=0RUWJyw14SPecctHq9ctbB6fBVuK0u7YA+fHi5oqiR8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eaze3M+LsGDd1SqYHPXoSa4htlNvCYvKHfiRoRcMrLSivWPM7AHIvvmXpQFVT/Mfm VFafRaZ2HK5FQ2wX3XknLpfm6U/F8/C8pOJ62It34RW7oKzmSQOVtl1ShEs6qy7cLn z/iQSkoo0uVb+Thv1wEm2PUf3ELXys4gVMnIwYrM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Guenter Roeck , Sasha Levin Subject: [PATCH 4.4 51/70] hwmon: (ibmpowernv) Remove bogus __init annotations Date: Mon, 26 Nov 2018 11:51:06 +0100 Message-Id: <20181126105051.837827181@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit e3e61f01d755188cb6c2dcf5a244b9c0937c258e ] If gcc decides not to inline make_sensor_label(): WARNING: vmlinux.o(.text+0x4df549c): Section mismatch in reference from the function .create_device_attrs() to the function .init.text:.make_sensor_label() The function .create_device_attrs() references the function __init .make_sensor_label(). This is often because .create_device_attrs lacks a __init annotation or the annotation of .make_sensor_label is wrong. As .probe() can be called after freeing of __init memory, all __init annotiations in the driver are bogus, and should be removed. Signed-off-by: Geert Uytterhoeven Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/ibmpowernv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index 55b5a8ff1cfe..ca3aa28977bc 100644 --- a/drivers/hwmon/ibmpowernv.c +++ b/drivers/hwmon/ibmpowernv.c @@ -114,7 +114,7 @@ static ssize_t show_label(struct device *dev, struct device_attribute *devattr, return sprintf(buf, "%s\n", sdata->label); } -static int __init get_logical_cpu(int hwcpu) +static int get_logical_cpu(int hwcpu) { int cpu; @@ -125,9 +125,8 @@ static int __init get_logical_cpu(int hwcpu) return -ENOENT; } -static void __init make_sensor_label(struct device_node *np, - struct sensor_data *sdata, - const char *label) +static void make_sensor_label(struct device_node *np, + struct sensor_data *sdata, const char *label) { u32 id; size_t n; -- 2.17.1