warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Pisi Linux) 15.2.0
You are using: x86_64-pc-linux-gnu-gcc (Pisi Linux) 15.2.0
nvidia/nv-imp.c: In function ‘nv_imp_get_import_data’:
nvidia/nv-imp.c:133:5: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
133 | #if IMP_SUPPORT_FUNCTIONS_PRESENT
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-imp.c:133:1: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
133 | #if IMP_SUPPORT_FUNCTIONS_PRESENT
| ^~~~~~~~~~~~~~~~~~~
nvidia/nv-imp.c: In function ‘nv_imp_enable_disable_rfl’:
nvidia/nv-imp.c:171:5: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
171 | #if IMP_SUPPORT_FUNCTIONS_PRESENT
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-imp.c:171:1: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
171 | #if IMP_SUPPORT_FUNCTIONS_PRESENT
| ^~~~~~~~~~~~~~~~~~~
nvidia/nv-imp.c: In function ‘nv_imp_icc_get’:
nvidia/nv-imp.c:230:5: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
230 | #if ICC_SUPPORT_FUNCTIONS_PRESENT && NV_SUPPORTS_PLATFORM_DEVICE
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-imp.c: In function ‘nv_imp_icc_put’:
nvidia/nv-imp.c:305:5: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
305 | #if ICC_SUPPORT_FUNCTIONS_PRESENT
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-imp.c: In function ‘nv_imp_icc_set_bw’:
nvidia/nv-imp.c:364:5: warning: this use of ‘defined’ may not be portable [-Wexpansion-to-defined]
364 | #if ICC_SUPPORT_FUNCTIONS_PRESENT && NV_SUPPORTS_PLATFORM_DEVICE
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-mmap.c: In function ‘nv_vma_enter_locked’:
nvidia/nv-mmap.c:1005:9: warning: ignoring return value of ‘refcount_sub_and_test’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1005 | refcount_sub_and_test(NV_VMA_LOCK_OFFSET, &vma->vm_refcnt);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-vm.c:412:11: warning: no previous prototype for ‘nv_init_page_pools’ [-Wmissing-prototypes]
412 | NV_STATUS nv_init_page_pools(void) { return NV_OK; }
| ^~~~~~~~~~~~~~~~~~
nvidia/nv-vm.c:413:6: warning: no previous prototype for ‘nv_destroy_page_pools’ [-Wmissing-prototypes]
413 | void nv_destroy_page_pools(void) {}
| ^~~~~~~~~~~~~~~~~~~~~
nvidia/nv-vm.c:414:14: warning: no previous prototype for ‘nv_mem_pool_alloc_pages’ [-Wmissing-prototypes]
414 | unsigned int nv_mem_pool_alloc_pages(nv_page_pool_t *mem_pool, nv_alloc_t *at) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~
nvidia/nv-vm.c:415:11: warning: no previous prototype for ‘nv_mem_pool_free_pages’ [-Wmissing-prototypes]
415 | NV_STATUS nv_mem_pool_free_pages(nv_page_pool_t *mem_pool, nv_alloc_t *at) { return NV_OK; }
| ^~~~~~~~~~~~~~~~~~~~~~