tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 52a3b0aa13aa2325ca2caf528fbcaba06ad3bab5 commit: 901128a1ed92d11749cd5ad529be4e30f3196214 [13/13] uburma: add uburma command and user object framework headers config: arm64-randconfig-002-20251226 (https://download.01.org/0day-ci/archive/20251225/202512252339.bFtPO9U0-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 4ef602d446057dabf5f61fb221669ecbeda49279) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251225/202512252339.bFtPO9U0-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512252339.bFtPO9U0-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from <built-in>:3: In file included from include/linux/compiler_types.h:150: include/linux/compiler-clang.h:33:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 33 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:368:9: note: previous definition is here 368 | #define __SANITIZE_ADDRESS__ 1 | ^
drivers/ub/urma/uburma/uburma_dev_ops.c:77:2: error: call to undeclared function 'mmu_notifier_unregister'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | mmu_notifier_unregister(&file->ub_mn.mn, mm); | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:77:2: note: did you mean 'mmu_notifier_release'? include/linux/mmu_notifier.h:629:20: note: 'mmu_notifier_release' declared here 629 | static inline void mmu_notifier_release(struct mm_struct *mm) | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:68:6: warning: no previous prototype for function 'uburma_unregister_mmu' [-Wmissing-prototypes] 68 | void uburma_unregister_mmu(struct uburma_file *file) | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:68:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 68 | void uburma_unregister_mmu(struct uburma_file *file) | ^ | static drivers/ub/urma/uburma/uburma_dev_ops.c:87:8: error: call to undeclared function 'mmu_notifier_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | ret = mmu_notifier_register(&ub_mn->mn, current->mm); | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:87:8: note: did you mean 'mmu_notifier_release'? include/linux/mmu_notifier.h:629:20: note: 'mmu_notifier_release' declared here 629 | static inline void mmu_notifier_release(struct mm_struct *mm) | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:80:5: warning: no previous prototype for function 'uburma_register_mmu' [-Wmissing-prototypes] 80 | int uburma_register_mmu(struct uburma_file *file) | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:80:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 80 | int uburma_register_mmu(struct uburma_file *file) | ^ | static drivers/ub/urma/uburma/uburma_dev_ops.c:96:6: warning: no previous prototype for function 'uburma_release_file' [-Wmissing-prototypes] 96 | void uburma_release_file(struct kref *ref) | ^ drivers/ub/urma/uburma/uburma_dev_ops.c:96:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 96 | void uburma_release_file(struct kref *ref) | ^ | static 4 warnings and 2 errors generated.
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for ARCH_SUPPORTS_SCHED_SOFT_QUOTA Depends on [n]: CGROUPS [=n] Selected by [y]: - ARM64 [=y] vim +/mmu_notifier_unregister +77 drivers/ub/urma/uburma/uburma_dev_ops.c 67
68 void uburma_unregister_mmu(struct uburma_file *file) 69 { 70 struct uburma_mn *ub_mn = &file->ub_mn; 71 struct mm_struct *mm = ub_mn->mm; 72 73 if (!mm) 74 return; 75 76 file->ub_mn.mm = NULL; 77 mmu_notifier_unregister(&file->ub_mn.mn, mm); 78 } 79 80 int uburma_register_mmu(struct uburma_file *file) 81 { 82 struct uburma_mn *ub_mn = &file->ub_mn; 83 int ret = 0; 84 85 ub_mn->mm = current->mm; 86 ub_mn->mn.ops = &uburma_mm_notifier_ops; 87 ret = mmu_notifier_register(&ub_mn->mn, current->mm); 88 if (ret) { 89 ub_mn->mm = NULL; 90 return ret; 91 } 92 93 return 0; 94 } 95
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki