[cifs:for-next 15/16] fs//cifs/cifs_debug.c:178:9: warning: "CONFIG_CIFS_DEBUG" is not defined, evaluates to 0
Steve French
smfrench at gmail.com
Fri Jun 29 03:37:55 UTC 2018
Updated patch
On Thu, Jun 28, 2018 at 8:34 PM kbuild test robot via samba-technical
<samba-technical at lists.samba.org> wrote:
>
> tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
> head: 739943e0de624a14da460d879f714b9607beda78
> commit: fcff23e72c225da6a22bc0061d9fbeebf1f7fd48 [15/16] cifs: add missing debug entries for kconfig options
> config: x86_64-randconfig-x014-201825 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> reproduce:
> git checkout fcff23e72c225da6a22bc0061d9fbeebf1f7fd48
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All warnings (new ones prefixed by >>):
>
> fs//cifs/cifs_debug.c: In function 'cifs_debug_data_proc_show':
> >> fs//cifs/cifs_debug.c:178:9: warning: "CONFIG_CIFS_DEBUG" is not defined, evaluates to 0 [-Wundef]
> #elif CONFIG_CIFS_DEBUG
> ^~~~~~~~~~~~~~~~~
>
> vim +/CONFIG_CIFS_DEBUG +178 fs//cifs/cifs_debug.c
>
> 147
> 148 static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
> 149 {
> 150 struct list_head *tmp1, *tmp2, *tmp3;
> 151 struct mid_q_entry *mid_entry;
> 152 struct TCP_Server_Info *server;
> 153 struct cifs_ses *ses;
> 154 struct cifs_tcon *tcon;
> 155 int i, j;
> 156
> 157 seq_puts(m,
> 158 "Display Internal CIFS Data Structures for Debugging\n"
> 159 "---------------------------------------------------\n");
> 160 seq_printf(m, "CIFS Version %s\n", CIFS_VERSION);
> 161 seq_printf(m, "Features:");
> 162 #ifdef CONFIG_CIFS_DFS_UPCALL
> 163 seq_printf(m, " DFS");
> 164 #endif
> 165 #ifdef CONFIG_CIFS_FSCACHE
> 166 seq_printf(m, ",FSCACHE");
> 167 #endif
> 168 #ifdef CONFIG_CIFS_SMB_DIRECT
> 169 seq_printf(m, ",SMB_DIRECT");
> 170 #endif
> 171 #ifdef CONFIG_CIFS_STATS2
> 172 seq_printf(m, ",STATS2");
> 173 #elif CONFIG_CIFS_STATS
> 174 seq_printf(m, ",STATS");
> 175 #endif
> 176 #ifdef CONFIG_CIFS_DEBUG2
> 177 seq_printf(m, ",DEBUG2");
> > 178 #elif CONFIG_CIFS_DEBUG
> 179 seq_printf(m, ",DEBUG");
> 180 #endif
> 181 #ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY
> 182 seq_printf(m, ",ALLOW_INSECURE_LEGACY");
> 183 #endif
> 184 #ifdef CONFIG_CIFS_WEAK_PW_HASH
> 185 seq_printf(m, ",WEAK_PW_HASH");
> 186 #endif
> 187 #ifdef CONFIG_CIFS_POSIX
> 188 seq_printf(m, ",CIFS_POSIX");
> 189 #endif
> 190 #ifdef CONFIG_CIFS_UPCALL
> 191 seq_printf(m, ",UPCALL(SPNEGO)");
> 192 #endif
> 193 #ifdef CONFIG_CIFS_XATTR
> 194 seq_printf(m, ",XATTR");
> 195 #endif
> 196 #ifdef CONFIG_CIFS_ACL
> 197 seq_printf(m, ",ACL");
> 198 #endif
> 199 seq_putc(m, '\n');
> 200 seq_printf(m, "Active VFS Requests: %d\n", GlobalTotalActiveXid);
> 201 seq_printf(m, "Servers:");
> 202
> 203 i = 0;
> 204 spin_lock(&cifs_tcp_ses_lock);
> 205 list_for_each(tmp1, &cifs_tcp_ses_list) {
> 206 server = list_entry(tmp1, struct TCP_Server_Info,
> 207 tcp_ses_list);
> 208
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
Thanks,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cifs-add-missing-debug-entries-for-kconfig-options.patch
Type: text/x-patch
Size: 2538 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180628/650d9d0e/0001-cifs-add-missing-debug-entries-for-kconfig-options.bin>
More information about the samba-technical
mailing list