[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <14744261.hP1S9H3m8l@wuerfel>
Date: Wed, 01 Jun 2016 10:12:22 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] char/mwave: remove custom BOOLEAN type
On Wednesday, June 1, 2016 10:00:33 AM CEST Alexandre Belloni wrote:
> On 31/05/2016 at 22:29:56 +0200, Arnd Bergmann wrote :
> > The mwave driver has its own macros for the BOOLEAN type and the
> > TRUE/FALSE values. This is redundant because the kernel already
> > has bool/true/false, and it clashes with the ACPI headers that
> > also define these types. The linux/acpi.h header is now included
> > implicitly from mwave through the mc146818rtc.h header, as
> > reported by Stephen Rothwell:
> >
> > In file included from drivers/char/mwave/smapi.c:51:0:
> > drivers/char/mwave/smapi.h:52:0: warning: "TRUE" redefined
> > #define TRUE 1
> > ^
> > In file included from include/acpi/acpi.h:58:0,
> > from include/linux/acpi.h:33,
> > from include/linux/mc146818rtc.h:21,
> > from drivers/char/mwave/smapi.c:50:
> > include/acpi/actypes.h:438:0: note: this is the location of the previous definition
> > #define TRUE (1 == 1)
> > ^
> >
> > This removes the private types from mwave and uses the standard
> > types instead.
> >
> > Signed-off-by: Arnd Bergmann <arnd@...db.de>
> > Fixes: fd09cc80165c ("rtc: cmos: move mc146818rtc code out of asm-generic/rtc.h")
> Reviewed-by: Alexandre Belloni <alexandre.belloni@...e-electrons.com>
>
> I guess you used sed anyway because they got changed in the strings as
> well.
>
Yes, that is right. It also makes more sense to adapt the strings at the same time,
so I left those changes in place.
Arnd
Powered by blists - more mailing lists