[PATCH v5 1/7] bits: split the definition of the asm and non-asm GENMASK()
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Thu Mar 6 17:51:25 UTC 2025
On Fri, Mar 07, 2025 at 12:07:45AM +0900, Vincent Mailhol wrote:
> On 06/03/2025 at 22:05, Andy Shevchenko wrote:
> > On Thu, Mar 06, 2025 at 08:29:52PM +0900, Vincent Mailhol via B4 Relay wrote:
> >> From: Vincent Mailhol <mailhol.vincent at wanadoo.fr>
...
> >> -/*
> >> - * BUILD_BUG_ON_ZERO is not available in h files included from asm files,
> >> - * disable the input check if that is the case.
> >> - */
> >
> > I believe this comment is still valid...
> >
> >> +#else /* defined(__ASSEMBLY__) */
> >
> >
> > ...here.
> >
> > Otherwise justify its removal in the commit message.
>
> OK. I will restore the comment in v6, but will move it to the #else
> branch,
Isn't it what I suggested? :-)
> like this:
> #else /* defined(__ASSEMBLY__) */
>
> /*
> * BUILD_BUG_ON_ZERO is not available in h files included from asm
> * files, so no input checks in assembly.
> */
> #define GENMASK(h, l) __GENMASK(h, l)
> #define GENMASK_ULL(h, l) __GENMASK_ULL(h, l)
>
> #endif /* !defined(__ASSEMBLY__) */
>
> >> +#define GENMASK(h, l) __GENMASK(h, l)
> >> +#define GENMASK_ULL(h, l) __GENMASK_ULL(h, l)
> >> +
> >> +#endif /* !defined(__ASSEMBLY__) */
--
With Best Regards,
Andy Shevchenko
More information about the dri-devel
mailing list