Messages in this thread | | | Date | Wed, 16 Mar 2022 13:47:06 +0800 | From | kernel test robot <> | Subject | [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 464/9999] drivers/iommu/io-pgtable-arm.c:241:48: error: expected ')' before 'table_pte' |
| |
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable head: 5b194414a86d3b098004ed42b64152b41940baf7 commit: 27de1978c331d4e7571a5d0187ef1802d65dbf65 [464/9999] ANDROID: GKI: iommu/io-pgtable-arm: LPAE related updates by vendor config: sparc-buildonly-randconfig-r001-20220314 (https://download.01.org/0day-ci/archive/20220316/202203161322.YnbEPtC7-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 11.2.0 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://github.com/ammarfaizi2/linux-block/commit/27de1978c331d4e7571a5d0187ef1802d65dbf65 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable git checkout 27de1978c331d4e7571a5d0187ef1802d65dbf65 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash drivers/iommu/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
include/linux/dma-mapping.h:628:17: note: in expansion of macro 'WARN_ONCE' 628 | WARN_ONCE(1, "Remap function not implemented for %pS\n", | ^~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/asm-generic/bug.h:166:17: note: in expansion of macro 'WARN' 166 | WARN(1, format); \ | ^~~~ include/linux/dma-mapping.h:628:17: note: in expansion of macro 'WARN_ONCE' 628 | WARN_ONCE(1, "Remap function not implemented for %pS\n", | ^~~~~~~~~ include/linux/dma-mapping.h: In function 'dma_unremap': include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/bug.h:164:9: note: in expansion of macro 'if' 164 | if (unlikely(__ret_warn_once && !__warned)) { \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:164:13: note: in expansion of macro 'unlikely' 164 | if (unlikely(__ret_warn_once && !__warned)) { \ | ^~~~~~~~ include/linux/dma-mapping.h:643:17: note: in expansion of macro 'WARN_ONCE' 643 | WARN_ONCE(1, "unremap function not implemented for %pS\n", | ^~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:164:9: note: in expansion of macro 'if' 164 | if (unlikely(__ret_warn_once && !__warned)) { \ | ^~ include/linux/dma-mapping.h:643:17: note: in expansion of macro 'WARN_ONCE' 643 | WARN_ONCE(1, "unremap function not implemented for %pS\n", | ^~~~~~~~~ include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:134:13: note: in expansion of macro 'unlikely' 134 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ include/asm-generic/bug.h:166:17: note: in expansion of macro 'WARN' 166 | WARN(1, format); \ | ^~~~ include/linux/dma-mapping.h:643:17: note: in expansion of macro 'WARN_ONCE' 643 | WARN_ONCE(1, "unremap function not implemented for %pS\n", | ^~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/asm-generic/bug.h:166:17: note: in expansion of macro 'WARN' 166 | WARN(1, format); \ | ^~~~ include/linux/dma-mapping.h:643:17: note: in expansion of macro 'WARN_ONCE' 643 | WARN_ONCE(1, "unremap function not implemented for %pS\n", | ^~~~~~~~~ In file included from arch/sparc/include/asm/page.h:8, from arch/sparc/include/asm/thread_info_64.h:27, from arch/sparc/include/asm/thread_info.h:5, from include/linux/thread_info.h:38, from include/asm-generic/preempt.h:5, from ./arch/sparc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:81, from include/linux/spinlock.h:51, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from include/linux/scatterlist.h:8, from include/linux/iommu.h:22, from drivers/iommu/io-pgtable-arm.c:25: drivers/iommu/io-pgtable-arm.c: At top level: >> drivers/iommu/io-pgtable-arm.c:241:48: error: expected ')' before 'table_pte' 241 | static arm_lpae_iopte iopte_val(arm_lpae_iopte table_pte) | ^~~~~~~~~ arch/sparc/include/asm/page_64.h:77:27: note: in definition of macro 'iopte_val' 77 | #define iopte_val(x) ((x).iopte) | ^ >> arch/sparc/include/asm/page_64.h:77:29: error: expected ')' before '.' token 77 | #define iopte_val(x) ((x).iopte) | ^ drivers/iommu/io-pgtable-arm.c:241:23: note: in expansion of macro 'iopte_val' 241 | static arm_lpae_iopte iopte_val(arm_lpae_iopte table_pte) | ^~~~~~~~~ drivers/iommu/io-pgtable-arm.c: In function 'iopte_tblcnt_set': >> arch/sparc/include/asm/page_64.h:77:29: error: request for member 'iopte' in something not a structure or union 77 | #define iopte_val(x) ((x).iopte) | ^ drivers/iommu/io-pgtable-arm.c:266:30: note: in expansion of macro 'iopte_val' 266 | arm_lpae_iopte pte = iopte_val(*table_pte); | ^~~~~~~~~ drivers/iommu/io-pgtable-arm.c: In function '__arm_lpae_alloc_pages': drivers/iommu/io-pgtable-arm.c:312:23: error: implicit declaration of function 'io_pgtable_alloc_pages_exact' [-Werror=implicit-function-declaration] 312 | void *pages = io_pgtable_alloc_pages_exact(cfg, cookie, size, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iommu/io-pgtable-arm.c:312:23: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] drivers/iommu/io-pgtable-arm.c:337:9: error: implicit declaration of function 'io_pgtable_free_pages_exact' [-Werror=implicit-function-declaration] 337 | io_pgtable_free_pages_exact(cfg, cookie, pages, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/barrier.h:20, from arch/sparc/include/asm/barrier_64.h:59, from arch/sparc/include/asm/barrier.h:5, from arch/sparc/include/asm/atomic_64.h:13, from arch/sparc/include/asm/atomic.h:5, from include/linux/atomic.h:7, from drivers/iommu/io-pgtable-arm.c:23: drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_init_pte': include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:134:13: note: in expansion of macro 'unlikely' 134 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ include/linux/ratelimit.h:107:19: note: in expansion of macro 'WARN' 107 | int rtn = WARN(condition, format, ##__VA_ARGS__); \ | ^~~~ drivers/iommu/io-pgtable-arm.c:405:17: note: in expansion of macro 'WARN_RATELIMIT' 405 | WARN_RATELIMIT(1, "map without unmap\n"); | ^~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/ratelimit.h:107:19: note: in expansion of macro 'WARN' 107 | int rtn = WARN(condition, format, ##__VA_ARGS__); \ | ^~~~ drivers/iommu/io-pgtable-arm.c:405:17: note: in expansion of macro 'WARN_RATELIMIT' 405 | WARN_RATELIMIT(1, "map without unmap\n"); | ^~~~~~~~~~~~~~ drivers/iommu/io-pgtable-arm.c: In function '__arm_lpae_map': include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:37: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:125:13: note: in expansion of macro 'unlikely' 125 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ drivers/iommu/io-pgtable-arm.c:515:13: note: in expansion of macro 'WARN_ON' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:58:37: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ drivers/iommu/io-pgtable-arm.c:515:13: note: in expansion of macro 'WARN_ON' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~~~~~~ -- 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:125:13: note: in expansion of macro 'unlikely' 125 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ drivers/iommu/io-pgtable-arm.c:515:13: note: in expansion of macro 'WARN_ON' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:125:13: note: in expansion of macro 'unlikely' 125 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ drivers/iommu/io-pgtable-arm.c:515:13: note: in expansion of macro 'WARN_ON' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ drivers/iommu/io-pgtable-arm.c:515:13: note: in expansion of macro 'WARN_ON' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~~~~~~ include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:127:9: note: in expansion of macro 'unlikely' 127 | unlikely(__ret_warn_on); \ | ^~~~~~~~ drivers/iommu/io-pgtable-arm.c:515:13: note: in expansion of macro 'WARN_ON' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ drivers/iommu/io-pgtable-arm.c:515:9: note: in expansion of macro 'if' 515 | if (WARN_ON(lvl >= ARM_LPAE_MAX_LEVELS - 1)) | ^~ In file included from arch/sparc/include/asm/page.h:8, from arch/sparc/include/asm/thread_info_64.h:27, from arch/sparc/include/asm/thread_info.h:5, from include/linux/thread_info.h:38, from include/asm-generic/preempt.h:5, from ./arch/sparc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:81, from include/linux/spinlock.h:51, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from include/linux/scatterlist.h:8, from include/linux/iommu.h:22, from drivers/iommu/io-pgtable-arm.c:25: >> arch/sparc/include/asm/page_64.h:77:29: error: request for member 'iopte' in something not a structure or union 77 | #define iopte_val(x) ((x).iopte) | ^ arch/sparc/include/asm/page_64.h:148:60: note: in definition of macro '__va' 148 | #define __va(x) ((void *)((unsigned long) (x) + PAGE_OFFSET)) | ^ drivers/iommu/io-pgtable-arm.c:186:15: note: in expansion of macro 'iopte_val' 186 | (__va(iopte_val(pte) & ((1ULL << ARM_LPAE_MAX_ADDR_BITS) - 1) \ | ^~~~~~~~~ drivers/iommu/io-pgtable-arm.c:535:25: note: in expansion of macro 'iopte_deref' 535 | cptep = iopte_deref(pte, data); | ^~~~~~~~~~~ In file included from include/asm-generic/barrier.h:20, from arch/sparc/include/asm/barrier_64.h:59, from arch/sparc/include/asm/barrier.h:5, from arch/sparc/include/asm/atomic_64.h:13, from arch/sparc/include/asm/atomic.h:5, from include/linux/atomic.h:7, from drivers/iommu/io-pgtable-arm.c:23: include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:125:13: note: in expansion of macro 'unlikely' 125 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ drivers/iommu/io-pgtable-arm.c:538:17: note: in expansion of macro 'WARN_ON' 538 | WARN_ON(!selftest_running); | ^~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ drivers/iommu/io-pgtable-arm.c:538:17: note: in expansion of macro 'WARN_ON' 538 | WARN_ON(!selftest_running); | ^~~~~~~ drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_prot_to_pte': drivers/iommu/io-pgtable-arm.c:572:33: error: 'IOMMU_USE_UPSTREAM_HINT' undeclared (first use in this function) 572 | else if (prot & IOMMU_USE_UPSTREAM_HINT) | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:37: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ drivers/iommu/io-pgtable-arm.c:572:22: note: in expansion of macro 'if' 572 | else if (prot & IOMMU_USE_UPSTREAM_HINT) | ^~ drivers/iommu/io-pgtable-arm.c:572:33: note: each undeclared identifier is reported only once for each function it appears in 572 | else if (prot & IOMMU_USE_UPSTREAM_HINT) | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:37: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ drivers/iommu/io-pgtable-arm.c:572:22: note: in expansion of macro 'if' 572 | else if (prot & IOMMU_USE_UPSTREAM_HINT) | ^~ drivers/iommu/io-pgtable-arm.c:575:33: error: 'IOMMU_USE_LLC_NWA' undeclared (first use in this function) 575 | else if (prot & IOMMU_USE_LLC_NWA) | ^~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:37: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ drivers/iommu/io-pgtable-arm.c:575:22: note: in expansion of macro 'if' 575 | else if (prot & IOMMU_USE_LLC_NWA) | ^~ drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_map': include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:37: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ drivers/iommu/io-pgtable-arm.c:610:9: note: in expansion of macro 'if' 610 | if (WARN_ON(iova >= (1ULL << data->iop.cfg.ias) || | ^~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:125:9: note: in expansion of macro 'if' 125 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:125:13: note: in expansion of macro 'unlikely' 125 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ drivers/iommu/io-pgtable-arm.c:610:13: note: in expansion of macro 'WARN_ON' 610 | if (WARN_ON(iova >= (1ULL << data->iop.cfg.ias) || ..
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for FRAME_POINTER Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS || MCOUNT Selected by - LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !X86
vim +241 drivers/iommu/io-pgtable-arm.c
219 220 /* 221 * We'll use some ignored bits in table entries to keep track of the number 222 * of page mappings beneath the table. The maximum number of entries 223 * beneath any table mapping in armv8 is 8192 (which is possible at the 224 * 2nd- and 3rd-level when using a 64K granule size). The bits at our 225 * disposal are: 226 * 227 * 4k granule: [54..52], [11..2] 228 * 64k granule: [54..52], [15..2] 229 * 230 * [54..52], [11..2] is enough bits for tracking table mappings at any 231 * level for any granule, so we'll use those. 232 */ 233 #define BOTTOM_IGNORED_MASK 0x3ff 234 #define BOTTOM_IGNORED_SHIFT 2 235 #define BOTTOM_IGNORED_NUM_BITS 10 236 #define TOP_IGNORED_MASK 0x7ULL 237 #define TOP_IGNORED_SHIFT 52 238 #define IOPTE_RESERVED_MASK ((BOTTOM_IGNORED_MASK << BOTTOM_IGNORED_SHIFT) | \ 239 (TOP_IGNORED_MASK << TOP_IGNORED_SHIFT)) 240 > 241 static arm_lpae_iopte iopte_val(arm_lpae_iopte table_pte) 242 { 243 return table_pte & ~IOPTE_RESERVED_MASK; 244 } 245
--- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |