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=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 CF72AC433DB for ; Tue, 29 Dec 2020 22:12:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FA2620825 for ; Tue, 29 Dec 2020 22:12:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726221AbgL2WLu (ORCPT ); Tue, 29 Dec 2020 17:11:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:51204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgL2WLu (ORCPT ); Tue, 29 Dec 2020 17:11:50 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (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 78D3020825; Tue, 29 Dec 2020 22:11:09 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kuNCt-004Ti1-6E; Tue, 29 Dec 2020 22:11:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 29 Dec 2020 22:11:07 +0000 From: Marc Zyngier To: Nathan Chancellor Cc: James Morse , Julien Thierry , Suzuki K Poulose , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: arm64: Fix section mismatches around hyp_cpu_pm_{init,exit} In-Reply-To: <20201229214336.4098955-1-natechancellor@gmail.com> References: <20201229214336.4098955-1-natechancellor@gmail.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <49e9d2e2e7103c49882b54c18c567667@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: natechancellor@gmail.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-12-29 21:43, Nathan Chancellor wrote: > Commit fa8c3d65538a ("KVM: arm64: Keep nVHE EL2 vector installed") > inadvertently changed clang's inlining decisions around > hyp_cpu_pm_{init,exit}, causing the following section mismatch > warnings: > > WARNING: modpost: vmlinux.o(.text+0x95c6c): Section mismatch in > reference from the function kvm_arch_init() to the function > .init.text:hyp_cpu_pm_exit() > The function kvm_arch_init() references > the function __init hyp_cpu_pm_exit(). > This is often because kvm_arch_init lacks a __init > annotation or the annotation of hyp_cpu_pm_exit is wrong. > > WARNING: modpost: vmlinux.o(.text+0x97054): Section mismatch in > reference from the function init_subsystems() to the function > .init.text:hyp_cpu_pm_init() > The function init_subsystems() references > the function __init hyp_cpu_pm_init(). > This is often because init_subsystems lacks a __init > annotation or the annotation of hyp_cpu_pm_init is wrong. > > Remove the __init annotation so that there are no warnings regardless > of > how functions are inlined. > > Fixes: 1fcf7ce0c602 ("arm: kvm: implement CPU PM notifier") > Fixes: 06a71a24bae5 ("arm64: KVM: unregister notifiers in hyp mode > teardown path") > Link: https://github.com/ClangBuiltLinux/linux/issues/1230 > Signed-off-by: Nathan Chancellor Hi Nathan, Already posted[1] last week. Thanks, M. [1] htps://lore.kernel.org/r/20201223120854.255347-1-maz@kernel.org -- Jazz is not dead. It just smells funny...