Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5616725imu; Mon, 26 Nov 2018 03:04:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VS5utD5vn30NMrNWBYd94K1FRASBP8cxfMneRrqZVhPOcO8fFt4dxykjTtQSVpOvnHOFxP X-Received: by 2002:a17:902:7044:: with SMTP id h4mr7065194plt.35.1543230240523; Mon, 26 Nov 2018 03:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543230240; cv=none; d=google.com; s=arc-20160816; b=kJe5ZkrPf494c144J8/9kQfKg4dPoC4qOSvsop1mIk5ObL9YfzbkmOgNcpYpSEN/EB /Qb/AM8HWqcwxZRK1Sn26kuHSVDzkSBx1IOrmQ3seyYLppo4sgeIxTHTaiDMHEuefKO3 ztyKe84SIwdo1mhvYtSNbceywO89NlhHHdv/GXRPEXyFCyndwTl3MGwxyVedtNUy8Ypo MI4xjCLk6QACx5hIJODuKFTm4NzE8ND9XBh6IPXIlTeI5Rj2/nJ4QvKKRL13MqqJ5ysz 47UPoJ+lcG0JhKwez2a3qeynEneHia8QnoFurE8RsrHqBjtWcGXYUrb7eZW6mB3iJrw6 DSTQ== 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=fCURSMd0ZGmQqd2/aa6F9suXi+zaPC7lP0wcymr6XcY=; b=AAALdjBaJtuGtWHp+yj5dOX4okyOTt+rZ5oxjNL2VQGkmdeCuv+EP3HxnzwJaAn9Ay nxXNd1iQ1TaRGQdzb8rE9pC9UEjZUChhKscosDH0OOhpzItQ/+Oqdcph9XdZIqEhR02v Cv/ylTiLlxCgbpqFDgmDX8oGoSnD2Leh6/+wZLUtLx1nZZ88QGE731klwpJRsUmFFq5o m+FOE1vGfEspc8W9BENeqcek/K8dY1vDOdtRNZEeOVDHYisElrDKjUO52ouQmaRfZ3t/ VEwqHC0F1HZ7WzcJj+lkCaY09EutUENWFEkN7L1y0VZSPf2Hvyx27zMzieuX5i4SVG/c plJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lE7cKCoD; 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 d34si20640804pla.80.2018.11.26.03.03.45; Mon, 26 Nov 2018 03:04:00 -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=lE7cKCoD; 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 S1730013AbeKZVys (ORCPT + 99 others); Mon, 26 Nov 2018 16:54:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:37104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728901AbeKZVyr (ORCPT ); Mon, 26 Nov 2018 16:54:47 -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 A4F342089F; Mon, 26 Nov 2018 11:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543230062; bh=8xmfxdaDnz4aMlDHZ0d1+eQyWHPWFpJ9FP3ANfG+zNQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lE7cKCoDtRax+cQ6vviL/5mHPVirfL8M68Pz59Hz4Ze1NWGKuuMGXiIvFV3zzIZBS 3Aa3l1VNeKncwYoCNJ7PRoRV+VKU+7OW5VRF6OOk3o7NBPe1MNfwyKSXNWEKjYI+ek wwcM43pbmOm91+oL5JDYGuajfcRzSQ0Z+0FWCjSc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor Subject: [PATCH 4.14 56/62] misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data Date: Mon, 26 Nov 2018 11:51:37 +0100 Message-Id: <20181126105054.833001730@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105050.592727680@linuxfoundation.org> References: <20181126105050.592727680@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.14-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 @@ -132,7 +132,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) {