[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220311161806.GA304449@bhelgaas>
Date: Fri, 11 Mar 2022 10:18:06 -0600
From: Bjorn Helgaas <helgaas@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jonathan Corbet <corbet@....net>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
"Michael S . Tsirkin" <mst@...hat.com>, llvm@...ts.linux.dev,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
Bjorn Helgaas <bhelgaas@...gle.com>
Subject: Re: [PATCH 1/2] linux/types.h: Remove unnecessary __bitwise__
On Thu, Mar 10, 2022 at 05:52:16PM -0800, Andrew Morton wrote:
> On Thu, 10 Mar 2022 16:09:26 -0600 Bjorn Helgaas <helgaas@...nel.org> wrote:
>
> > From: Bjorn Helgaas <bhelgaas@...gle.com>
> >
> > There are no users of "__bitwise__" except the definition of "__bitwise".
> > Remove __bitwise__ and define __bitwise directly.
> >
> > This is a follow-up to 05de97003c77 ("linux/types.h: enable endian checks
> > for all sparse builds").
> >
>
> Can we change the copy-pasted code in tools/include/linux/types.h while
> we're there?
Oh, you bet! Thanks for pointing that out!
> --- a/tools/include/linux/types.h~linux-typesh-remove-unnecessary-__bitwise__-fix
> +++ a/tools/include/linux/types.h
> @@ -43,11 +43,10 @@ typedef __u8 u8;
> typedef __s8 s8;
>
> #ifdef __CHECKER__
> -#define __bitwise__ __attribute__((bitwise))
> +#define __bitwise __attribute__((bitwise))
> #else
> -#define __bitwise__
> +#define __bitwise
> #endif
> -#define __bitwise __bitwise__
>
> #define __force
> #define __user
> _
>
Powered by blists - more mailing lists