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
| ||
|
Date: Thu, 4 Aug 2022 09:06:35 +0800 From: kernel test robot <lkp@...el.com> To: Martin PoviĊĦer <povik+lin@...ebit.org> Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org, Hector Martin <marcan@...can.st> Subject: [asahilinux:bits/070-audio 2/15] drivers/dma/apple-admac.c:260:5: warning: no previous prototype for function 'admac_cyclic_read_residue' tree: https://github.com/AsahiLinux/linux bits/070-audio head: ddf6983d9229819248d0373854d32b4e4a0e123d commit: 594ea25c7f3f1ee8d0e952c6547bcd06843f9045 [2/15] dmaengine: apple-admac: Add Apple ADMAC driver config: arm64-buildonly-randconfig-r002-20220803 (https://download.01.org/0day-ci/archive/20220804/202208040845.ssI1CdgG-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 495519e5f8232d144ed26e9c18dbcbac6a5f25eb) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/AsahiLinux/linux/commit/594ea25c7f3f1ee8d0e952c6547bcd06843f9045 git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux bits/070-audio git checkout 594ea25c7f3f1ee8d0e952c6547bcd06843f9045 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 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/apple-admac.c:260:5: warning: no previous prototype for function 'admac_cyclic_read_residue' [-Wmissing-prototypes] u32 admac_cyclic_read_residue(struct admac_data *ad, int channo, struct admac_tx *adtx) ^ drivers/dma/apple-admac.c:260:1: note: declare 'static' if the function is not intended to be used outside of this translation unit u32 admac_cyclic_read_residue(struct admac_data *ad, int channo, struct admac_tx *adtx) ^ static 1 warning generated. vim +/admac_cyclic_read_residue +260 drivers/dma/apple-admac.c 256 257 /* 258 * Read from hardware the residue of a cyclic dmaengine transaction. 259 */ > 260 u32 admac_cyclic_read_residue(struct admac_data *ad, int channo, struct admac_tx *adtx) 261 { 262 u32 ring1, ring2; 263 u32 residue1, residue2; 264 int nreports; 265 size_t pos; 266 267 ring1 = admac_peek(ad, REG_REPORT_RING(channo)); 268 residue1 = admac_peek(ad, REG_RESIDUE(channo)); 269 ring2 = admac_peek(ad, REG_REPORT_RING(channo)); 270 residue2 = admac_peek(ad, REG_RESIDUE(channo)); 271 272 if (residue2 > residue1) { 273 // engine must have loaded next descriptor between the two residue reads 274 nreports = admac_ring_noccupied_slots(ring1) + 1; 275 } else { 276 // no descriptor load between the two reads, ring2 is safe to use 277 nreports = admac_ring_noccupied_slots(ring2); 278 } 279 280 pos = adtx->reclaimed_pos + adtx->period_len * (nreports + 1) \ 281 - residue2; 282 283 return adtx->buf_len - pos % adtx->buf_len; 284 } 285 -- 0-DAY CI Kernel Test Service https://01.org/lkp
Powered by blists - more mailing lists