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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPybu_1GzTJqsQURK-PjbF3+Pi9a6rb_sBUgTih8-KKx2sP-0Q@mail.gmail.com>
Date:	Mon, 4 Jul 2016 15:52:38 +0200
From:	Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>
To:	Arnd Bergmann <arnd@...db.de>
Cc:	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Jiri Slaby <jslaby@...e.com>, Alan Cox <alan@...ux.intel.com>,
	"Ji-Ze Hong (Peter Hong)" <hpeter@...il.com>,
	Peter Hurley <peter@...leysoftware.com>,
	linux-serial@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] 8250/fintek: rename IRQ_MODE macro

Acked-by: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>

On Mon, Jun 27, 2016 at 11:21 AM, Arnd Bergmann <arnd@...db.de> wrote:
> A bugfix for the fintek driver required defining some macros, but
> one of them clashes with a system header on ARM:
>
> drivers/tty/serial/8250/8250_fintek.c:34:0: error: "IRQ_MODE" redefined [-Werror]
>  #define IRQ_MODE 0x70
>
> In file included from /git/arm-soc/arch/arm/include/asm/ptrace.h:13:0,
>                  from /git/arm-soc/arch/arm/include/asm/irqflags.h:6,
>                  from /git/arm-soc/include/linux/irqflags.h:15,
>                  from /git/arm-soc/arch/arm/include/asm/bitops.h:27,
>                  from /git/arm-soc/include/linux/bitops.h:36,
>                  from /git/arm-soc/include/linux/kernel.h:10,
>                  from /git/arm-soc/include/linux/list.h:8,
>                  from /git/arm-soc/include/linux/module.h:9,
>                  from /git/arm-soc/drivers/tty/serial/8250/8250_fintek.c:11:
> arch/arm/include/uapi/asm/ptrace.h:55:0: note: this is the location of the previous definition
>
> This renames the newly introduced 'IRQ_MODE' macro to FINTEK_IRQ_MODE.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> Fixes: 4da22f1418cb ("serial: 8250_fintek: fix the mismatched IRQ mode")
> ---
>  drivers/tty/serial/8250/8250_fintek.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_fintek.c b/drivers/tty/serial/8250/8250_fintek.c
> index 737b4b3957b0..0facc789fe7d 100644
> --- a/drivers/tty/serial/8250/8250_fintek.c
> +++ b/drivers/tty/serial/8250/8250_fintek.c
> @@ -31,7 +31,7 @@
>  #define IO_ADDR2 0x60
>  #define LDN 0x7
>
> -#define IRQ_MODE       0x70
> +#define FINTEK_IRQ_MODE        0x70
>  #define IRQ_SHARE      BIT(4)
>  #define IRQ_MODE_MASK  (BIT(6) | BIT(5))
>  #define IRQ_LEVEL_LOW  0
> @@ -195,7 +195,7 @@ static int fintek_8250_set_irq_mode(struct fintek_8250 *pdata, bool level_mode)
>         outb(LDN, pdata->base_port + ADDR_PORT);
>         outb(pdata->index, pdata->base_port + DATA_PORT);
>
> -       outb(IRQ_MODE, pdata->base_port + ADDR_PORT);
> +       outb(FINTEK_IRQ_MODE, pdata->base_port + ADDR_PORT);
>         tmp = inb(pdata->base_port + DATA_PORT);
>
>         tmp &= ~IRQ_MODE_MASK;
> --
> 2.9.0
>



-- 
Ricardo Ribalda

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ