Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1687696ybi; Wed, 17 Jul 2019 20:08:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqztZKnBXqu0ZlJu2Y4iJoKm90Unt7uhlBUTaFWUE5fxvXnELFY/sq2sYrmKp1IB284t5gcT X-Received: by 2002:a63:205f:: with SMTP id r31mr45113558pgm.159.1563419335550; Wed, 17 Jul 2019 20:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563419335; cv=none; d=google.com; s=arc-20160816; b=x9KuZ660d+kMLP5S9xCkH6t+CyRqatSyxNbE5xlxqkiK0TjeaFE/betXQGkKRUHsPn v0VHLIETFUkh3/W6Yi7oBj8kq0GC1+NfDE/UdOqqoP/cQZKJ/D2JNr2YFTuN0l1YOZ2/ NtglFFbDvC5SONAF9voA5hzUwlswEToqStIFTZ9cB2kAFAyxrAJU1eOXjQBJGuom018N aPx1rJYs1VVludywysG+mNdhpsNU2CXrDbDMjt6jZ2zPRLdhwtEzesuDFYOo2aves0s0 Vp9S5wb9wMztP5p/3FzukRKOizOKa+1HZumjNqeeGE5nwzO+Xu/djtToajOkWzZhOgSA CyTw== 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=GuE1FNc8ojPp8Qf1DXe0VMJUssoxqa7Vz8qbtsnsEEA=; b=WdIbC1AGOQzGrbhkVWlUaPqyqo8mtFq78haFFrgKnR9uZvCVPkHXZ9Fx4f9RpRWugV 998D7d19P/vt9i+Ij/ydr72J1hyW2VLd/udUpquvxWcqKTgdALNMUPrIivZpHKeI+jHS D99Fy25/adYcU+n1nbOxvs5JhIZYevePs22Vnt1rx5YlnxnxG6FGCrTls2Q92P7Vhnwg 780ItYLNi+aMZsiyAOPN6KRKykjz+tsHR1ZjDXPq120LrX4b6liH9Zei/sRm1i99nxFG eLHNmW9ylqpdkZowgKHNi8li7/qORM9/Lb/nyH1uCGzmFa+VATtNdfuQeaIQZXpvbrFe X7uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O4OfQHay; 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 h187si20371805pgc.6.2019.07.17.20.08.39; Wed, 17 Jul 2019 20:08:55 -0700 (PDT) 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=O4OfQHay; 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 S2389903AbfGRDHa (ORCPT + 99 others); Wed, 17 Jul 2019 23:07:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:38986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390418AbfGRDHZ (ORCPT ); Wed, 17 Jul 2019 23:07:25 -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 550E42173E; Thu, 18 Jul 2019 03:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419244; bh=JNmnvDPMdyjpXwlIPvXfoBh6zAcM6I6OFKdO/kIsPkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O4OfQHayfiVCY6ROPlK5TGXdxKN/VzwiAuR08H+P9bnedvVUTT6Nujy7+Tjn/LuGN gOVaKfP0FvX5GYBDW/Bpe8V55j7bYfDDbjH+LTPcCtshb31Np2JiEyyCnqi2xLpSX+ HpeL8GElIUuSV9TAarcHUdZPtmpK7ZPC4OE4PybQ= 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.19 12/47] ARM: omap2: remove incorrect __init annotation Date: Thu, 18 Jul 2019 12:01:26 +0900 Message-Id: <20190718030049.664088966@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030045.780672747@linuxfoundation.org> References: <20190718030045.780672747@linuxfoundation.org> User-Agent: quilt/0.66 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 [ 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 05858f966f7d..dfa65fc2c82b 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