Re: [PATCH v7 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

From: Kent Gibson
Date: Thu Sep 24 2020 - 09:40:32 EST


On Thu, Sep 24, 2020 at 03:36:24PM +0200, Bartosz Golaszewski wrote:
> On Sun, Sep 20, 2020 at 1:12 PM Kent Gibson <warthog618@xxxxxxxxx> wrote:
> >
> > >
> > > Can we use static_assert() at the top of the file? Presumably after
> > > inclusion block.
> > >
> >
> > Good idea - will do.
>
> Thanks Andy for bringing this to my attention, the amount of kernel
> interfaces I still don't know after all these years still amazes me.
>

And don't forget it was originally Andy's idea to use the BUILD_BUG_ON()
as well ;-).

Cheers,
Kent.