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,URIBL_BLOCKED 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 EDBCDC433E0 for ; Tue, 29 Dec 2020 22:11:15 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 4B5EC221F8 for ; Tue, 29 Dec 2020 22:11:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B5EC221F8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 9D7064B315; Tue, 29 Dec 2020 17:11:14 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Psw8sxxhZHhl; Tue, 29 Dec 2020 17:11:13 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 819004B30D; Tue, 29 Dec 2020 17:11:13 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B5CCB4B30A for ; Tue, 29 Dec 2020 17:11:11 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J17MB3gk0YZj for ; Tue, 29 Dec 2020 17:11:10 -0500 (EST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 9B1804B1E0 for ; Tue, 29 Dec 2020 17:11:10 -0500 (EST) 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 Date: Tue, 29 Dec 2020 22:11:07 +0000 From: Marc Zyngier To: Nathan Chancellor 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 Cc: Catalin Marinas , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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... _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 E2FF7C433E0 for ; Tue, 29 Dec 2020 22:13:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C1FF20784 for ; Tue, 29 Dec 2020 22:13:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C1FF20784 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:To:From: Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HCvrgS/Fz0UDVFDNvULlf6gIqduDzxocimSgboQHnwE=; b=h+LjMEocB9rD59XYlQkoD+fDU WomL9Jbpk1AbekSyfvM63O1B8WllX8C8eazuCytznQsPzlPBL6evNlyi4eyUNfurl2S1h3sApFAMM lKW9UqtTKWErH0pZcazdkgjima/K26GuoqPOdh2kI8Wh+QPIPmcrlsifI4CDEJlYjEFjHeWgNI18i Tr8yEF3Gr8Ij34BYHQ1ZMIdzCaGpB++AvqaLflbO1d1q87Dw+33EWP9xLxel+OSMNyNxI4C9fyfnu caGP+WnJIxDleirIL/2nED+J102F4oiHql23/Y/qv5scfnRkBTdFKHL9sUcgmS4tGf4AND7P1ITbe dJDxQN6yw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kuND0-00076l-RQ; Tue, 29 Dec 2020 22:11:14 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kuNCx-00076N-M3 for linux-arm-kernel@lists.infradead.org; Tue, 29 Dec 2020 22:11:13 +0000 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 Date: Tue, 29 Dec 2020 22:11:07 +0000 From: Marc Zyngier To: Nathan Chancellor 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201229_171111_825472_788D7CB6 X-CRM114-Status: GOOD ( 14.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Suzuki K Poulose , Catalin Marinas , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, James Morse , Julien Thierry , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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...