Re: [PATCH] fs/cifs:simplify the return expression of cifs_swn_auth_info_krb

From: kernel test robot
Date: Wed Feb 24 2021 - 02:05:21 EST


Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on cifs/for-next]
[also build test ERROR on v5.11 next-20210223]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/dingsenjie-163-com/fs-cifs-simplify-the-return-expression-of-cifs_swn_auth_info_krb/20210224-122502
base: git://git.samba.org/sfrench/cifs-2.6.git for-next
config: s390-randconfig-r022-20210223 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
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
# https://github.com/0day-ci/linux/commit/2b5765f734346617361817a3b6cefea209078b3f
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review dingsenjie-163-com/fs-cifs-simplify-the-return-expression-of-cifs_swn_auth_info_krb/20210224-122502
git checkout 2b5765f734346617361817a3b6cefea209078b3f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390

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

All errors (new ones prefixed by >>):

fs/cifs/cifs_swn.c: In function 'cifs_swn_auth_info_krb':
>> fs/cifs/cifs_swn.c:37:9: error: expected expression before '=' token
37 | return = nla_put_flag(skb, CIFS_GENL_ATTR_SWN_KRB_AUTH);
| ^
fs/cifs/cifs_swn.c:38:1: error: control reaches end of non-void function [-Werror=return-type]
38 | }
| ^
cc1: some warnings being treated as errors


vim +37 fs/cifs/cifs_swn.c

34
35 static int cifs_swn_auth_info_krb(struct cifs_tcon *tcon, struct sk_buff *skb)
36 {
> 37 return = nla_put_flag(skb, CIFS_GENL_ATTR_SWN_KRB_AUTH);
38 }
39

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

Attachment: .config.gz
Description: application/gzip