Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1406229pxa; Sun, 2 Aug 2020 06:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJHpDufnhvvmbwe9E30J8dcwLY9hSyxcjC3QKIEiKCX6iaSU0s9z4fMCiaWApj0hKvUcfQ X-Received: by 2002:a05:6402:2042:: with SMTP id bc2mr2955436edb.109.1596375569075; Sun, 02 Aug 2020 06:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596375569; cv=none; d=google.com; s=arc-20160816; b=fjdt+T/Dj38AlY3KhTk3wU/A/5fFtWdInfrcLMhNGDOxWSK65j2hfzy36K7Bh6PwKb PyYMa7IyTJxLAHkml8qev90610ZmSAEr8a//cW3/DebUJwmhCr61JbPX7b7nTQtJxPfJ 0maW0DORexwrfSTChdLNxaq2bT3jmo/x95btciZ1Jzst8X7rO5uf+l+lAzsJaDo6yJIQ +8bzchKjK7Is6aekRRylCooKIW8guf+jFUCzcD4mfxAN9X8+SFWWICsXHotFgBJ3BeLH HqBzPVLuCUpPFcdF47d4i+rlqKYdhcfdN7gYRsivqgo7wZ7L/qvzcvOrOetxTZSDsRF8 tMqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:references :in-reply-to:cc:to:from; bh=nkbIqihk3DYrhx66HY9debMNWhyopx5Q+X0EFX9h47M=; b=BO/XJfWenniOTmOaKJe6FdcG4M5jHr69Tq+9wzJpUSK4w7pRe80VDeYcOLSOUYMp+w BAtV52kVZ4TPnv+r73JpmVFUR/7FrEQkYcyMqHQFcyXeeGXl5QupDvUk8kEJZsLlw6b0 d5WcJ4TjhosNNBZ+sEpOBH3TrvaVDHyZy5i5qWurVoZnEttVfgQtYIz80yJqR5v0m6ue toUCpk7ochkwkcUK5S7jhMkDxAG3Djya3ZeKcj14f+EVubP6VFg+3zULJB3TiIps5FGF w7EbbwoiWqnvmLGS2P/UbSVxPeHbOZqHbAHn4FlVaUISSWectzqn4lfPMBX7lL2fkkOf m+EA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si8757090ejl.1.2020.08.02.06.39.07; Sun, 02 Aug 2020 06:39:29 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728471AbgHBNfP (ORCPT + 99 others); Sun, 2 Aug 2020 09:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728423AbgHBNfP (ORCPT ); Sun, 2 Aug 2020 09:35:15 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC10BC06174A for ; Sun, 2 Aug 2020 06:35:14 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4BKMTC14kXz9sTH; Sun, 2 Aug 2020 23:35:10 +1000 (AEST) From: Michael Ellerman To: linuxppc-dev@lists.ozlabs.org, Vladis Dronov Cc: linux-kernel@vger.kernel.org, Paul Mackerras , "Aneesh Kumar K . V" In-Reply-To: <20200729133741.62789-1-vdronov@redhat.com> References: <20200729133741.62789-1-vdronov@redhat.com> Subject: Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10 Message-Id: <159637523829.42190.11957533441290690592.b4-ty@ellerman.id.au> Date: Sun, 2 Aug 2020 23:35:10 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Jul 2020 15:37:41 +0200, Vladis Dronov wrote: > Certain warnings are emitted for powerpc code when building with a gcc-10 > toolset: > > WARNING: modpost: vmlinux.o(.text.unlikely+0x377c): Section mismatch in > reference from the function remove_pmd_table() to the function > .meminit.text:split_kernel_mapping() > The function remove_pmd_table() references > the function __meminit split_kernel_mapping(). > This is often because remove_pmd_table lacks a __meminit > annotation or the annotation of split_kernel_mapping is wrong. > > [...] Applied to powerpc/next. [1/1] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10 https://git.kernel.org/powerpc/c/aff779515a070df7e23da9e86f1096f7d10d647e cheers