drivers/net/wireless/intersil/hostap/hostap_ap.c:575:36: warning: 'prism2_ap_proc_seqops' defined but not used

From: kernel test robot
Date: Mon Apr 10 2023 - 14:09:04 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 09a9639e56c01c7a00d6c0ca63f4c7c41abe075d
commit: d51269592c327fcfe8ec80fd169a84f8dc0de73b hostap: switch to proc_create_{seq,single}_data
date: 4 years, 11 months ago
config: i386-buildonly-randconfig-r006-20230410 (https://download.01.org/0day-ci/archive/20230411/202304110247.1u15zaZc-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d51269592c327fcfe8ec80fd169a84f8dc0de73b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d51269592c327fcfe8ec80fd169a84f8dc0de73b
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash M=drivers/net/wireless/intersil/hostap

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304110247.1u15zaZc-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/net/wireless/intersil/hostap/hostap_ap.c: In function 'handle_assoc':
drivers/net/wireless/intersil/hostap/hostap_ap.c:1507:15: warning: variable 'txt' set but not used [-Wunused-but-set-variable]
1507 | char *txt = "";
| ^~~
At top level:
drivers/net/wireless/intersil/hostap/hostap_ap.c:994:12: warning: 'prism2_sta_proc_show' defined but not used [-Wunused-function]
994 | static int prism2_sta_proc_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intersil/hostap/hostap_ap.c:575:36: warning: 'prism2_ap_proc_seqops' defined but not used [-Wunused-const-variable=]
575 | static const struct seq_operations prism2_ap_proc_seqops = {
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intersil/hostap/hostap_ap.c:373:36: warning: 'ap_control_proc_seqops' defined but not used [-Wunused-const-variable=]
373 | static const struct seq_operations ap_control_proc_seqops = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_ap.c:70:12: warning: 'ap_debug_proc_show' defined but not used [-Wunused-function]
70 | static int ap_debug_proc_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~~~~~~
--
>> drivers/net/wireless/intersil/hostap/hostap_proc.c:346:36: warning: 'prism2_scan_results_proc_seqops' defined but not used [-Wunused-const-variable=]
346 | static const struct seq_operations prism2_scan_results_proc_seqops = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_proc.c:224:37: warning: 'prism2_aux_dump_proc_fops' defined but not used [-Wunused-const-variable=]
224 | static const struct file_operations prism2_aux_dump_proc_fops = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_proc.c:212:37: warning: 'prism2_pda_proc_fops' defined but not used [-Wunused-const-variable=]
212 | static const struct file_operations prism2_pda_proc_fops = {
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_proc.c:177:12: warning: 'prism2_crypt_proc_show' defined but not used [-Wunused-function]
177 | static int prism2_crypt_proc_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intersil/hostap/hostap_proc.c:170:36: warning: 'prism2_bss_list_proc_seqops' defined but not used [-Wunused-const-variable=]
170 | static const struct seq_operations prism2_bss_list_proc_seqops = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/intersil/hostap/hostap_proc.c:117:36: warning: 'prism2_wds_proc_seqops' defined but not used [-Wunused-const-variable=]
117 | static const struct seq_operations prism2_wds_proc_seqops = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_proc.c:49:12: warning: 'prism2_stats_proc_show' defined but not used [-Wunused-function]
49 | static int prism2_stats_proc_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/intersil/hostap/hostap_proc.c:16:12: warning: 'prism2_debug_proc_show' defined but not used [-Wunused-function]
16 | static int prism2_debug_proc_show(struct seq_file *m, void *v)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/intersil/hostap/hostap_proc.c:10:
drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: 'freq_list' defined but not used [-Wunused-const-variable=]
11 | static const long freq_list[] = { 2412, 2417, 2422, 2427, 2432, 2437, 2442,
| ^~~~~~~~~


vim +/prism2_ap_proc_seqops +575 drivers/net/wireless/intersil/hostap/hostap_ap.c

ff1d2767d5a43c drivers/net/wireless/hostap/hostap_ap.c Jouni Malinen 2005-05-12 574
6bbefe86796c07 drivers/net/wireless/hostap/hostap_ap.c David Howells 2013-04-10 @575 static const struct seq_operations prism2_ap_proc_seqops = {
6bbefe86796c07 drivers/net/wireless/hostap/hostap_ap.c David Howells 2013-04-10 576 .start = prism2_ap_proc_start,
6bbefe86796c07 drivers/net/wireless/hostap/hostap_ap.c David Howells 2013-04-10 577 .next = prism2_ap_proc_next,
6bbefe86796c07 drivers/net/wireless/hostap/hostap_ap.c David Howells 2013-04-10 578 .stop = prism2_ap_proc_stop,
6bbefe86796c07 drivers/net/wireless/hostap/hostap_ap.c David Howells 2013-04-10 579 .show = prism2_ap_proc_show,
6bbefe86796c07 drivers/net/wireless/hostap/hostap_ap.c David Howells 2013-04-10 580 };
ff1d2767d5a43c drivers/net/wireless/hostap/hostap_ap.c Jouni Malinen 2005-05-12 581 #endif /* PRISM2_NO_KERNEL_IEEE80211_MGMT */
ff1d2767d5a43c drivers/net/wireless/hostap/hostap_ap.c Jouni Malinen 2005-05-12 582
ff1d2767d5a43c drivers/net/wireless/hostap/hostap_ap.c Jouni Malinen 2005-05-12 583

:::::: The code at line 575 was first introduced by commit
:::::: 6bbefe86796c07fb8a6d28114f1e3f770586ba05 hostap: Don't use create_proc_read_entry()

:::::: TO: David Howells <dhowells@xxxxxxxxxx>
:::::: CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests