Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5605285imu; Mon, 26 Nov 2018 02:54:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/XYlqjA6AjPNnhoP5AQ59v21aoUJfNFm69KYo8FbR0gKpmwslk+Cw5GIRh3t+iHBJk7BW7r X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr24713297plg.250.1543229659477; Mon, 26 Nov 2018 02:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229659; cv=none; d=google.com; s=arc-20160816; b=YEyc8AF2E+PTCwzR3zTs4OOD6SMJ8QIeyKADp0jy1BjaBd1QIEjduuyGGhP84gfNVt B0o0AuZfYMabo6oynsV5KIf/IBqPtoSoAbwfLxqu57T5Ov4hmQGPHMK/njjhoWv4cwF9 CN45l3n4qay6JTRhhSMPZCm/IDhch/5wmKzeAm5PIWYfBSdn8DIkOIziEB6h0djGrbTO HUOjchRbGv2KoIHNsR6A3MIA/UihpWVrveoOnkp0BH2WxXyQ93kjXYt0l/hX/DFTQDEN UM28pjsaxI44i2l2tBn2aQgLRgrxNxyLZMe+Dr3OsDXaigCkzBU1JQSrjzc54cZp1Y/r AeMQ== 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=adZOgrx2wnn7bugsTxlPXT0ET6ZvlJAAnyGPJBRaWUQ=; b=Z54ZOOgt+u0nLzdwfWK50mrF3Q/4pGi/qn+hekVbt+dnq+Df+3f8+8yC2Mzwsqdend iwmKNAdbn5e17mOQY2ZP+vBen0/aPs7zivMBUALqPSvBkoy6gToE2Iql9nWML3MDnX23 8Bq/6CuxxDVsi0CSSFL5ouEXzWzJpM8//bLYpoa+j8n/iLY+LVEkEXh7ARuUcAjOzm3/ K5CN2DYBM9/87skSkJyi+INS0z94hL44/N7TEnW/JISnTQI7HYmbP3uuv2PNCh9wYawp IcUD9ePIu7YWAlxgWSuVn6Lv1u1tlmrWSPjOSFlmCTqvBkbbNmvmIG/Owt8KztM9CbYI aKeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zoUHfGJh; 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 7si47830888pfb.226.2018.11.26.02.54.03; Mon, 26 Nov 2018 02:54:19 -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=zoUHfGJh; 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 S1726655AbeKZVqv (ORCPT + 99 others); Mon, 26 Nov 2018 16:46:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:54798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbeKZVqv (ORCPT ); Mon, 26 Nov 2018 16:46:51 -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 13D8221104; Mon, 26 Nov 2018 10:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229587; bh=H60eppQvurAFqBnkljUCiDCXaTNwl0tHRPU5FoK+R4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zoUHfGJhOR/c+GaGjKcpirX9/5zIclhvZF/fRiKbAH2+t3iNBVoT3vMa1kMzdFENT yZ1XW004MT/tmOfrObwsOlvVMjpFPh3/9jd7Oez0P7/FeacNKGo7WI3iccN43meWOc jC1Ts4WXlIZWFx3cjpPt9mug4OBDARXAZMsG2VNY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor Subject: [PATCH 3.18 20/24] misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data Date: Mon, 26 Nov 2018 11:51:14 +0100 Message-Id: <20181126105032.574548647@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105029.790599475@linuxfoundation.org> References: <20181126105029.790599475@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 3.18-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) {