Message ID | 20240319-kdoc-nl80211-v1-0-549e09d52866@quicinc.com (mailing list archive) |
---|---|
Headers | show |
Series | wifi: nl80211: fix nl80211 UAPI kernel-doc | expand |
On Tue, 2024-03-19 at 11:26 -0700, Jeff Johnson wrote: > As part of my review of patches coming from the Qualcomm Innovation > Center I check to make sure that no checkpatch or kernel-doc issues > are introduced. An upcoming patch will propose a modification to > include/uapi/linux/nl80211.h. My review process flagged both > checkpatch and kernel-doc issues in the file, but these are > pre-existing issues. So this series fixes those pre-existing issues. > Thanks Jeff. Can you say what you're running for this? I've been running kernel-doc and builds with W=1 for a long time, and not seen issues. Is this perhaps checks from a newer kernel (we're currently on 6.8-rc1 for $reasons)? Thanks, johannes
Johannes Berg <johannes@sipsolutions.net> writes: > On Tue, 2024-03-19 at 11:26 -0700, Jeff Johnson wrote: >> As part of my review of patches coming from the Qualcomm Innovation >> Center I check to make sure that no checkpatch or kernel-doc issues >> are introduced. An upcoming patch will propose a modification to >> include/uapi/linux/nl80211.h. My review process flagged both >> checkpatch and kernel-doc issues in the file, but these are >> pre-existing issues. So this series fixes those pre-existing issues. >> > > Thanks Jeff. > > Can you say what you're running for this? I've been running kernel-doc > and builds with W=1 for a long time, and not seen issues. Is this > perhaps checks from a newer kernel (we're currently on 6.8-rc1 for > $reasons)? FWIW I also check for kernel-doc warnings every time I push to wireless or wireless-next and I don't see anything, so it's not kernel version related. I think I'll add the Jeff's tests to my scripts, once he provides them, so that we can catch these early. Of course it would be even better to have patchwork tests for stuff like this. Here's hoping we eventually implement those :)
On 3/20/2024 12:07 AM, Johannes Berg wrote: > On Tue, 2024-03-19 at 11:26 -0700, Jeff Johnson wrote: >> As part of my review of patches coming from the Qualcomm Innovation >> Center I check to make sure that no checkpatch or kernel-doc issues >> are introduced. An upcoming patch will propose a modification to >> include/uapi/linux/nl80211.h. My review process flagged both >> checkpatch and kernel-doc issues in the file, but these are >> pre-existing issues. So this series fixes those pre-existing issues. >> > > Thanks Jeff. > > Can you say what you're running for this? I've been running kernel-doc > and builds with W=1 for a long time, and not seen issues. Is this > perhaps checks from a newer kernel (we're currently on 6.8-rc1 for > $reasons)? files=$(git diff --name-only $base HEAD) scripts/kernel-doc -Werror -none $files scripts/checkpatch.pl --file $files
Jeff Johnson <quic_jjohnson@quicinc.com> writes: > On 3/20/2024 12:07 AM, Johannes Berg wrote: >> On Tue, 2024-03-19 at 11:26 -0700, Jeff Johnson wrote: >>> As part of my review of patches coming from the Qualcomm Innovation >>> Center I check to make sure that no checkpatch or kernel-doc issues >>> are introduced. An upcoming patch will propose a modification to >>> include/uapi/linux/nl80211.h. My review process flagged both >>> checkpatch and kernel-doc issues in the file, but these are >>> pre-existing issues. So this series fixes those pre-existing issues. >>> >> >> Thanks Jeff. >> >> Can you say what you're running for this? I've been running kernel-doc >> and builds with W=1 for a long time, and not seen issues. Is this >> perhaps checks from a newer kernel (we're currently on 6.8-rc1 for >> $reasons)? > > files=$(git diff --name-only $base HEAD) > scripts/kernel-doc -Werror -none $files > scripts/checkpatch.pl --file $files Thanks. So my plan is to run this in my check script: scripts/kernel-doc -none \ include/linux/ieee80211.h \ include/net/cfg80211.h \ include/net/ieee80211_radiotap.h \ include/net/iw_handler.h \ include/net/wext.h \ include/uapi/linux/nl80211.h \ include/uapi/linux/wireless.h \ include/net/mac80211.h \ include/linux/rfkill.h \ include/uapi/linux/rfkill.h Did I miss anything important? Although include/linux/rfkill.h has three warnings: include/linux/rfkill.h:104: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * rfkill_pause_polling(struct rfkill *rfkill) include/linux/rfkill.h:114: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * rfkill_resume_polling(struct rfkill *rfkill) include/linux/rfkill.h:331: warning: Function parameter or struct member 'rfkill' not described in 'rfkill_get_led_trigger_name' Any volunteers to fix those? :)