[ogabbay:habanalabs-next 25/28] drivers/misc/habanalabs/goya/goya.c:4265:5: warning: no previous prototype for function 'goya_debugfs_read_dma'
From: kernel test robot
Date: Fri Apr 01 2022 - 19:34:09 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git habanalabs-next
head: fa59c43c5c906277ab3b753d782488ef4fd3ba62
commit: cb162eee0d9f31c21860a9f454563abde2ff30aa [25/28] habanalabs: remove debugfs read/write callbacks
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220402/202204020715.RF7P32XV-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project cc2e2b80a1f36a28fa7c96c38c2674b10868f09f)
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://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/commit/?id=cb162eee0d9f31c21860a9f454563abde2ff30aa
git remote add ogabbay https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
git fetch --no-tags ogabbay habanalabs-next
git checkout cb162eee0d9f31c21860a9f454563abde2ff30aa
# 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 drivers/misc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> drivers/misc/habanalabs/goya/goya.c:4265:5: warning: no previous prototype for function 'goya_debugfs_read_dma' [-Wmissing-prototypes]
int goya_debugfs_read_dma(struct hl_device *hdev, u64 addr, u32 size,
^
drivers/misc/habanalabs/goya/goya.c:4265:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int goya_debugfs_read_dma(struct hl_device *hdev, u64 addr, u32 size,
^
static
1 warning generated.
vim +/goya_debugfs_read_dma +4265 drivers/misc/habanalabs/goya/goya.c
4264
> 4265 int goya_debugfs_read_dma(struct hl_device *hdev, u64 addr, u32 size,
4266 void *blob_addr)
4267 {
4268 dev_err(hdev->dev, "Reading via DMA is unimplemented yet\n");
4269 return -EPERM;
4270 }
4271
--
0-DAY CI Kernel Test Service
https://01.org/lkp