linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2021-03-29 12:21 ` kernel test robot
  2021-03-30  0:01   ` Namjae Jeon
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-03-29 12:21 UTC (permalink / raw)
  To: Hyunchul Lee
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Namjae Jeon, Steve French

[-- Attachment #1: Type: text/plain, Size: 3643 bytes --]

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@intel.com>

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@samsung.com>
:::::: CC: Namjae Jeon <namjae.jeon@samsung.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42493 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [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
  2021-03-29 12:21 ` [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 kernel test robot
@ 2021-03-30  0:01   ` Namjae Jeon
  0 siblings, 0 replies; 2+ messages in thread
From: Namjae Jeon @ 2021-03-30  0:01 UTC (permalink / raw)
  To: 'kernel test robot', 'Hyunchul Lee'
  Cc: kbuild-all, clang-built-linux,
	'Linux Memory Management List', 'Steve French'

> 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://protect2.fireeye.com/v1/url?k=cfc3a3af-90589b52-cfc228e0-
> 000babff317b-12d18b655f894d9b&q=1&e=d28116fb-666b-461f-8615-
> 4fdc6017188a&u=https%3A%2F%2Fgithub.com%2Fllvm%2Fllvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
> reproduce (this is a W=1 build):
>         wget https://protect2.fireeye.com/v1/url?k=30d373d6-6f484b2b-30d2f899-000babff317b-
> 9937228f3c05747f&q=1&e=d28116fb-666b-461f-8615-
> 4fdc6017188a&u=https%3A%2F%2Fraw.githubusercontent.com%2Fintel%2Flkp-
> tests%2Fmaster%2Fsbin%2Fmake.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@intel.com>
> 
> 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
Thanks for report!
Will fix it.
> 
> 
> 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@samsung.com>
> :::::: CC: Namjae Jeon <namjae.jeon@samsung.com>
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation https://protect2.fireeye.com/v1/url?k=19998504-
> 4602bdf9-19980e4b-000babff317b-66f0fe65bf138534&q=1&e=d28116fb-666b-461f-8615-
> 4fdc6017188a&u=https%3A%2F%2Flists.01.org%2Fhyperkitty%2Flist%2Fkbuild-all%40lists.01.org



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-30  0:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20210329122146epcas1p247c9b82896f35a3206ec46c2a128577a@epcas1p2.samsung.com>
2021-03-29 12:21 ` [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 kernel test robot
2021-03-30  0:01   ` Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).