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-a005 compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6fa9120080c35a5ff851c3fc3358692c4ef7ce0d) 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=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 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 where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/misc/habanalabs/goya/goya.c:5259:5: warning: no previous prototype for function 'goya_pre_schedule_cs' [-Wmissing-prototypes] int goya_pre_schedule_cs(struct hl_cs *cs) ^ drivers/misc/habanalabs/goya/goya.c:5259:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int goya_pre_schedule_cs(struct hl_cs *cs) ^ static >> drivers/misc/habanalabs/goya/goya.c:5343:5: warning: no previous prototype for function 'goya_ack_mmu_page_fault_or_access_error' [-Wmissing-prototypes] int goya_ack_mmu_page_fault_or_access_error(struct hl_device *hdev, ^ drivers/misc/habanalabs/goya/goya.c:5343:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int goya_ack_mmu_page_fault_or_access_error(struct hl_device *hdev, ^ static 2 warnings generated. -- >> drivers/misc/habanalabs/gaudi/gaudi.c:8595:5: warning: no previous prototype for function 'gaudi_pre_schedule_cs' [-Wmissing-prototypes] int gaudi_pre_schedule_cs(struct hl_cs *cs) ^ drivers/misc/habanalabs/gaudi/gaudi.c:8595:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int gaudi_pre_schedule_cs(struct hl_cs *cs) ^ static >> drivers/misc/habanalabs/gaudi/gaudi.c:8971:5: warning: no previous prototype for function 'gaudi_ack_mmu_page_fault_or_access_error' [-Wmissing-prototypes] int gaudi_ack_mmu_page_fault_or_access_error(struct hl_device *hdev, ^ drivers/misc/habanalabs/gaudi/gaudi.c:8971:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int gaudi_ack_mmu_page_fault_or_access_error(struct hl_device *hdev, ^ static 2 warnings generated. 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