Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10109020pxu; Tue, 29 Dec 2020 14:14:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc1h1ey7Tu+SXwSqtX5EtMZivbO6Qs8miShSfyq/G5UKGCkflAKRFNOuwumUO5klYbWEJv X-Received: by 2002:a17:906:e250:: with SMTP id gq16mr45832848ejb.382.1609280059951; Tue, 29 Dec 2020 14:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609280059; cv=none; d=google.com; s=arc-20160816; b=VqtVEvDxOCn/3OveL2/qV0/4BbcpONU9g1G/kWNF6WieS6bb5RlV/hM+gjnoz4F177 QVCzFOLY9C7vuXQC+A0kl9SsZjDAb1TXVlybPK3tkZbbtfbjTCSWi3YVKxehk+jEv3QA SM32EjMdA8iscmigZXqw5MShv1LBUd1j0pRX/cDEWISHT34Jilh/qlW4SjGQIJG0MEzs Fx0BjaubgzSaPRjLzswr0HRTWUh4q9cJVVCfq/7FXYVOFYg8W0b5qe6g83/gXEoVoShN w10yKyrsZ/8WEUgZYgEInY/srVQNT/oSJ7tjhlKDnPQNvqIH2AliC2rQjLIaKoK1AJgT MMdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=3zln2SPnpbHJULASpv/nBXg51ecpSblQByhqXfxr500=; b=WyVtEUQsMncEtAnqFiT3guGCYGXHrW30/UZsbINnr2NCZUJBf456QpAK3JnHOCqpXK vqJpgc2K5y26pGaOJUSbU2Tul4av0RwVOpFxYH6ULclFNDaO5ovMAd/f5L8dlltEJRty K2WcMwnf3YFlDMUX3yVPYe+LLbIpWaSAhxqui4pyhk8YrYc+PLTpds3qvJaRL93im2m9 vC7UuXBPpVLwMMGfYf5pzE0Z2L628kDBYESFUtmmemB31fbSIjWkVrFC4bgynMR1kxk0 f7ZHjd7nKVG7V+J0DPILCvcAX2imrxx6MEuSLAI9Su2XSjJ0sgOn2FwWYgr/+KDCKasY Y6XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h14si20172970eji.737.2020.12.29.14.13.33; Tue, 29 Dec 2020 14:14:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726197AbgL2WLu (ORCPT + 99 others); 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...