Hi Yunxiang, kernel test robot noticed the following build errors: url: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20230624-040209/Yunxiang-Li/drm-amdgpu-fix-missing-fence-reserve-in-amdgpu_vm_sdma_commit/20230622-002915 base: the 2th patch of https://lore.kernel.org/r/20230621162652.10875-3-Yunxiang.Li%40amd.com patch link: https://lore.kernel.org/r/20230623200113.62051-1-Yunxiang.Li%40amd.com patch subject: [PATCH v2] dma-buf: allow nested dma_resv_reserve_fences config: arc-randconfig-r006-20230622 (https://download.01.org/0day-ci/archive/20230624/202306240508.nAff52YL-lkp@xxxxxxxxx/config) compiler: arceb-elf-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230624/202306240508.nAff52YL-lkp@xxxxxxxxx/reproduce) 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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202306240508.nAff52YL-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): drivers/dma-buf/dma-resv.c: In function 'dma_resv_add_fence': drivers/dma-buf/dma-resv.c:326: error: unterminated #else 326 | #ifdef CONFIG_DEBUG_MUTEXES | drivers/dma-buf/dma-resv.c:327:9: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers 327 | else | ^~~~ drivers/dma-buf/dma-resv.c:327:9: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory In file included from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/mutex.h:15, from include/linux/ww_mutex.h:20, from include/linux/dma-resv.h:42, from drivers/dma-buf/dma-resv.c:36: >> include/linux/compiler.h:24:39: error: expected declaration or statement at end of input 24 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:47:26: note: in expansion of macro '__branch_check__' 47 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'unlikely' 125 | unlikely(__ret_warn_on); \ | ^~~~~~~~ drivers/dma-buf/dma-resv.c:328:17: note: in expansion of macro 'WARN_ON' 328 | WARN_ON(1); // missing fence slot allocation | ^~~~~~~ vim +24 include/linux/compiler.h 1f0d69a9fc815d Steven Rostedt 2008-11-12 21 d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 22) #define __branch_check__(x, expect, is_constant) ({ \ 2026d35741f2c3 Mikulas Patocka 2018-05-30 23 long ______r; \ 134e6a034cb004 Steven Rostedt (VMware 2017-01-19 @24) static struct ftrace_likely_data \ e04462fb82f8dd Miguel Ojeda 2018-09-03 25 __aligned(4) \ 33def8498fdde1 Joe Perches 2020-10-21 26 __section("_ftrace_annotated_branch") \ 1f0d69a9fc815d Steven Rostedt 2008-11-12 27 ______f = { \ 134e6a034cb004 Steven Rostedt (VMware 2017-01-19 28) .data.func = __func__, \ 134e6a034cb004 Steven Rostedt (VMware 2017-01-19 29) .data.file = __FILE__, \ 134e6a034cb004 Steven Rostedt (VMware 2017-01-19 30) .data.line = __LINE__, \ 1f0d69a9fc815d Steven Rostedt 2008-11-12 31 }; \ d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 32) ______r = __builtin_expect(!!(x), expect); \ d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 33) ftrace_likely_update(&______f, ______r, \ d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 34) expect, is_constant); \ 1f0d69a9fc815d Steven Rostedt 2008-11-12 35 ______r; \ 1f0d69a9fc815d Steven Rostedt 2008-11-12 36 }) 1f0d69a9fc815d Steven Rostedt 2008-11-12 37 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki