[cifs:for-next 4/6] fs/cifs/smb2transport.c:352:2: note: in expansion of macro 'cifs_dbg'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.samba.org/sfrench/cifs-2.6.git for-next
head:   b9acb3e8ec98363c862f7ebd18564805df45696d
commit: ba4f2a8b205ff48fa9a130112980c17cfba45aff [4/6] CIFS: add CONFIG_CIFS_DEBUG_KEYS to dump encryption keys
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ba4f2a8b205ff48fa9a130112980c17cfba45aff
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:13:0,
                    from include/linux/list.h:8,
                    from include/linux/wait.h:6,
                    from include/linux/fs.h:5,
                    from fs/cifs/smb2transport.c:25:
   fs/cifs/smb2transport.c: In function 'generate_smb3signingkey':
>> fs/cifs/cifs_debug.h:55:24: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
      pr_debug_ratelimited("%s: "    \
                           ^
   include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
>> fs/cifs/cifs_debug.h:55:3: note: in expansion of macro 'pr_debug_ratelimited'
      pr_debug_ratelimited("%s: "    \
      ^~~~~~~~~~~~~~~~~~~~
>> fs/cifs/smb2transport.c:352:2: note: in expansion of macro 'cifs_dbg'
     cifs_dbg(VFS, "Session Id    %*ph\n", sizeof(ses->Suid), &ses->Suid);
     ^~~~~~~~
   In file included from fs/cifs/smb2transport.c:39:0:
>> fs/cifs/smb2transport.c:352:16: warning: field width specifier '*' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
     cifs_dbg(VFS, "Session Id    %*ph\n", sizeof(ses->Suid), &ses->Suid);
                   ^
   fs/cifs/cifs_debug.h:58:16: note: in definition of macro 'cifs_dbg'
      cifs_vfs_err(fmt, ##__VA_ARGS__);   \
                   ^~~
   In file included from include/linux/kernel.h:13:0,
                    from include/linux/list.h:8,
                    from include/linux/wait.h:6,
                    from include/linux/fs.h:5,
                    from fs/cifs/smb2transport.c:25:
   fs/cifs/smb2transport.c:352:16: warning: field width specifier '*' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
     cifs_dbg(VFS, "Session Id    %*ph\n", sizeof(ses->Suid), &ses->Suid);
                   ^
   include/linux/printk.h:285:21: note: in definition of macro 'pr_fmt'
    #define pr_fmt(fmt) fmt
                        ^~~
   fs/cifs/cifs_debug.h:60:3: note: in expansion of macro 'pr_debug_ratelimited'
      pr_debug_ratelimited(fmt, ##__VA_ARGS__);  \
      ^~~~~~~~~~~~~~~~~~~~
>> fs/cifs/smb2transport.c:352:2: note: in expansion of macro 'cifs_dbg'
     cifs_dbg(VFS, "Session Id    %*ph\n", sizeof(ses->Suid), &ses->Suid);
     ^~~~~~~~

vim +/cifs_dbg +352 fs/cifs/smb2transport.c

   336			return rc;
   337	
   338		rc = generate_key(ses, ptriplet->decryption.label,
   339				  ptriplet->decryption.context,
   340				  ses->smb3decryptionkey, SMB3_SIGN_KEY_SIZE);
   341	
   342		if (rc)
   343			return rc;
   344	
   345	#ifdef CONFIG_CIFS_DEBUG_DUMP_KEYS
   346		cifs_dbg(VFS, "%s: dumping generated AES session keys\n", __func__);
   347		/*
   348		 * The session id is opaque in terms of endianness, so we can't
   349		 * print it as a long long. we dump it as we got it on the
   350		 * wire.
   351		 */
 > 352		cifs_dbg(VFS, "Session Id    %*ph\n", sizeof(ses->Suid), &ses->Suid);
   353		cifs_dbg(VFS, "Session Key   %*ph\n",
   354			 SMB2_NTLMV2_SESSKEY_SIZE, ses->auth_key.response);
   355		cifs_dbg(VFS, "Signing Key   %*ph\n",
   356			 SMB3_SIGN_KEY_SIZE, ses->smb3signingkey);
   357		cifs_dbg(VFS, "ServerIn Key  %*ph\n",
   358			 SMB3_SIGN_KEY_SIZE, ses->smb3encryptionkey);
   359		cifs_dbg(VFS, "ServerOut Key %*ph\n",
   360			 SMB3_SIGN_KEY_SIZE, ses->smb3decryptionkey);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux