drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c:31:1: warning: no previous prototype for 'tu102_mmu_kind'
From: kbuild test robot
Date: Thu May 28 2020 - 05:30:55 EST
Hi James,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6
commit: 176ada03e3c2cc0e0d725ea4626dfebec681578f drm/nouveau/mmu: Add correct turing page kinds
date: 4 months ago
config: arm64-sof-customedconfig-xrun-debug-defconfig (attached as .config)
compiler: aarch64-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
git checkout 176ada03e3c2cc0e0d725ea4626dfebec681578f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c:31:1: warning: no previous prototype for 'tu102_mmu_kind' [-Wmissing-prototypes]
31 | tu102_mmu_kind(struct nvkm_mmu *mmu, int *count, u8 *invalid)
| ^~~~~~~~~~~~~~
vim +/tu102_mmu_kind +31 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/tu102.c
29
30 const u8 *
> 31 tu102_mmu_kind(struct nvkm_mmu *mmu, int *count, u8 *invalid)
32 {
33 static const u8
34 kind[16] = {
35 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00 */
36 0x06, 0x06, 0x02, 0x01, 0x03, 0x04, 0x05, 0x07,
37 };
38 *count = ARRAY_SIZE(kind);
39 *invalid = 0x07;
40 return kind;
41 }
42
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip