lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 14 Jul 2022 10:39:26 +0800
From:   kernel test robot <lkp@...el.com>
To:     Tudor Ambarus <tudor.ambarus@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [ambarus:at-hdmac-virt-dma 9/10] drivers/dma/at_hdmac.c:462:
 warning: expecting prototype for set_desc_eol(). Prototype was for
 set_lli_eol() instead

tree:   https://github.com/ambarus/linux-0day at-hdmac-virt-dma
head:   1557e0df0fd0457f8756b2a3e867940b5e63e615
commit: a7351e6f4c129e0d6c97d63def6ee31a4fb52f6b [9/10] dmaengine: at-hdmac: Update driver to use virt-dma
config: arm-allyesconfig
compiler: arm-linux-gnueabi-gcc (GCC) 11.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/ambarus/linux-0day/commit/a7351e6f4c129e0d6c97d63def6ee31a4fb52f6b
        git remote add ambarus https://github.com/ambarus/linux-0day
        git fetch --no-tags ambarus at-hdmac-virt-dma
        git checkout a7351e6f4c129e0d6c97d63def6ee31a4fb52f6b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/dma/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'vd' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'atchan' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'sglen' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'boundary' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'dst_hole' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'src_hole' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'memset_buffer' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'memset_paddr' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'memset_vaddr' not described in 'at_desc'
   drivers/dma/at_hdmac.c:250: warning: Function parameter or member 'sg' not described in 'at_desc'
   drivers/dma/at_hdmac.c:258: warning: cannot understand function prototype: 'enum atc_status '
   drivers/dma/at_hdmac.c:290: warning: Function parameter or member 'vc' not described in 'at_dma_chan'
   drivers/dma/at_hdmac.c:290: warning: Function parameter or member 'atdma' not described in 'at_dma_chan'
   drivers/dma/at_hdmac.c:290: warning: Function parameter or member 'cyclic' not described in 'at_dma_chan'
   drivers/dma/at_hdmac.c:290: warning: Function parameter or member 'desc' not described in 'at_dma_chan'
   drivers/dma/at_hdmac.c:358: warning: Function parameter or member 'regs' not described in 'at_dma'
   drivers/dma/at_hdmac.c:462: warning: Function parameter or member 'i' not described in 'set_lli_eol'
>> drivers/dma/at_hdmac.c:462: warning: expecting prototype for set_desc_eol(). Prototype was for set_lli_eol() instead
   drivers/dma/at_hdmac.c:701: warning: Function parameter or member 'i' not described in 'atc_handle_error'


vim +462 drivers/dma/at_hdmac.c

807dd140a1f96b6 Tudor Ambarus 2022-07-04  456  
807dd140a1f96b6 Tudor Ambarus 2022-07-04  457  /**
807dd140a1f96b6 Tudor Ambarus 2022-07-04  458   * set_desc_eol - set end-of-link to descriptor so it will end transfer
807dd140a1f96b6 Tudor Ambarus 2022-07-04  459   * @desc: descriptor, signle or at the end of a chain, to end chain on
807dd140a1f96b6 Tudor Ambarus 2022-07-04  460   */
a7351e6f4c129e0 Tudor Ambarus 2022-07-11  461  static void set_lli_eol(struct at_desc *desc, unsigned int i)
807dd140a1f96b6 Tudor Ambarus 2022-07-04 @462  {
a7351e6f4c129e0 Tudor Ambarus 2022-07-11  463  	u32 ctrlb = desc->sg[i].lli->ctrlb;
807dd140a1f96b6 Tudor Ambarus 2022-07-04  464  
807dd140a1f96b6 Tudor Ambarus 2022-07-04  465  	ctrlb &= ~ATC_IEN;
807dd140a1f96b6 Tudor Ambarus 2022-07-04  466  	ctrlb |= ATC_SRC_DSCR_DIS | ATC_DST_DSCR_DIS;
807dd140a1f96b6 Tudor Ambarus 2022-07-04  467  
a7351e6f4c129e0 Tudor Ambarus 2022-07-11  468  	desc->sg[i].lli->ctrlb = ctrlb;
a7351e6f4c129e0 Tudor Ambarus 2022-07-11  469  	desc->sg[i].lli->dscr = 0;
807dd140a1f96b6 Tudor Ambarus 2022-07-04  470  }
807dd140a1f96b6 Tudor Ambarus 2022-07-04  471  

:::::: The code at line 462 was first introduced by commit
:::::: 807dd140a1f96b66a04811cb693fcc3685110501 dmaengine: at_hdmac: Keep register definitions and structures private to at_hdmac.c

:::::: TO: Tudor Ambarus <tudor.ambarus@...rochip.com>
:::::: CC: Tudor Ambarus <tudor.ambarus@...rochip.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (349730 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ