Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1374579ybz; Wed, 29 Apr 2020 21:03:34 -0700 (PDT) X-Google-Smtp-Source: APiQypKnyGzy5ieagWhB9wITErBB+ktcgeHHvoAMhHBRuVlNFO0E1oRC2n4slaGN/NrzvDDigIMI X-Received: by 2002:a17:906:6990:: with SMTP id i16mr845263ejr.175.1588219413961; Wed, 29 Apr 2020 21:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588219413; cv=none; d=google.com; s=arc-20160816; b=W+en12oSyJ+eLIaengFBuOKNp2Md0gw1VlDOTEctiYbJFVLkJ+/o3PUJTSpnzNFhPo JzSeK1a6mh61+Lh5tlhYcITB5ab+d6W8vlsp7AhJCV8cXGNyUm4MSeYRocWN9mIJCVrD oJPIpB9myzwB9ZGI6h1XYp8YgBZwrpyw9EFhW1inyrWnbsJyo9GRuMKPOaK9D4IysFYb 4glVJK2n/yz0dfrK2FhTBaMKkg9AFbXJp/khuNw1KRkBwHe+pcPvF9YEMk6TSQ4k33D5 NISf2rRU4gcUdi2tLNaA8L1NPJibX+bMu3F7DSMdjl8fB6qM1tLOBsKdMX5T7xT5w6dr 2L7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=2DNfD/NrdQJ6srPv03Ve3YmEwaiwqXj2l+kz6xPRcLI=; b=p0H89r0mP8LPzhd+Z9nR9JwpNAT3ZmNvabc0QtV3vLlwh13J4jYcmcifTYBmIB734d FZsE99ye44tXjxNhhCjppuruJkqxIgJ05+NifI3OOQFlfyobXRq0/IW3SyxKW3d+ziot CLfp9GjxFKq27xo+kALDNQfJU/G7gk6F1ewXkkCD65OLOWKyDnzWgVMy/ztjDtVwg1Uz R5bZdXFKB+ig1Lul/jiiLNDJQXL7LM1AE+ip81oKuzhlAUIK9EHF1oMGvzYmHkuseNHP O5hj4vtc4Fvy9BFtlc1bwvKjDIFC/nPIuTuQnTRQqaYAMaLProi5gAr+9yRhy6s0RMwm FMBQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly2si4928040ejb.95.2020.04.29.21.03.10; Wed, 29 Apr 2020 21:03:33 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726554AbgD3EAs (ORCPT + 99 others); Thu, 30 Apr 2020 00:00:48 -0400 Received: from mga11.intel.com ([192.55.52.93]:17334 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbgD3EAs (ORCPT ); Thu, 30 Apr 2020 00:00:48 -0400 IronPort-SDR: yj8TmLWwsReHG7GSMisHqz8qQxN9UgmsjVFCm+9i+ITXNwGI2Ia98G1veCLs3In1ea1CLkgAfz 10eAswiE8XXw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 21:00:48 -0700 IronPort-SDR: sNz80AeppAXBoljxGVY/kL4RfiCytDXDWrKQuUVh9PAEvJaIEdaCuxfnhhn2s0EOSt9Ims/Xg0 xJgVnmF7tD2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,333,1583222400"; d="scan'208";a="432812986" Received: from aanderso-mobl3.amr.corp.intel.com (HELO localhost) ([10.252.52.101]) by orsmga005.jf.intel.com with ESMTP; 29 Apr 2020 21:00:39 -0700 Date: Thu, 30 Apr 2020 07:00:38 +0300 From: Jarkko Sakkinen To: Arnd Bergmann Cc: Ard Biesheuvel , Ingo Molnar , Jerry Snitselaar , Ard Biesheuvel , Ben Dooks , Dave Young , 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: <20200430040038.GD31820@linux.intel.com> 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> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 Acked-by: Jarkko Sakkinen /Jarkko