From patchwork Sat Sep 16 20:42:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 112820 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2069160qgf; Sat, 16 Sep 2017 13:42:46 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5X1jzE1jpR1D82xY1+BQgNKDzcuChWYY3DaNVHM/7ePMO75Nx1aXd/CoUb8EEcatcTkcTg X-Received: by 10.84.210.45 with SMTP id z42mr31997108plh.178.1505594566625; Sat, 16 Sep 2017 13:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505594566; cv=none; d=google.com; s=arc-20160816; b=tPWmBS6+W7A3IWocG3tVZHkeQkR/sbeF2CsoOrs3X7TDXFeKv8AdKTTrm15HlwPbc6 oXB2qy0HaGiUVjJMGLrEofPmyE4XJQlCc2DjkVlKSNyYvp+WQHcbE3VN73TFQDCUjVUY nbOQGxzU/ORPKyQxI11FCn7sVxZD1bNAJVY8+ublmMRsjDXzSytwlcS/WriCCpfTfOMx hpQt/G3W46HUK+5T0BslJFTRhdGwrvTthtsuCVjA9t0DcxDcNzO0QcgvIH2X5+dVfK7a KX966YfiOXedj0f0TMTGZWwi5/Q/Jj9Q8/sbVAEcVSvZ5C+F6t2a9KkdYBO9hjlvWIKz sifw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oh6qQjzUINZHB0sn0Efi5E8nLRUNG54f/Mdi2qui2EA=; b=cS0dnJH8XSHaaLKlQ4tkdkw1CzDjOzKKdPLEOwMEFPNfXDfCRJt96BJiKMrALS5WIz IGu6eip9DtHqrlEvdmiAncz3y0s6bosb8sSPdhrAs4ewMpsCPjmR9Vy9IaMCcu8FXboM LvU71N+3QIiYvKj8Sr3deSTTVidVyhHFkJ2OMsj8J11zYkIZes51CS4l02jr44J4KR1W WzQUxT9paxp3aUFxPajfu0jUVBeTyehVzzPhMEgSz2bwQ1bmAYOWUtl6UM003/RyyIJZ dpIir/hNTX2JZ1TQ3hzLijVKjTAZ8sGCGCpft8I04HC+bKRp7x0mq9DxB5ztxi8X6wF+ ad2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 w27si614439pfl.331.2017.09.16.13.42.45; Sat, 16 Sep 2017 13:42:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274AbdIPUmo (ORCPT + 5 others); Sat, 16 Sep 2017 16:42:44 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:61614 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbdIPUmn (ORCPT ); Sat, 16 Sep 2017 16:42:43 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LyBrp-1dN7uA0rbh-015WME; Sat, 16 Sep 2017 22:42:35 +0200 From: Arnd Bergmann To: Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Linus Walleij Cc: Arnd Bergmann , linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: omap: omap_gpio_show_rev is not __init Date: Sat, 16 Sep 2017 22:42:21 +0200 Message-Id: <20170916204234.725130-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:AIUbWyQ2ijZBOMaRjiJ4t3oaYJCDptmZlV8LnlCoFAlpZTNW5b3 EDJVhW3vAk1DmIWo1Nj3L0khtb/wD+tDFqfDbQwrI8blLasR4lP/adFNT/q5YYlt3exiMX1 Fe1TGCv5DiHJXEzXhg8ybysAupIboUA6s+gtB3mgIjlTNLfaZbnstLU4xU0m9ndykcnLW69 pxUypNUFMuqAGKsC/2wAA== X-UI-Out-Filterresults: notjunk:1; V01:K0:iqebl3/GIeQ=:nwINSMw5QIkA3LC1IoKXTp xUcnG9xIsr6FpdtDM7SNNRUUCFukU9etDORC4efB66iF6Wxsz07BfUGiVT/pw5FVQ9k6XZt6B jcgVjQdr2A0WzmpmBMe8QBLKx0PEF0KAy6+V3DfnbtgI3Vzq1agh0aXKk1qNfTRBSarVjeWPb nHsVwygdrLbgjmiFakJDeFPhrqVLJYNFAOQXwNBCaEoKBpBebTyzXWgEoMP3NGFW1LqtDVLTe w/wA8Cm4dqigD/9aWfAQ2ebOvdxdcowxFdGDiOBDzQRPZZG1pR3ZOaGH56kixOAM2Crr08H9R 5Q/xgAdQbHJmoxOjabTTw4eSNW97EZ/lmDMdxTcBLr2CbBdW+QDfK6+xiyzuK13ClgmDqRiOa luhEmcAyefgHG4ibf96H4qXTN3KuyaEUNuG7rSVDcJBNJQrFRkhkR3Su1WNORWi+tTkwbtzXq rS0/PVxsvSww8JUmfTMi46XtJEZCKjOtf9Js5gGwz2HG1ndgZtSUO72Fy4PSqvjCzKl2ud410 aJTd4XjxOWtxQQmlj6uE8O63+kOtRgarcZlsPooDRGCTNN6lD0edfFJwHVNbmGrxK5WzaQ0ad cCTEnq+w++HP1xGZXQHCF5J23Y7OFIPKygOdsjGH2tiGyvX+c0dVlZdkRll33rqpluJV3oQ6r EkifUrDUSE/H4cdvrOLCP+qVjQgs/pDGJZnD4gfKwl0uzDYixw5KaOGn6OK0ZvSJO4LHKkfO7 0p3W3xwKVkzRijWENCimKYkNV5IVZWSH3x5shw== Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The probe function calls omap_gpio_show_rev(), which on most compilers is inlined, but on the old gcc-4.6 is not, causing a valid warning about the incorrect __init annotation: WARNING: vmlinux.o(.text+0x40f614): Section mismatch in reference from the function omap_gpio_probe() to the function .init.text:omap_gpio_show_rev() The function omap_gpio_probe() references the function __init omap_gpio_show_rev(). This is often because omap_gpio_probe lacks a __init annotation or the annotation of omap_gpio_show_rev is wrong. This removes the __init. Signed-off-by: Arnd Bergmann --- drivers/gpio/gpio-omap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index dbf869fb63ce..22d7d4838265 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1010,7 +1010,7 @@ static void omap_gpio_set(struct gpio_chip *chip, unsigned offset, int value) /*---------------------------------------------------------------------*/ -static void __init omap_gpio_show_rev(struct gpio_bank *bank) +static void omap_gpio_show_rev(struct gpio_bank *bank) { static bool called; u32 rev;