[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMj1kXHe3d13vD=7p+5N8KLKBTB3Ka4g8HuW-h8enCrwjVO2uA@mail.gmail.com>
Date: Wed, 15 Jan 2025 16:24:05 +0100
From: Ard Biesheuvel <ardb@...nel.org>
To: Yu-Chun Lin <eleanor15x@...il.com>
Cc: linux-efi@...r.kernel.org, linux-kernel@...r.kernel.org,
visitorckw@...il.com, jserv@...s.ncku.edu.tw,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] efi: sysfb_efi: guard EFI-specific code with CONFIG_EFI
On Wed, 15 Jan 2025 at 16:21, Yu-Chun Lin <eleanor15x@...il.com> wrote:
>
> On Wed, Jan 15, 2025 at 03:46:46PM +0100, Ard Biesheuvel wrote:
> > On Wed, 15 Jan 2025 at 15:17, Yu-Chun Lin <eleanor15x@...il.com> wrote:
> > >
> > > As reported by the kernel test robot, the following warnings occur:
> > >
> > > >> drivers/firmware/efi/sysfb_efi.c:331:39: warning: 'efifb_fwnode_ops' defined but not used [-Wunused-const-variable=]
> > > 331 | static const struct fwnode_operations efifb_fwnode_ops = {
> > > | ^~~~~~~~~~~~~~~~
> > > >> drivers/firmware/efi/sysfb_efi.c:240:35: warning: 'efifb_dmi_swap_width_height' defined but not used [-Wunused-const-variable=]
> > > 240 | static const struct dmi_system_id efifb_dmi_swap_width_height[] __initconst = {
> > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > >> drivers/firmware/efi/sysfb_efi.c:190:35: warning: 'efifb_dmi_system_table' defined but not used [-Wunused-const-variable=]
> > > 190 | static const struct dmi_system_id efifb_dmi_system_table[] __initconst = {
> > > | ^~~~~~~~~~~~~~~~~~~~~~
> > >
> > > Unused variables, functions, and macro are conditionally compiled under
> > > CONFIG_EFI. This includes 'efifb_fwnode_ops',
> > > 'efifb_dmi_swap_width_height[]', 'efifb_dmi_system_table[]',
> > > 'efifb_add_links', 'find_pci_overlap_node','efifb_set_system',
> > > 'efifb_overlaps_pci_range', and the 'EFIFB_DMI_SYSTEM_ID' macro.
> > >
> > > Suppress unused symbol warnings and ensure inclusion only in relevant
> > > configurations.
> > >
> > > Reported-by: kernel test robot <lkp@...el.com>
> > > Closes: https://lore.kernel.org/oe-kbuild-all/202501051626.SMkizYIE-lkp@intel.com/
> > > Signed-off-by: Yu-Chun Lin <eleanor15x@...il.com>
> > > ---
> > > drivers/firmware/efi/sysfb_efi.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> >
> > Is your patch better than the one already in linux-next?
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=19fdc68aa7b90b1
> >
> No, Randy's patch is better because it also addresses the additional
> unused warning. Please ignore this patch.
> Thank you.
>
OK thanks.
Powered by blists - more mailing lists