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=-5.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 24FBCC83004 for ; Wed, 29 Apr 2020 19:15:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EFFE9221EC for ; Wed, 29 Apr 2020 19:15:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="fpYAIUKF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbgD2TPT (ORCPT ); Wed, 29 Apr 2020 15:15:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726519AbgD2TPT (ORCPT ); Wed, 29 Apr 2020 15:15:19 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA4FFC03C1AE for ; Wed, 29 Apr 2020 12:15:18 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id s9so508687qkm.6 for ; Wed, 29 Apr 2020 12:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=L70Lu4UkPRTEDG8gb+/xmKCe8SzfFhoJnEpRxIIeFqA=; b=fpYAIUKFWTtRbiyM00izT/fFtpEEUzzgAYX5RWTjg6k+9hsakDXW2+39f1p9s/drqy cNHLDJHD57SLl6tsqIW7ArxiFPoeu/a0Ra9+ALQObhnkHGNBwnE64zPrlMbwAr5X4zDj qgJSr0Tne+KAeZ6wNQhflV7sQ5VmHGcUwqKVt+nZmYRCloY95EPGzlqvZz+aQ4eUtzGn TPz/jx9BhYi0twCyopSjoG6jJrCz8B78PntvIg+4pCXYaIoKJK023np7U+orRedWeDoT y1kHSDkcjfMO58BpdelMoRPh4zhq9WiB1PRrX+2ZxgGyrz5lxlEwQKfhY1s9fIR6B4tM U1Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=L70Lu4UkPRTEDG8gb+/xmKCe8SzfFhoJnEpRxIIeFqA=; b=Ix8+2bTa9ZFOPPGMXC/ZABc2kDyu9QTKS8BfS2MuRHxgABYZLTIUzciC2g5z9fpefA JwY4TvQBEf7QFQzXApV07hR1/Bc7SJteA76YPGsMtS5M/bE7xaWRHV3bXlf7vFUg6k6n mTLrO3ZBI8S+UH0r4p0kKXMQt1HhE0V6vGdWO87cDCN5Oe0sSJ/tHHyo63D1SFOgWmba opBWgs2D9x0KOXIQ9gUyhK3ld+MQ5e9hnH1tFRtIpHmPvqrkIhKR1yCuIoTGkCdk5ri2 jup/6fbz9UOj45T3SlM1dELhA3Cyr+uqPFwA3UpaV2WF7vXgdVp978XYPqxmua/bWSBU eswA== X-Gm-Message-State: AGi0PuYHTns2G7nrDO4hY11V8IyXpC88Qs8SdXXHGC9zxUhEbTPTEoQQ b4Nm0xKIXcQt+9zYx7M/P8uo2Q== X-Google-Smtp-Source: APiQypLo2Uv9TAEfSh+IISXH+Kg0NVSAYiXUQI2v0pVCREPH82taZ3U2fhV+jvGvfOzlTOwh6hOZkg== X-Received: by 2002:a37:61d3:: with SMTP id v202mr25564529qkb.142.1588187718111; Wed, 29 Apr 2020 12:15:18 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id k43sm104680qtk.67.2020.04.29.12.15.17 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Apr 2020 12:15:17 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jTsAu-0002Eq-J1; Wed, 29 Apr 2020 16:15:16 -0300 Date: Wed, 29 Apr 2020 16:15:16 -0300 From: Jason Gunthorpe To: Arnd Bergmann Cc: Ard Biesheuvel , Ingo Molnar , Jerry Snitselaar , Ard Biesheuvel , Ben Dooks , Dave Young , Jarkko Sakkinen , Lukas Wunner , Lyude Paul , Matthew Garrett , Octavian Purdila , Peter Jones , Peter Zijlstra , Scott Talbert , Thomas Gleixner , linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] efi/tpm: fix section mismatch warning Message-ID: <20200429191516.GK26002@ziepe.ca> References: <20200429190119.43595-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200429190119.43595-1-arnd@arndb.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On Wed, Apr 29, 2020 at 09:01:08PM +0200, Arnd Bergmann wrote: > Building with gcc-10 causes a harmless warning about a section mismatch: > > WARNING: modpost: vmlinux.o(.text.unlikely+0x5e191): Section mismatch in reference from the function tpm2_calc_event_log_size() to the function .init.text:early_memunmap() > The function tpm2_calc_event_log_size() references > the function __init early_memunmap(). > This is often because tpm2_calc_event_log_size lacks a __init > annotation or the annotation of early_memunmap is wrong. > > Add the missing annotation. > > Fixes: e658c82be556 ("efi/tpm: Only set 'efi_tpm_final_log_size' after successful event log parsing") > Signed-off-by: Arnd Bergmann > --- > drivers/firmware/efi/tpm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Jason Gunthorpe Jason