Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5608866imu; Mon, 26 Nov 2018 02:57:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xi9IEMuvxD0dA9kwDSLWq492i5K9eorY9UYoc9i0azzNjdirerI5LxOm2LM81n7ev0m5m9 X-Received: by 2002:a63:5c41:: with SMTP id n1mr23407584pgm.1.1543229864138; Mon, 26 Nov 2018 02:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229864; cv=none; d=google.com; s=arc-20160816; b=u1LMHnm+XYyDYGv1gmW+kMKwy0Xq5Oc4kMnRAPJuOlUz4MM9C+2s/oTUbxaOJHv/Ci BK9m3AM7JjQH/8nZRM760jDhbANrcL6eYv90evOuQGMFLaeNFkSYm+hXocK8C3O37sOT cKAu2RZkfofeCgUh7K/7MtAN7q3ecM2J4MUncNsxkwaLALMM8hco2XnktQuBQQH3pPja hBTh9pNh2RVShwMHLtXQSL18BkQKCpR5wWWKoaIhcVPf5uJVDc12X9rnkeNoPCKsSoGz GC5tI86vpfPmbmUA2nLLTejC9sMmzh9/xX3ASJ8Kg2RQYEeReSobmTbWNjVAcDUrb6HQ HAJQ== 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=4fn7Y3JGgnL6Ly6Cajc7eQpmhBKS/cjTQDEbGQbKToU=; b=O2hkfK28JkFCqJfodHHA4y0p9DAoWXZBIcXRSpxZXr1KDDQwzwATm163s7HFptUCyj R+lwQWoO2yDmmxWsk8DwGoo6x1bQmEH2h6otjR6TRGNe4+YsF5kcUGTldNR4hVwVxM9F dQvVM92/rLFlk5T1wmbgArey8xfbHyqd22id+Tvf7clGj0KXD7/xS5kgGgB7O+vl096i P+9yITXS0aOs21SQFB3+9e1hIk1NifX6HDrKynN1XNFTp0HvuCqWM8o3iYdzrIzKgyYd 7L1yJ6YUsL6hGouex4Krrgj4/WbR3gwDdTwswrBAoB5b7H1oJqMimTrY3oDgEf4n811y ZrQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uhBuyDM3; 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 v30si54946757pga.45.2018.11.26.02.57.29; Mon, 26 Nov 2018 02:57:44 -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=uhBuyDM3; 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 S1728268AbeKZVtw (ORCPT + 99 others); Mon, 26 Nov 2018 16:49:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:58940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeKZVtw (ORCPT ); Mon, 26 Nov 2018 16:49:52 -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 B69972089F; Mon, 26 Nov 2018 10:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229768; bh=SO/62bHlsYnShOLLAbZTeWvkdbFCS5ruDgb9etWEvRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uhBuyDM3PwdxoIabuOlrDiVUIXmQ7Cpoh0nP4egCy+jH8m7DD0gB0xvxQ9GXKUOGb fu62pa0NxNpPr8GfVLGeBoCF+0h3SAjnMyE74ymphudPZ2G196ztmDISplGX3/CLIY 1NblfqRBh7iiLPLyT3/l7ZCaPaxx6GXTB1pxnMos= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor Subject: [PATCH 4.4 65/70] misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data Date: Mon, 26 Nov 2018 11:51:20 +0100 Message-Id: <20181126105052.856164357@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. ------------------ From: Nathan Chancellor commit 7c97301285b62a41d6bceded7d964085fc8cc50f upstream. After building the kernel with Clang, the following section mismatch warning appears: WARNING: vmlinux.o(.text+0x3bf19a6): Section mismatch in reference from the function ssc_probe() to the function .init.text:atmel_ssc_get_driver_data() The function ssc_probe() references the function __init atmel_ssc_get_driver_data(). This is often because ssc_probe lacks a __init annotation or the annotation of atmel_ssc_get_driver_data is wrong. Remove __init from atmel_ssc_get_driver_data to get rid of the mismatch. Signed-off-by: Nathan Chancellor Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/misc/atmel-ssc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -129,7 +129,7 @@ static const struct of_device_id atmel_s MODULE_DEVICE_TABLE(of, atmel_ssc_dt_ids); #endif -static inline const struct atmel_ssc_platform_data * __init +static inline const struct atmel_ssc_platform_data * atmel_ssc_get_driver_data(struct platform_device *pdev) { if (pdev->dev.of_node) {