[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206250206.qse4jwzU-lkp@intel.com>
Date: Sat, 25 Jun 2022 10:58:55 +0800
From: kernel test robot <lkp@...el.com>
To: Oded Gabbay <ogabbay@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [ogabbay:gaudi2_full 45/48]
drivers/misc/habanalabs/goya/goya.c:5259:5: warning: no previous prototype
for 'goya_pre_schedule_cs'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git gaudi2_full
head: 91e0cd8151cd8592199b21f047a3915fe06ba098
commit: 4985fbb24b5d36ed7f4661c81c807f441ff85dc5 [45/48] habanalabs: add unsupported functions
config: x86_64-randconfig-a004
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/commit/?id=4985fbb24b5d36ed7f4661c81c807f441ff85dc5
git remote add ogabbay https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
git fetch --no-tags ogabbay gaudi2_full
git checkout 4985fbb24b5d36ed7f4661c81c807f441ff85dc5
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/misc/
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/misc/habanalabs/goya/goya.c:5259:5: warning: no previous prototype for 'goya_pre_schedule_cs' [-Wmissing-prototypes]
5259 | int goya_pre_schedule_cs(struct hl_cs *cs)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/misc/habanalabs/goya/goya.c:5343:5: warning: no previous prototype for 'goya_ack_mmu_page_fault_or_access_error' [-Wmissing-prototypes]
5343 | int goya_ack_mmu_page_fault_or_access_error(struct hl_device *hdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/misc/habanalabs/gaudi/gaudi.c: In function 'gaudi_scrub_device_mem':
drivers/misc/habanalabs/gaudi/gaudi.c:4830:25: warning: variable 'dummy_val' set but not used [-Wunused-but-set-variable]
4830 | u64 addr, size, dummy_val;
| ^~~~~~~~~
drivers/misc/habanalabs/gaudi/gaudi.c: At top level:
>> drivers/misc/habanalabs/gaudi/gaudi.c:8595:5: warning: no previous prototype for 'gaudi_pre_schedule_cs' [-Wmissing-prototypes]
8595 | int gaudi_pre_schedule_cs(struct hl_cs *cs)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/habanalabs/gaudi/gaudi.c:8971:5: warning: no previous prototype for 'gaudi_ack_mmu_page_fault_or_access_error' [-Wmissing-prototypes]
8971 | int gaudi_ack_mmu_page_fault_or_access_error(struct hl_device *hdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/goya_pre_schedule_cs +5259 drivers/misc/habanalabs/goya/goya.c
5258
> 5259 int goya_pre_schedule_cs(struct hl_cs *cs)
5260 {
5261 return 0;
5262 }
5263
5264 u32 goya_get_queue_id_for_cq(struct hl_device *hdev, u32 cq_idx)
5265 {
5266 return cq_idx;
5267 }
5268
5269 static u32 goya_get_signal_cb_size(struct hl_device *hdev)
5270 {
5271 return 0;
5272 }
5273
5274 static u32 goya_get_wait_cb_size(struct hl_device *hdev)
5275 {
5276 return 0;
5277 }
5278
5279 static u32 goya_gen_signal_cb(struct hl_device *hdev, void *data, u16 sob_id,
5280 u32 size, bool eb)
5281 {
5282 return 0;
5283 }
5284
5285 static u32 goya_gen_wait_cb(struct hl_device *hdev,
5286 struct hl_gen_wait_properties *prop)
5287 {
5288 return 0;
5289 }
5290
5291 static void goya_reset_sob(struct hl_device *hdev, void *data)
5292 {
5293
5294 }
5295
5296 static void goya_reset_sob_group(struct hl_device *hdev, u16 sob_group)
5297 {
5298
5299 }
5300
5301 u64 goya_get_device_time(struct hl_device *hdev)
5302 {
5303 u64 device_time = ((u64) RREG32(mmPSOC_TIMESTAMP_CNTCVU)) << 32;
5304
5305 return device_time | RREG32(mmPSOC_TIMESTAMP_CNTCVL);
5306 }
5307
5308 static int goya_collective_wait_init_cs(struct hl_cs *cs)
5309 {
5310 return 0;
5311 }
5312
5313 static int goya_collective_wait_create_jobs(struct hl_device *hdev,
5314 struct hl_ctx *ctx, struct hl_cs *cs, u32 wait_queue_id,
5315 u32 collective_engine_id, u32 encaps_signal_offset)
5316 {
5317 return -EINVAL;
5318 }
5319
5320 static void goya_ctx_fini(struct hl_ctx *ctx)
5321 {
5322
5323 }
5324
5325 static int goya_get_hw_block_id(struct hl_device *hdev, u64 block_addr,
5326 u32 *block_size, u32 *block_id)
5327 {
5328 return -EPERM;
5329 }
5330
5331 static int goya_block_mmap(struct hl_device *hdev, struct vm_area_struct *vma,
5332 u32 block_id, u32 block_size)
5333 {
5334 return -EPERM;
5335 }
5336
5337 static void goya_enable_events_from_fw(struct hl_device *hdev)
5338 {
5339 WREG32(mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR,
5340 GOYA_ASYNC_EVENT_ID_INTS_REGISTER);
5341 }
5342
> 5343 int goya_ack_mmu_page_fault_or_access_error(struct hl_device *hdev,
5344 u64 mmu_cap_mask)
5345 {
5346 dev_err(hdev->dev, "mmu_error function is not supported\n");
5347
5348 return -EINVAL;
5349 }
5350
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (134998 bytes)
Powered by blists - more mailing lists