iio: Move __private marking before struct element priv in struct iio_dev
Subsystems (2)
Jonathan Cameron
maintainerPATCH 1/1 iio: Move __private marking before struct element priv in struct iio_dev
From: Jonathan Cameron <[email protected]>
This is to avoid tripping up kernel-doc which filters it out before but not after the name.
Fixes:./include/linux/iio/iio.h:628: warning: Function parameter or struct member '__private' not described in 'iio_dev' ./include/linux/iio/iio.h:628: warning: Excess struct member 'priv' description in 'iio_dev'
---
The alternative is tweak kernel-doc. Given it was inconsistent with the other __private entry anyway I decided to do it like this.
Not already applied and pushed out to squash the issue in linux-next.
include/linux/iio/iio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/iio/iio.h +1 -1
@@ -624,7 +624,7 @@ struct iio_dev {const struct iio_info *info;const struct iio_buffer_setup_ops *setup_ops; -void *priv__private ; +void __private *priv; };int iio_device_id (struct iio_dev *indio_dev);
Signature · 1 line
2.46.2
Quoted 8 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
This is to avoid tripping up kernel-doc which filters it out before but not after the name.
Fixes:
./include/linux/iio/iio.h:628: warning: Function parameter or struct member '__private' not described in 'iio_dev'./include/linux/iio/iio.h:628: warning: Excess struct member 'priv' description in 'iio_dev'
...
include/linux/iio/iio.h struct iio_dev { · line 628
Quoted 3 lines
include/linux/iio/iio.h +1
-1-void *priv__private ; +void __private *priv; };
This is still inconsistent from the position perspective (while may still work). I specifically placed it there, otherwise what you need is to have
void * __private priv;
to be fully consistent.
That said, either you need to carefully reindent all the affected members, or fix the kernel-doc, or both.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 19 lines · On Fri, 8 Nov 2024 10:41:02 +0200 Andy Shevchenko…
Quoted 8 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
This is to avoid tripping up kernel-doc which filters it out before but not after the name.
Fixes:
./include/linux/iio/iio.h:628: warning: Function parameter or struct member '__private' not described in 'iio_dev'./include/linux/iio/iio.h:628: warning: Excess struct member 'priv' description in 'iio_dev'...
include/linux/iio/iio.h struct iio_dev { · line 628
Quoted 3 lines
include/linux/iio/iio.h +1
-1-void *priv__private ; +void __private *priv; };This is still inconsistent from the position perspective (while may still work). I specifically placed it there, otherwise what you need is to have
Quoted 6 lines
void * __private priv;to be fully consistent.
That said, either you need to carefully reindent all the affected members, or fix the kernel-doc, or both.
Doh. Indeed. The marking was wrong and sparse tripped on it.
I'll switch to void * __private priv; hideous though that is and not worry about indenting.
We can then decide next cycle whether to tidy up better.
Quoted 1 line
Quoted 26 lines · On Fri, 8 Nov 2024 11:14:51 +0000 Jonathan Cameron…
Quoted 23 lines · On Fri, 8 Nov 2024 10:41:02 +0200 Andy Shevchenko…
Quoted 8 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
This is to avoid tripping up kernel-doc which filters it out before but not after the name.
Fixes:
./include/linux/iio/iio.h:628: warning: Function parameter or struct member '__private' not described in 'iio_dev'./include/linux/iio/iio.h:628: warning: Excess struct member 'priv' description in 'iio_dev'...
include/linux/iio/iio.h struct iio_dev { · line 628
Quoted 3 lines
include/linux/iio/iio.h +1
-1-void *priv__private ; +void __private *priv; };This is still inconsistent from the position perspective (while may still work). I specifically placed it there, otherwise what you need is to have
void * __private priv;to be fully consistent.
Quoted 7 lines
Quoted 2 lines
That said, either you need to carefully reindent all the affected members, or fix the kernel-doc, or both.
Doh. Indeed. The marking was wrong and sparse tripped on it.
I'll switch to void *
__privatepriv; hideous though that is and not worry about indenting.We can then decide next cycle whether to tidy up better.
Style wise I decided this was least hideous
void *__private priv;
Quoted 3 lines
Quoted 2 lines