Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3630371imu; Mon, 28 Jan 2019 08:07:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN6m1mYi0y+AYUbhz5l+cMurqb0iE11JctIs3jFXYwRdO3gmuu1xXpgK5JCziBjni+8DluZH X-Received: by 2002:a17:902:145:: with SMTP id 63mr22246842plb.256.1548691654201; Mon, 28 Jan 2019 08:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691654; cv=none; d=google.com; s=arc-20160816; b=H5SbWmtqjS8EV2J23qxJOFXra+axHASKFgIEsh3C/qaQfUqdwCQ9QX4V8cUy6/bli0 wUNDq3qPoy51mOI2HYJjwZb3C+mZdx034b3khsuzdsi+lAKCtdz7rcd8BplZzJKa++RV U9N5fZ75mwLLD2q3+spG6VnRlKWEc0rdsEF8Vx25iL0zOF8N5sYt3yWSMDkhvbcCrLZu SC4GjvGe/k43HHa/b746F0JWS5X8S/NviHTzzX9y6Nl7mBv/9bgQoZkii0THr0EqE2ev av4CMQimKhAEuuQjC8hgJTqS6xVvx6DBR7Iap8UvpHs5ymV3SIuIdcuGeQ7YkzjGwTpc 1CuQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M9R4bNMHzsljzJHF8UuAMHpR1d+4q+CCQIpmAkB+3lY=; b=WkiS0jYUMLK0mw1RSomd7jz+hLaMXAz0OyLe3vKkItMGlZ61CNKz47wPYRaFhsxD8M ADCGyA4QYkqWYbktHnJw2kOTpR0+3viwAuxwTTTY+vekA8PWtzcefWNV7o18ijdrRQ42 NxS9tU3s5Ov1mPWehst8CmMaYYE83vmthI1/Ettc3qRKUHB+HH8BDlOW6nNR7LaZIwiq TbLZ9muBeDx/caSfpknbhh5XhXyJwGE9TSBpWDOpk0EwOImhigYG9bP9TooRl3WuD0iM Xk0A0GWtVLRaUiGlQwK3UCNF/4UNmXuYbVlA/1cgF+ObRUIJiRZdc/ldUDaXmKCWJAl3 aHFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zgu1gRSb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si34272972pls.16.2019.01.28.08.07.18; Mon, 28 Jan 2019 08:07:34 -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=zgu1gRSb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731992AbfA1QGP (ORCPT + 99 others); Mon, 28 Jan 2019 11:06:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:54588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731973AbfA1QGN (ORCPT ); Mon, 28 Jan 2019 11:06:13 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 825372147A; Mon, 28 Jan 2019 16:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691572; bh=gbcbOYRtO5DZ7jvNHZVuBbq046JoeM/+uEe08Z85EZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zgu1gRSbOdOFX940S0S75G2Gngidmjo8zHtJFoWq6ENlvBOnt6cfS/DUK+ceYGmxE LZodWiHc1jZMCsz9QpVRNNz0d/bpHuzy48ppT/eOoC2tv56tCnq5cOiIAneQEYlUah Ov32BDZpiKnD1ai55hYkk5IcVr4Ml25JMAm1FlZ0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Olof Johansson , Sasha Levin Subject: [PATCH AUTOSEL 4.19 147/258] ARM: pxa: avoid section mismatch warning Date: Mon, 28 Jan 2019 10:57:33 -0500 Message-Id: <20190128155924.51521-147-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 88af3209aa0881aa5ffd99664b6080a4be5f24e5 ] WARNING: vmlinux.o(.text+0x19f90): Section mismatch in reference from the function littleton_init_lcd() to the function .init.text:pxa_set_fb_info() The function littleton_init_lcd() references the function __init pxa_set_fb_info(). This is often because littleton_init_lcd lacks a __init annotation or the annotation of pxa_set_fb_info is wrong. WARNING: vmlinux.o(.text+0xf824): Section mismatch in reference from the function zeus_register_ohci() to the function .init.text:pxa_set_ohci_info() The function zeus_register_ohci() references the function __init pxa_set_ohci_info(). This is often because zeus_register_ohci lacks a __init annotation or the annotation of pxa_set_ohci_info is wrong. WARNING: vmlinux.o(.text+0xf95c): Section mismatch in reference from the function cm_x300_init_u2d() to the function .init.text:pxa3xx_set_u2d_info() The function cm_x300_init_u2d() references the function __init pxa3xx_set_u2d_info(). This is often because cm_x300_init_u2d lacks a __init annotation or the annotation of pxa3xx_set_u2d_info is wrong. Signed-off-by: Arnd Bergmann Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin --- arch/arm/mach-pxa/cm-x300.c | 2 +- arch/arm/mach-pxa/littleton.c | 2 +- arch/arm/mach-pxa/zeus.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index c5c0ab8ac9f9..024c1fbcc55a 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c @@ -558,7 +558,7 @@ static struct pxa3xx_u2d_platform_data cm_x300_u2d_platform_data = { .exit = cm_x300_u2d_exit, }; -static void cm_x300_init_u2d(void) +static void __init cm_x300_init_u2d(void) { pxa3xx_set_u2d_info(&cm_x300_u2d_platform_data); } diff --git a/arch/arm/mach-pxa/littleton.c b/arch/arm/mach-pxa/littleton.c index 9e132b3e48c6..9960ea158829 100644 --- a/arch/arm/mach-pxa/littleton.c +++ b/arch/arm/mach-pxa/littleton.c @@ -184,7 +184,7 @@ static struct pxafb_mach_info littleton_lcd_info = { .lcd_conn = LCD_COLOR_TFT_16BPP, }; -static void littleton_init_lcd(void) +static void __init littleton_init_lcd(void) { pxa_set_fb_info(NULL, &littleton_lcd_info); } diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index e3851795d6d7..68a536de542d 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c @@ -559,7 +559,7 @@ static struct pxaohci_platform_data zeus_ohci_platform_data = { .flags = ENABLE_PORT_ALL | POWER_SENSE_LOW, }; -static void zeus_register_ohci(void) +static void __init zeus_register_ohci(void) { /* Port 2 is shared between host and client interface. */ UP2OCR = UP2OCR_HXOE | UP2OCR_HXS | UP2OCR_DMPDE | UP2OCR_DPPDE; -- 2.19.1