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] [day] [month] [year] [list]
Message-ID: <7ca1b3e1-39ff-50b8-caa5-12ae40357f22@gmx.de>
Date:   Sat, 22 Apr 2023 11:36:35 +0200
From:   Helge Deller <deller@....de>
To:     Randy Dunlap <rdunlap@...radead.org>, linux-kernel@...r.kernel.org
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Jiri Slaby <jirislaby@...nel.org>,
        dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org
Subject: Re: [PATCH] linux/vt_buffer.h: allow either builtin or modular for
 macros

On 3/29/23 04:15, Randy Dunlap wrote:
> Fix build errors on ARCH=alpha when CONFIG_MDA_CONSOLE=m.
> This allows the ARCH macros to be the only ones defined.
>
> In file included from ../drivers/video/console/mdacon.c:37:
> ../arch/alpha/include/asm/vga.h:17:40: error: expected identifier or '(' before 'volatile'
>     17 | static inline void scr_writew(u16 val, volatile u16 *addr)
>        |                                        ^~~~~~~~
> ../include/linux/vt_buffer.h:24:34: note: in definition of macro 'scr_writew'
>     24 | #define scr_writew(val, addr) (*(addr) = (val))
>        |                                  ^~~~
> ../include/linux/vt_buffer.h:24:40: error: expected ')' before '=' token
>     24 | #define scr_writew(val, addr) (*(addr) = (val))
>        |                                        ^
> ../arch/alpha/include/asm/vga.h:17:20: note: in expansion of macro 'scr_writew'
>     17 | static inline void scr_writew(u16 val, volatile u16 *addr)
>        |                    ^~~~~~~~~~
> ../arch/alpha/include/asm/vga.h:25:29: error: expected identifier or '(' before 'volatile'
>     25 | static inline u16 scr_readw(volatile const u16 *addr)
>        |                             ^~~~~~~~
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Jiri Slaby <jirislaby@...nel.org>
> Cc: dri-devel@...ts.freedesktop.org
> Cc: linux-fbdev@...r.kernel.org

applied to fbdev git tree.

Thanks!
Helge

> ---
>   include/linux/vt_buffer.h |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -- a/include/linux/vt_buffer.h b/include/linux/vt_buffer.h
> --- a/include/linux/vt_buffer.h
> +++ b/include/linux/vt_buffer.h
> @@ -16,7 +16,7 @@
>
>   #include <linux/string.h>
>
> -#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_MDA_CONSOLE)
> +#if IS_ENABLED(CONFIG_VGA_CONSOLE) || IS_ENABLED(CONFIG_MDA_CONSOLE)
>   #include <asm/vga.h>
>   #endif
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ