From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1538FC76192 for ; Thu, 18 Jul 2019 03:10:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1C0420818 for ; Thu, 18 Jul 2019 03:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419450; bh=LVlEiPFeJbtO6VnpMvXNyX31kTw7u6VPkc/1xh/HUIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=0dKR/hidNQRBJxzY91oy2yQIj3x0z5Hw3JBOPCRS8dxvbnVDDXQJ0V8eHVD78fM2x liboUAGLRZtB4nM/6GINm4fRneKV3E56oYw4rD0XM4OmM/F/umKSlLogqqkjM11+6U pqUPiloGpQ2z3Kw72CTZsIvIZJM/iPeOQFe1TFwk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390779AbfGRDKi (ORCPT ); Wed, 17 Jul 2019 23:10:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:43944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391207AbfGRDKi (ORCPT ); Wed, 17 Jul 2019 23:10:38 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (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 E59B620818; Thu, 18 Jul 2019 03:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419437; bh=LVlEiPFeJbtO6VnpMvXNyX31kTw7u6VPkc/1xh/HUIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mdHuGQdFV2jkOzTFIKyGdpg5HtBY67knUKNZ63xuFmSrPeIPEqj2g45ufdsy+zOtd lIQcwZM5y0tCTdMv3OfTVuX0ZSOn7kXBJC/Hjo7JpUbW8ZbU+ENjhLz9rWHpGbLho2 bfcf4ZuYCAA81Ex03dIgoNm8RYL3XgOGVEUFDrIE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Tony Lindgren , Andrew Murray , Olof Johansson , Sasha Levin Subject: [PATCH 4.14 65/80] ARM: omap2: remove incorrect __init annotation Date: Thu, 18 Jul 2019 12:01:56 +0900 Message-Id: <20190718030103.506780811@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030058.615992480@linuxfoundation.org> References: <20190718030058.615992480@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org [ Upstream commit 27e23d8975270df6999f8b5b3156fc0c04927451 ] omap3xxx_prm_enable_io_wakeup() is marked __init, but its caller is not, so we get a warning with clang-8: WARNING: vmlinux.o(.text+0x343c8): Section mismatch in reference from the function omap3xxx_prm_late_init() to the function .init.text:omap3xxx_prm_enable_io_wakeup() The function omap3xxx_prm_late_init() references the function __init omap3xxx_prm_enable_io_wakeup(). This is often because omap3xxx_prm_late_init lacks a __init annotation or the annotation of omap3xxx_prm_enable_io_wakeup is wrong. When building with gcc, omap3xxx_prm_enable_io_wakeup() is always inlined, so we never noticed in the past. Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Acked-by: Tony Lindgren Reviewed-by: Andrew Murray Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/prm3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index a2dd13217c89..2819c43fe754 100644 --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -433,7 +433,7 @@ static void omap3_prm_reconfigure_io_chain(void) * registers, and omap3xxx_prm_reconfigure_io_chain() must be called. * No return value. */ -static void __init omap3xxx_prm_enable_io_wakeup(void) +static void omap3xxx_prm_enable_io_wakeup(void) { if (prm_features & PRM_HAS_IO_WAKEUP) omap2_prm_set_mod_reg_bits(OMAP3430_EN_IO_MASK, WKUP_MOD, -- 2.20.1