[xilinx-xlnx:xlnx_rebase_v5.10 1566/1981] fs/pstore/zone.c:39: warning: expecting prototype for struct psz_head. Prototype was for struct psz_buffer instead

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

 



tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: d3328cb2dd0a2fb94a09587105c37299e296d4c6 [1566/1981] scripts: kernel-doc: validate kernel-doc markup with the actual names
config: x86_64-randconfig-a011-20211214 (https://download.01.org/0day-ci/archive/20211215/202112150136.7UyCfGsC-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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/Xilinx/linux-xlnx/commit/d3328cb2dd0a2fb94a09587105c37299e296d4c6
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
        git checkout d3328cb2dd0a2fb94a09587105c37299e296d4c6
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/pstore/

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/pstore/zone.c:39: warning: expecting prototype for struct psz_head. Prototype was for struct psz_buffer instead


vim +39 fs/pstore/zone.c

d26c3321fe18dc WeiXiong Liao 2020-03-25  24  
d26c3321fe18dc WeiXiong Liao 2020-03-25  25  /**
d26c3321fe18dc WeiXiong Liao 2020-03-25  26   * struct psz_head - header of zone to flush to storage
d26c3321fe18dc WeiXiong Liao 2020-03-25  27   *
d26c3321fe18dc WeiXiong Liao 2020-03-25  28   * @sig: signature to indicate header (PSZ_SIG xor PSZONE-type value)
d26c3321fe18dc WeiXiong Liao 2020-03-25  29   * @datalen: length of data in @data
0dc068265a1c59 WeiXiong Liao 2020-03-25  30   * @start: offset into @data where the beginning of the stored bytes begin
d26c3321fe18dc WeiXiong Liao 2020-03-25  31   * @data: zone data.
d26c3321fe18dc WeiXiong Liao 2020-03-25  32   */
d26c3321fe18dc WeiXiong Liao 2020-03-25  33  struct psz_buffer {
d26c3321fe18dc WeiXiong Liao 2020-03-25  34  #define PSZ_SIG (0x43474244) /* DBGC */
d26c3321fe18dc WeiXiong Liao 2020-03-25  35  	uint32_t sig;
d26c3321fe18dc WeiXiong Liao 2020-03-25  36  	atomic_t datalen;
0dc068265a1c59 WeiXiong Liao 2020-03-25  37  	atomic_t start;
d26c3321fe18dc WeiXiong Liao 2020-03-25  38  	uint8_t data[];
d26c3321fe18dc WeiXiong Liao 2020-03-25 @39  };
d26c3321fe18dc WeiXiong Liao 2020-03-25  40  

:::::: The code at line 39 was first introduced by commit
:::::: d26c3321fe18dc74517dc1f518d584aa33b0a851 pstore/zone: Introduce common layer to manage storage zones

:::::: TO: WeiXiong Liao <liaoweixiong@xxxxxxxxxxxxxxxxx>
:::::: CC: Kees Cook <keescook@xxxxxxxxxxxx>

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



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux