Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp62249imu; Mon, 10 Dec 2018 16:09:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xtzj9jIVX7XbYNBe4H64rPDsth/VMsoyiF6iZ1/tG62dJUUQ8UwZdIjGAkiXnqfXV2oRHa X-Received: by 2002:a63:4c6:: with SMTP id 189mr12741526pge.391.1544486975505; Mon, 10 Dec 2018 16:09:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544486975; cv=none; d=google.com; s=arc-20160816; b=MWBXx9Aah5SOtYO3wVhWVLLluKvFH9Jf07yuzWJvKlawaJcsbBBleqFM6durG6FFqR RjB4tBCHirDf55N4q1NRfzmitP7mf9NmfoOTjz4MXYZqyKqQ4fhj95WklrKVQqtFTSPp 9M7/j1siqbGGOII8vvadXed8SCRT3LzeKxnlJAbsAw4wp2mAwDjBdvqHWHt5mHnfSd8b JIpJloIOcC+LViK2fONsPAkDXZrUylwV81kxpTK3xIZvf0GiVEuuN0MTV01zeOH5/Tpw WTO6hBSE+Levb9GhpJGxuRkWjtgxrSfoyKbz8Rd4ftwZjeXkqPrz+3ji3vH7eRTnZUpQ Zb2w== 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; bh=t/4g5antgKx3V1JTtj+6pIZtTx9mxgI4pe1zfG5ra68=; b=m8kaC2J/KjE4eposszSGEGocYP7sgKqr/mzkSyU00HYynFvlljA19Fm6DYS0G5DM5I /CS9jnNzn7y5KXzJT4fi9K+yHLRs7R0L9e6cblIqNZbz5eOuR+6Edf9hYx3249zBQ/IL i7DnUJVeQKv3/KbdOFQHfQvALyJoPU20VNilBm+BisaaJNJg+uuQ9ibH8FxZ31D8kPGG 5bbUISuzfrwWbf5w8HKl4KamPPcZXGL85eYtpMX9YdAGtBJ/uwT2UeNm6zpGnLJPAgpS ibhBRKcfDBNfsJYnMe9Ldfstz7KW8tP5bZnChITOk+49FR1oRBYiDWluobJDN9uz1Ce+ J6Pg== ARC-Authentication-Results: i=1; mx.google.com; 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 g22si12709287pfj.222.2018.12.10.16.09.20; Mon, 10 Dec 2018 16:09:35 -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; 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 S1728881AbeLJV7d (ORCPT + 99 others); Mon, 10 Dec 2018 16:59:33 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:50299 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbeLJV7c (ORCPT ); Mon, 10 Dec 2018 16:59:32 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MhlbM-1h9x8Q27to-00dpPE; Mon, 10 Dec 2018 22:59:10 +0100 From: Arnd Bergmann To: arm@kernel.org, Thierry Reding , Jonathan Hunter , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ARM: tegra: avoid section mismatch warning Date: Mon, 10 Dec 2018 22:58:37 +0100 Message-Id: <20181210215856.2238253-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181210215856.2238253-1-arnd@arndb.de> References: <20181210215856.2238253-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:pVzuuYiqZoGnxIy+9O0ggSKEMABUdN1/PH8ap7LXzx57zWT85/C H5i38KO1MYUDuBDwzj2oZtGDnf2B0nJUcYb6tDuCQ5PclG6juq9E30nyxT3bzPFhjyA8HS+ qgT9XnOgvQQHZWq5vq2ZGNabnTPvLHqVfDIC/jAH9RhP2GnZaC+FQO5d4dSNTbf4kCULpXY htRBQ9zpnaH2qPSt+eXAw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NR/oVWTKn40=:f2ARBWMyYmyXlnsazBYwCc JUmDGB+JHoTUwWfa0w94mZTeMvA66IoDU6pZ66NV5wAQhZ2a2gXQVkKuUCM7RqMqKnNFqRj2J On+rlH3gQrAFA3QNeRQMzbY7NEfI767ywEdIRVue8qKJL+Z4mh2k0CTxU+06OZ0rbD52mzyKb Pq6ci9ScKBzqI7poSrCB9tI6zNq03gi3RmjtqEF12e3u+0GfWkPMiHkNxBF1UI69iBlFMYwUO Nvmaue+liI5jAYucUnSObCDX8AJpo6KnRXMZNyrgA7QNou2MWaxNaSHLvVbEuTycI5kL8Czfl VDqabZ6LO9NEXiTj0Sicyc4vvNCFWsaAbeH/6dZdJPKOycq5vJNJ7pyBygQXAlOko12s3v8cA bcCJcEhX+H1VViF8NurwSDHN7Ni5crfziC6menWuhsSyp/QO4oibyho2LcAFtqgYJDFGWJVDl M7dUbF5uYvhXBTmmqbAgK0ZnUNzIBSREbtUgXeTn5FB/YMpgt7wXaGQ2eWTlhrppyd/EnCId7 vcJEs87ZW3L2/mfUeEAGXf3RsxtYrA+s3Bji3nBuJDrj2Q2UJwUWrglZcmR6rNzq9LzLoESs6 m2cWp/koI3RM0De3NnX/4QRJelKgBxRa5Z88Yi193iulnrsLh1r2ZFMP2KwWh8/UIpTyzRJ8Y odst20GVd//mMgTESu2yoZm9rf6UNc4rd4dO+PvHiuXbo4r1s0HwItd+6hd/RISt/leZgvLIQ S3c2p7M/xIO2GMopTdRRJg5IcIUcBW3as5ruOA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARNING: vmlinux.o(.text+0x39ecc): Section mismatch in reference from the function tegra114_gic_cpu_pm_registration() to the (unknown reference) .init.rodata:(unknown) The function tegra114_gic_cpu_pm_registration() references the (unknown reference) __initconst (unknown). This is often because tegra114_gic_cpu_pm_registration lacks a __initconst annotation or the annotation of (unknown) is wrong. Signed-off-by: Arnd Bergmann --- arch/arm/mach-tegra/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c index a69b22d37eed..a186ab663b0b 100644 --- a/arch/arm/mach-tegra/irq.c +++ b/arch/arm/mach-tegra/irq.c @@ -72,7 +72,7 @@ static const struct of_device_id tegra114_dt_gic_match[] __initconst = { { } }; -static void tegra114_gic_cpu_pm_registration(void) +static void __init tegra114_gic_cpu_pm_registration(void) { struct device_node *dn; @@ -85,7 +85,7 @@ static void tegra114_gic_cpu_pm_registration(void) cpu_pm_register_notifier(&tegra_gic_notifier_block); } #else -static void tegra114_gic_cpu_pm_registration(void) { } +static void __init tegra114_gic_cpu_pm_registration(void) { } #endif static const struct of_device_id tegra_ictlr_match[] __initconst = { -- 2.20.0