Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2705181lqz; Wed, 3 Apr 2024 06:27:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRPv3Wis4obs8fORr4ENwEqaV4+ShuGqkHTZS9MQKhhlVugqQKBx3l0nZ8D7WF5/jRJC0r8En0BZevSMfQbSgKiogVwcrwtwXnNZ9mYQ== X-Google-Smtp-Source: AGHT+IGI1wBxaS+Vnj1U9kwzlCgcdvZq91WT7rIh+Nb/EuA24wkSf6DuJOHjl2nWBlmpyEkrYHEN X-Received: by 2002:a05:6358:d03:b0:183:f413:5ff9 with SMTP id v3-20020a0563580d0300b00183f4135ff9mr1832893rwj.10.1712150833508; Wed, 03 Apr 2024 06:27:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712150833; cv=pass; d=google.com; s=arc-20160816; b=KHNlKedXwN4/vSmYtYQkd2vFtkr7vzXGfmzQz82Y7SvEbIveJN72T3K+in8qHJd6Sb ANoJA4NyNzof6owYKQ8w6AppgwXy0gZXdJfEze9FKvO5kBHARIAbtM1LlBTWweVmLYee QITMLzESpBy3fgRPvLQqp1GysRblsImU3NIhR/6XaeN7ubpHkID96M6f89eEIiedaBQa u5tqnjMMJgblCPrDwy7hkxJLmjMpwuVMfQ5RFNLFBYeMqu7zhc2UpJiecFj0NaP10dv0 vDAUtVQ7AxJNt/jGN1SiDeWhal/mU+ia9FHmLwDGlSXPKIUNoBoVzVHComlTpL4a4XRW 00dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=8EVms2YLsDUuCYIw5cPdoEBYXqHd2OjbZnSw2iHHs/8=; fh=cji/e94fJanQAk9yrYsXrBJs9doHvVow1m+hVJqDPOc=; b=Lqr1DDBOnsP7l2GRMb8J0Fgjk2rnB/6VtmWg16SbNLMAcWK+wz1rh16Xaa4H8qYZxz j61MRbDh6mHEeQ1rcj8nklKKHhhMDkEAQ1YzK4PUi/HwpY3ytn3Fx+Ouyy9rb7aGtFzR YuxpuRByGTBgmKs9bjVRVNfjVQ4XKr/ey1zVP/IM+DkcBFN6eshH9gCdcqpsOTBIL0oj dDKhgkQ4qKdEscA3ijGWRSQMrTVylwdN25l+A+j234gnxST0aK1Wml3oGeJRH0m1AaLq 4VRJmG0xSlo2g3VHOGNYv1v89rD+Ch+w6RCqvxeOVilWLilVRagI0P6zl0lQx3nq9zOL u73w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FiMffq5u; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-129793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q27-20020a63f95b000000b005dc491389b1si12646457pgk.679.2024.04.03.06.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FiMffq5u; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-129793-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2DA582906B7 for ; Wed, 3 Apr 2024 13:16:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33D901487C9; Wed, 3 Apr 2024 13:15:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FiMffq5u" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E169C148315 for ; Wed, 3 Apr 2024 13:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150155; cv=none; b=dPDW9g5ebusRMT+BX0jZBMRma/B2v7Zt/r5nPpuPudX4L1c/p2y09R8acgHtZeOx8lQF5xjnaP9xrPnErZB+FDKVujXYf2o7Mt6iuJoi+ucGGFucyBAr8vA2Vh0IYki6ZT7ELH42WqBUCjhIPp2KhNIVFIDmR15gD39UEpTydaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712150155; c=relaxed/simple; bh=BvY7n2GM32YM2EPuTXqQK41U/DifdKggfolJTvMcnKo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=R4c7FzwqtCoWiG+3/cS4AaU5bDD6WGw+VHqJfhnbWzmNELywKSBeY3YBCWT7XRFHa5sdBhqr0oKfjeEQfH2tDhaO5aDfa+UeoFYyzV2bTC32zrXJ72xA889FEu9sNgQ9jGqDFMzo/cQQUFyfDsiiz4rmC1+acPCctvAOFRiB3r8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=FiMffq5u; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712150152; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8EVms2YLsDUuCYIw5cPdoEBYXqHd2OjbZnSw2iHHs/8=; b=FiMffq5uCTC9wsfLZ2l5NKeQZ1exSqfJVljGd+vrlLp03ns3ig5wqVwFQG7JnoaG1aswZR R+oI9ReJ4qlJBNQRjtd59eaUK+l+joEJ1MEhFSEnNNfCtOSItjyfVOtOrSta9/DiOg65xo C/qUqBpn0rYhp9FgLw07+jnVspErcls= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-677-2pTYI-tQO6G1atAJuSnDDQ-1; Wed, 03 Apr 2024 09:15:51 -0400 X-MC-Unique: 2pTYI-tQO6G1atAJuSnDDQ-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2d818a149bbso22847601fa.3 for ; Wed, 03 Apr 2024 06:15:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712150150; x=1712754950; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8EVms2YLsDUuCYIw5cPdoEBYXqHd2OjbZnSw2iHHs/8=; b=rtonNrwH15LbWPm0/1Fzn+n5AREMlt9xrUtY/R0pQUGsU1+Mgtbf6YT8+C6NhvnVNL Ee6nroQa5AME8NbqaufLYtvlbqk6EmltCRE/Cm44V1oSjV9zA4gsO7kTQKCqPoe1MsJE ky5cxDd+kVf62Ier0Pbg+8XtNljk+VxD1Rc1Zrgi+c3AuE+9yw3PqGV0UJKZ/LtRpYg7 nh8YeZ4fqB9ckx5uM17D70nQmgr2dnHYaUfvIj3L4YJaZeBz10LHJHI2lXnirKQ3pxuK iXhHHAU9JmwoVQUvLvZ8PZpU3oZLrIHBLQleKem+g7aErm72pcU3pP84mDKgjJJV2RAc r33Q== X-Gm-Message-State: AOJu0YwqrFsfyUL42oo3KNdEB3eHepTM+F5UA0yb5g4YufUAg2q/nYZD akxs0DkBMeSWxlchRqHDvFgLWTDLC0DiX4j9iD69RoQG8lyM8YM2d1udY2TJ86gTKfG2nsf+/ro cWq3FeIJAthy6JmRCNljLqcIH6wrrOyKCEO29eXlyJb9t6GHaypCoWRsyVAP2Tw== X-Received: by 2002:a2e:a795:0:b0:2d8:2cd3:aa51 with SMTP id c21-20020a2ea795000000b002d82cd3aa51mr2201604ljf.53.1712150149818; Wed, 03 Apr 2024 06:15:49 -0700 (PDT) X-Received: by 2002:a2e:a795:0:b0:2d8:2cd3:aa51 with SMTP id c21-20020a2ea795000000b002d82cd3aa51mr2201570ljf.53.1712150149275; Wed, 03 Apr 2024 06:15:49 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id n11-20020a05600c500b00b0041624540918sm1692064wmr.9.2024.04.03.06.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:15:48 -0700 (PDT) From: Javier Martinez Canillas To: Ard Biesheuvel , Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Randy Dunlap , Daniel Vetter , Arnd Bergmann , Ilias Apalodimas , "Kirill A. Shutemov" , Tom Lendacky , "Borislav Petkov (AMD)" , Masahisa Kojima , "Rafael J. Wysocki" , Rob Herring , Saravana Kannan , Greg Kroah-Hartman , linux-efi@vger.kernel.org Subject: Re: [PATCH 10/34] efi: sysfb: don't build when EFI is disabled In-Reply-To: References: <20240403080702.3509288-1-arnd@kernel.org> <20240403080702.3509288-11-arnd@kernel.org> Date: Wed, 03 Apr 2024 15:15:48 +0200 Message-ID: <87jzle1ta3.fsf@minerva.mail-host-address-is-not-set> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Ard Biesheuvel writes: > On Wed, 3 Apr 2024 at 11:09, Arnd Bergmann wrote: >> >> From: Arnd Bergmann >> >> With 'make W=1', there is a warning when EFI is turned off but sysfb_efi >> still gets built: >> >> drivers/firmware/efi/sysfb_efi.c:188:35: error: unused variable 'efifb_dmi_system_table' [-Werror,-Wunused-const-variable] >> static const struct dmi_system_id efifb_dmi_system_table[] __initconst = { >> ^ >> drivers/firmware/efi/sysfb_efi.c:238:35: error: unused variable 'efifb_dmi_swap_width_height' [-Werror,-Wunused-const-variable] >> static const struct dmi_system_id efifb_dmi_swap_width_height[] __initconst = { >> ^ >> drivers/firmware/efi/sysfb_efi.c:297:28: error: unused function 'find_pci_overlap_node' [-Werror,-Wunused-function] >> static struct device_node *find_pci_overlap_node(void) >> >> There was an earlier patch to address the duplicate function definitions, but >> that missed how we should not be building this file in the first place. >> >> Fixes: 15d27b15de96 ("efi: sysfb_efi: fix build when EFI is not set") >> Signed-off-by: Arnd Bergmann > > Acked-by: Ard Biesheuvel > Looks good to me too. Acked-by: Javier Martinez Canillas > or I can take it via the EFI tree if you prefer. > I think that could be merged through your EFI tree. Thanks! -- Best regards, Javier Martinez Canillas Core Platforms Red Hat