[linux-next:master 4948/8469] fs/cifsd/oplock.c:1454: warning: expecting prototype for create_durable_rsp__buf(). Prototype was for create_durable_rsp_buf() instead

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9d49ed9ca93b8c564033c1d6808017bc9052b5db
commit: 2d44673005eab9b51d7851724c63f8bcb060202b [4948/8469] cifsd: fix incorrect comments
config: powerpc-randconfig-r023-20210329 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2d44673005eab9b51d7851724c63f8bcb060202b
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 2d44673005eab9b51d7851724c63f8bcb060202b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> fs/cifsd/oplock.c:1454: warning: expecting prototype for create_durable_rsp__buf(). Prototype was for create_durable_rsp_buf() instead


vim +1454 fs/cifsd/oplock.c

788b6f45c1d2ee Namjae Jeon  2021-03-16  1448  
788b6f45c1d2ee Namjae Jeon  2021-03-16  1449  /**
2d44673005eab9 Hyunchul Lee 2021-03-21  1450   * create_durable_rsp__buf() - create durable handle context
788b6f45c1d2ee Namjae Jeon  2021-03-16  1451   * @cc:	buffer to create durable context response
788b6f45c1d2ee Namjae Jeon  2021-03-16  1452   */
788b6f45c1d2ee Namjae Jeon  2021-03-16  1453  void create_durable_rsp_buf(char *cc)
788b6f45c1d2ee Namjae Jeon  2021-03-16 @1454  {
788b6f45c1d2ee Namjae Jeon  2021-03-16  1455  	struct create_durable_rsp *buf;
788b6f45c1d2ee Namjae Jeon  2021-03-16  1456  
788b6f45c1d2ee Namjae Jeon  2021-03-16  1457  	buf = (struct create_durable_rsp *)cc;
788b6f45c1d2ee Namjae Jeon  2021-03-16  1458  	memset(buf, 0, sizeof(struct create_durable_rsp));
788b6f45c1d2ee Namjae Jeon  2021-03-16  1459  	buf->ccontext.DataOffset = cpu_to_le16(offsetof
788b6f45c1d2ee Namjae Jeon  2021-03-16  1460  			(struct create_durable_rsp, Data));
788b6f45c1d2ee Namjae Jeon  2021-03-16  1461  	buf->ccontext.DataLength = cpu_to_le32(8);
788b6f45c1d2ee Namjae Jeon  2021-03-16  1462  	buf->ccontext.NameOffset = cpu_to_le16(offsetof
788b6f45c1d2ee Namjae Jeon  2021-03-16  1463  			(struct create_durable_rsp, Name));
788b6f45c1d2ee Namjae Jeon  2021-03-16  1464  	buf->ccontext.NameLength = cpu_to_le16(4);
788b6f45c1d2ee Namjae Jeon  2021-03-16  1465  	/* SMB2_CREATE_DURABLE_HANDLE_RESPONSE is "DHnQ" */
788b6f45c1d2ee Namjae Jeon  2021-03-16  1466  	buf->Name[0] = 'D';
788b6f45c1d2ee Namjae Jeon  2021-03-16  1467  	buf->Name[1] = 'H';
788b6f45c1d2ee Namjae Jeon  2021-03-16  1468  	buf->Name[2] = 'n';
788b6f45c1d2ee Namjae Jeon  2021-03-16  1469  	buf->Name[3] = 'Q';
788b6f45c1d2ee Namjae Jeon  2021-03-16  1470  }
788b6f45c1d2ee Namjae Jeon  2021-03-16  1471  

:::::: The code at line 1454 was first introduced by commit
:::::: 788b6f45c1d2eef909c296d775196bc6ec7dd63a cifsd: add server-side procedures for SMB3

:::::: TO: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>
:::::: CC: Namjae Jeon <namjae.jeon@xxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux