Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2290813ybz; Thu, 30 Apr 2020 14:28:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKVELz81th6Ek9c+blkcjkBjA3EJUf46J0qMgI6a5jMCvOz/GefgaeUKlP5FWZL9iMxm9yE X-Received: by 2002:a17:906:a3da:: with SMTP id ca26mr441967ejb.125.1588282122368; Thu, 30 Apr 2020 14:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588282122; cv=none; d=google.com; s=arc-20160816; b=su5h2x38ZrZVTBfZmcOvDmjHSgyTURuxEkl7HFykzCgjzEXu1d5YjckNea6ATePTqv xtrDI0hT4EplPX2MCdhg3jnZTlJoYwVrs6TjATlaHl4550ygfmnPl6MRlmw0I8+G0D42 /z7F6HSXJXrkaXTQhCgxAbGTRRFQOwg8yH/HLTDX8BLcVywj43dqlml+wVDyV7yHGHHf 4lxhLh4bDMGeFwcnVPCRpqt+KxRKFTMkdXiP6yDq2L/eXWnX/3r+3qS0zMGuVt+sSn/G uYQ97XsJ4zf43JAAFqzA3HnuzGx1FZ4WgBMlq3+G7NsevIpYz49sMga9DIRzRvqmA5oy fMdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/84uoMk6xtc0fw3gx35sjXWR9jNo9Z9IE9/R9jq5lMw=; b=cmMMhkOCzV43AseJZigRGfINXz92p8/JXQc3zVYXXZzgkeE0SD47y2pRUm+FELFFyW 9etlRyAYaDVZQQj2VQp9j08LgZyH2petPNU/dGXg73Dpjz+hDIWX36LlUmh4yp+ZVQsY K/7W2HbGCpjQVCpczcZwLET7lMSBTWxi9/qY76fmY2UF+0sGRicONuchARcqNsMJ9IfU QexjnNWurc6hnDfL/ko3uo5LHfCqMxAQ3zrW2aefjbk6lyS0rI2Sxf7Yr6XgZiZ8DM1s YPu2O9V9HwwnWL5E4OmEc7YIwsFoEDxWGb2n75H4TTTq/tuZU9RznBBhfSdnU+bDIEdQ D15A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VRmNr5RB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cy5si469567edb.327.2020.04.30.14.28.18; Thu, 30 Apr 2020 14:28:42 -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=@kernel.org header.s=default header.b=VRmNr5RB; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgD3V0H (ORCPT + 99 others); Thu, 30 Apr 2020 17:26:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:41314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbgD3V0H (ORCPT ); Thu, 30 Apr 2020 17:26:07 -0400 Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E07621973; Thu, 30 Apr 2020 21:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588281966; bh=/84uoMk6xtc0fw3gx35sjXWR9jNo9Z9IE9/R9jq5lMw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VRmNr5RBTPhRd60+StAQHWJmGef8T+NugRaofsy+un1Eln/Qcs4JM1XC2p/sLYn+o lKmlV2leZcE2oZyhkd5seo9kAxRc6X7RP4T9YeUSEXrx4cYwRvBtcUmD1oyAKT7RNt e9jB4IWz1aZpMZLwp3uZYt44ttGWAH7coF9Iuads= Received: by mail-il1-f172.google.com with SMTP id u189so2818978ilc.4; Thu, 30 Apr 2020 14:26:06 -0700 (PDT) X-Gm-Message-State: AGi0PuYB9ujUa7cYimLfDm1Dpcq3u7GDbIq3gyQMcIOCJ4jn63DBFera hG9qEdQOuLzf+m7UkvFig/KrDYqCuaO2I+VrJUI= X-Received: by 2002:a92:aa0f:: with SMTP id j15mr404629ili.211.1588281964921; Thu, 30 Apr 2020 14:26:04 -0700 (PDT) MIME-Version: 1.0 References: <20200429190119.43595-1-arnd@arndb.de> <20200430211516.gkwaefjrzj2dypmr@cantor> In-Reply-To: From: Ard Biesheuvel Date: Thu, 30 Apr 2020 23:25:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] efi/tpm: fix section mismatch warning To: Arnd Bergmann Cc: Jerry Snitselaar , Ingo Molnar , 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 , linux-integrity@vger.kernel.org, "# 3.4.x" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Apr 2020 at 23:21, Arnd Bergmann wrote: > > On Thu, Apr 30, 2020 at 11:15 PM Jerry Snitselaar wrote: > > > > On Wed Apr 29 20, 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 > > > > Minor thing, but should the Fixes be c46f3405692d ("tpm: Reserve the TPM final events table")? Or what am I missing > > about e658c82be556 that causes this? Just trying to understand what I did. :) > > You are right, I misread the git history. Can you fix it up when applying the > patch, or should I resend it? > I can fix it up, no worries.