Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp951066ybz; Wed, 29 Apr 2020 12:17:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIvbmqbPow5flHBlZ/Hz3ATLUnGTaGSu1g8TfwjJ/Z9xjeqbOcGcgeijyxFXK5PZTrOCHTE X-Received: by 2002:a17:906:f90e:: with SMTP id lc14mr3983881ejb.156.1588187834187; Wed, 29 Apr 2020 12:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588187834; cv=none; d=google.com; s=arc-20160816; b=GHkw3fyE/PD2GQ1CAZulNGt1nyY/9kJPB1Z5H1EoNUnjNfbgHPPKCPiCvO89grqePR HlKTKdWJ/5nXlQTT01FDTN5ufzMFCjnexuMRBk6EOw7W+Wpy15vXugNETXvbW4OX4FpH fWoyHeYRTs+vbSySL/jKjONc8lp2/HtB9QaKIg9k9zBjlJUn5uw/0NsdStt4qiDA+qGu 1/1evWztfkWFW5Fkkfj0OXIE4gEVNmPEZhRKyaXrcllb9nplqZ2gwAJFrlbMegpp7FiS 1TTrMPLRmSvLcaWNjzVu9eWCOrbwBIaKFycwQX22zHYILM5bwLeFUJMOB8DmNUsJbPg0 WK1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L70Lu4UkPRTEDG8gb+/xmKCe8SzfFhoJnEpRxIIeFqA=; b=bVKG61IAPcsKV0sVlEO+y6TybE4TOMpvVCijfVhmNKnnB6NK9NYUcz+URKB+F5/g9K I0uqpnztsbbJOy+d7j7zLPEKDV0SAD+YRkhK4NIlQNj/KJyHMb1XITVW806wIuE6Kj0W hGwt6XEV7Ix/9L0Sezjtsbw0P7T+LZoJYwxMbkIOKfiCBKljmt2k6NYUDUX+m/ZP5U4j vopXC8YIYJpM27lhiapz24GoR79uQdhFbUJd0LHflok+jlXZcAl9dcisvVRGEC4ggr/A PA0AnwySiNR8sU/ZUWOkT9xVeuH4OTdjwSIUKXbj1x3EDP5TyFZmpGVQ/X6Pd34oudfJ IYVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fpYAIUKF; 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 s8si4346863edr.485.2020.04.29.12.16.51; Wed, 29 Apr 2020 12:17:14 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b=fpYAIUKF; 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 S1727025AbgD2TPT (ORCPT + 99 others); Wed, 29 Apr 2020 15:15:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726910AbgD2TPT (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 DDC6DC035493 for ; Wed, 29 Apr 2020 12:15:18 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id h124so3191351qke.11 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=M/0eva3xZK2CU/9927WT1vvV7FqdJ8PpX3de0TwugtPMAzu7ae9XeiS8nE7D5AFjBC jfzTIPmXd43kIgcKXLMGP+42/TFUAG1YYouEBW3BpNmEY3nZPAIrhBxXPLkhwvbiVl+M NYxwSnbdPhFy6wNN22P/7oDu8IFnYE3zUf5+DtKZJhoSZB/OfTNbLITz51m3btAAL6uV vSz71f09SZzTDyZoqCAD7ELjCa7U5MQXSSt4+zY0WRYmNaQNO1WRpAgz8fqN4uT8NCSC f3E1KdzHZA2hyo7bEPEKMjPukL1LZzfh1NsddMj1HayFuX3HeuxaUuZfoMCFmWwhJxSD pogA== X-Gm-Message-State: AGi0Pua+4W/kY8u8PVUrcDo4KwBQMg1ppouw3nPLgKCKxmDsUPnYXlLS rQezAN4Uc+lluMUR1K6A5TSkDA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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