lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aefba212-1e08-9994-6d6e-6db292bf9db6@suse.de>
Date:   Tue, 27 Jul 2021 11:15:36 +0200
From:   Thomas Zimmermann <tzimmermann@...e.de>
To:     Randy Dunlap <rdunlap@...radead.org>, linux-kernel@...r.kernel.org
Cc:     Ard Biesheuvel <ardb@...nel.org>, linux-efi@...r.kernel.org,
        dri-devel@...ts.freedesktop.org,
        Javier Martinez Canillas <javierm@...hat.com>,
        Mark Brown <broonie@...nel.org>, linux-next@...r.kernel.org
Subject: Re: [PATCH] efi: sysfb_efi: fix build when EFI is not set

Hi

Am 27.07.21 um 07:04 schrieb Randy Dunlap:
> When # CONFIG_EFI is not set, there are 2 definitions of
> sysfb_apply_efi_quirks(). The stub from sysfb.h should be used
> and the __init function from sysfb_efi.c should not be used.
> 
> ../drivers/firmware/efi/sysfb_efi.c:337:13: error: redefinition of ‘sysfb_apply_efi_quirks’
>   __init void sysfb_apply_efi_quirks(struct platform_device *pd)
>               ^~~~~~~~~~~~~~~~~~~~~~
> In file included from ../drivers/firmware/efi/sysfb_efi.c:26:0:
> ../include/linux/sysfb.h:65:20: note: previous definition of ‘sysfb_apply_efi_quirks’ was here
>   static inline void sysfb_apply_efi_quirks(struct platform_device *pd)
>                      ^~~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Cc: Ard Biesheuvel <ardb@...nel.org>
> Cc: linux-efi@...r.kernel.org
> Cc: dri-devel@...ts.freedesktop.org
> Cc: Javier Martinez Canillas <javierm@...hat.com>
> Cc: Thomas Zimmermann <tzimmermann@...e.de>
> Cc: Mark Brown <broonie@...nel.org>
> Cc: linux-next@...r.kernel.org

Thanks for the patch. It should have a fixes line

 > dim fixes 8633ef82f101c040427b57d4df7b706261420b94

Fixes: 8633ef82f101 ("drivers/firmware: consolidate EFI framebuffer 
setup for all arches")


... and maybe a few more of the CCs below

Cc: Javier Martinez Canillas <javierm@...hat.com>

Cc: Borislav Petkov <bp@...e.de>

Cc: Daniel Vetter <daniel.vetter@...ll.ch>

Cc: Thomas Zimmermann <tzimmermann@...e.de>

Cc: Ard Biesheuvel <ardb@...nel.org>

Cc: Paul Walmsley <paul.walmsley@...ive.com>

Cc: Palmer Dabbelt <palmer@...belt.com>

Cc: Albert Ou <aou@...s.berkeley.edu>

Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

Cc: Linus Walleij <linus.walleij@...aro.org>

Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>

Cc: John Stultz <john.stultz@...aro.org>

Cc: Colin Ian King <colin.king@...onical.com>

Cc: Nicolas Saenz Julienne <nsaenz@...nel.org>

Cc: Sudeep Holla <sudeep.holla@....com>

Cc: Maxime Ripard <maxime@...no.tech>

Cc: linux-efi@...r.kernel.org

Cc: linux-riscv@...ts.infradead.org


Best regards
Thomas

> ---
>   drivers/firmware/efi/sysfb_efi.c |    2 ++
>   1 file changed, 2 insertions(+)
> 
> --- linext-20210726.orig/drivers/firmware/efi/sysfb_efi.c
> +++ linext-20210726/drivers/firmware/efi/sysfb_efi.c
> @@ -332,6 +332,7 @@ static const struct fwnode_operations ef
>   	.add_links = efifb_add_links,
>   };
>   
> +#ifdef CONFIG_EFI
>   static struct fwnode_handle efifb_fwnode;
>   
>   __init void sysfb_apply_efi_quirks(struct platform_device *pd)
> @@ -354,3 +355,4 @@ __init void sysfb_apply_efi_quirks(struc
>   		pd->dev.fwnode = &efifb_fwnode;
>   	}
>   }
> +#endif
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer



Download attachment "OpenPGP_signature" of type "application/pgp-signature" (841 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ