Kernel
Threads by month
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- 45 participants
- 21936 discussions
[openeuler:OLK-6.6 3540/3540] clang: warning: no such include directory: 'drivers/infiniband/hw/hiroce3/include/mag'
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
Hi Shuai,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302
commit: 5bc8dbb5fdf565625b2eea4080dbd70bade992b8 [3540/3540] infiniband/hw/hiroce3: Add Huawei Intelligent Network Card RDMA Driver
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251214/202512140527.ZQJQrPyG-lkp@…)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140527.ZQJQrPyG-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140527.ZQJQrPyG-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> clang: warning: no such include directory: 'drivers/infiniband/hw/hiroce3/include/mag' [-Wmissing-include-dirs]
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:6:
In file included from drivers/net/ethernet/huawei/hinic3/hinic3_hw.h:10:
In file included from drivers/net/ethernet/huawei/hinic3/hinic3_crm.h:7:
In file included from include/linux/pci.h:1663:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2204:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_ccf_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_ccf_format.h:720:9: note: previous '#pragma pack' directive that modifies alignment is here
720 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:
drivers/infiniband/hw/hiroce3/include/rdma/roce_dif_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_verbs_mr_attr.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
15 | #include "roce_dif_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "rdma_ext_ctx_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:377:9: note: previous '#pragma pack' directive that modifies alignment is here
377 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
7 | #include "rdma_context_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:5179:9: note: previous '#pragma pack' directive that modifies alignment is here
5179 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_common.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "roce_verbs_pub.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_pub.h:223:9: note: previous '#pragma pack' directive that modifies alignment is here
223 | #pragma pack()
| ^
11 warnings generated.
--
>> clang: warning: no such include directory: 'drivers/infiniband/hw/hiroce3/include/mag' [-Wmissing-include-dirs]
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:7:
In file included from include/rdma/ib_verbs.h:15:
In file included from include/linux/ethtool.h:18:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:13:
In file included from include/linux/kallsyms.h:13:
In file included from include/linux/mm.h:2204:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:13:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_ccf_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_ccf_format.h:720:9: note: previous '#pragma pack' directive that modifies alignment is here
720 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:13:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:
drivers/infiniband/hw/hiroce3/include/rdma/roce_dif_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_verbs_mr_attr.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:13:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
15 | #include "roce_dif_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:13:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "rdma_ext_ctx_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:377:9: note: previous '#pragma pack' directive that modifies alignment is here
377 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
drivers/infiniband/hw/hiroce3/cq/roce_cq.h:13:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
13 | #include "rdma_context_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:5179:9: note: previous '#pragma pack' directive that modifies alignment is here
5179 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:15:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "roce_verbs_pub.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_pub.h:223:9: note: previous '#pragma pack' directive that modifies alignment is here
223 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq.h:15:
drivers/infiniband/hw/hiroce3/roce.h:30:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
30 | #include "roce_verbs_cmd.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_pub.h:223:9: note: previous '#pragma pack' directive that modifies alignment is here
223 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_create.c:4:
drivers/infiniband/hw/hiroce3/cq/roce_cq.h:15:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
--
>> clang: warning: no such include directory: 'drivers/infiniband/hw/hiroce3/include/mag' [-Wmissing-include-dirs]
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:6:
In file included from drivers/net/ethernet/huawei/hinic3/hinic3_hw.h:10:
In file included from drivers/net/ethernet/huawei/hinic3/hinic3_crm.h:7:
In file included from include/linux/pci.h:1663:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2204:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_ccf_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_ccf_format.h:720:9: note: previous '#pragma pack' directive that modifies alignment is here
720 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:
drivers/infiniband/hw/hiroce3/include/rdma/roce_dif_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_verbs_mr_attr.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
15 | #include "roce_dif_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "rdma_ext_ctx_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:377:9: note: previous '#pragma pack' directive that modifies alignment is here
377 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
7 | #include "rdma_context_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:5179:9: note: previous '#pragma pack' directive that modifies alignment is here
5179 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:8:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "roce_verbs_pub.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_pub.h:223:9: note: previous '#pragma pack' directive that modifies alignment is here
223 | #pragma pack()
| ^
drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:63:5: warning: no previous prototype for function 'roce3_cq_hw2sw' [-Wmissing-prototypes]
63 | int roce3_cq_hw2sw(struct roce3_device *rdev, struct roce3_cq *cq)
| ^
drivers/infiniband/hw/hiroce3/cq/roce_cq_destroy.c:63:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
63 | int roce3_cq_hw2sw(struct roce3_device *rdev, struct roce3_cq *cq)
| ^
| static
12 warnings generated.
--
>> clang: warning: no such include directory: 'drivers/infiniband/hw/hiroce3/include/mag' [-Wmissing-include-dirs]
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:4:
In file included from include/net/ipv6.h:12:
In file included from include/linux/ipv6.h:100:
In file included from include/linux/tcp.h:17:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:13:
In file included from include/linux/kallsyms.h:13:
In file included from include/linux/mm.h:2204:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:26:
In file included from drivers/infiniband/hw/hiroce3/roce_event.h:20:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_ccf_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_ccf_format.h:720:9: note: previous '#pragma pack' directive that modifies alignment is here
720 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:26:
In file included from drivers/infiniband/hw/hiroce3/roce_event.h:20:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:
drivers/infiniband/hw/hiroce3/include/rdma/roce_dif_format.h:9:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
9 | #include "roce_verbs_mr_attr.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:26:
In file included from drivers/infiniband/hw/hiroce3/roce_event.h:20:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:15:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
15 | #include "roce_dif_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_mr_attr.h:328:9: note: previous '#pragma pack' directive that modifies alignment is here
328 | #pragma pack()
| ^
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:26:
In file included from drivers/infiniband/hw/hiroce3/roce_event.h:20:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
In file included from drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "rdma_ext_ctx_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_ext_ctx_format.h:377:9: note: previous '#pragma pack' directive that modifies alignment is here
377 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:26:
In file included from drivers/infiniband/hw/hiroce3/roce_event.h:20:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:7:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
7 | #include "rdma_context_format.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/rdma_context_format.h:5179:9: note: previous '#pragma pack' directive that modifies alignment is here
5179 | #pragma pack(0)
| ^
In file included from drivers/infiniband/hw/hiroce3/roce_main.c:26:
In file included from drivers/infiniband/hw/hiroce3/roce_event.h:20:
In file included from drivers/infiniband/hw/hiroce3/roce.h:30:
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_cmd.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
8 | #include "roce_verbs_pub.h"
| ^
drivers/infiniband/hw/hiroce3/include/rdma/roce_verbs_pub.h:223:9: note: previous '#pragma pack' directive that modifies alignment is here
223 | #pragma pack()
| ^
drivers/infiniband/hw/hiroce3/roce_main.c:1256:6: warning: no previous prototype for function 'roce3_need_proc_link_event' [-Wmissing-prototypes]
..
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:openEuler-1.0-LTS 1941/1941] mm/hugetlb.c:1370:6: warning: no previous prototype for 'free_huge_page_to_dhugetlb_pool'
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: 0bc0d0d57edacd59ebe38d05ad9c4b2bc185aa51 [1941/1941] dhugetlb: backport dynamic hugetlb feature
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251213/202512132206.SiQCfPUr-lkp@…)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132206.SiQCfPUr-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512132206.SiQCfPUr-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/hugetlb.c:1370:6: warning: no previous prototype for 'free_huge_page_to_dhugetlb_pool' [-Wmissing-prototypes]
1370 | void free_huge_page_to_dhugetlb_pool(struct page *page, bool restore_reserve)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
>> mm/memcontrol.c:5008:6: warning: no previous prototype for 'dhugetlb_pool_is_free' [-Wmissing-prototypes]
5008 | bool dhugetlb_pool_is_free(struct cgroup_subsys_state *css)
| ^~~~~~~~~~~~~~~~~~~~~
mm/memcontrol.c:6718: warning: bad line: | 0, otherwise.
vim +/free_huge_page_to_dhugetlb_pool +1370 mm/hugetlb.c
1324
1325 #ifdef CONFIG_DYNAMIC_HUGETLB
1326 static void free_huge_page_to_dhugetlb_pool(struct page *page,
1327 bool restore_reserve)
1328 {
1329 struct hstate *h = page_hstate(page);
1330 struct dhugetlb_pool *hpool;
1331
1332 hpool = get_dhugetlb_pool_from_dhugetlb_pagelist(page);
1333 if (unlikely(!hpool)) {
1334 pr_err("dhugetlb: free error: get hpool failed\n");
1335 return;
1336 }
1337
1338 spin_lock(&hpool->lock);
1339 ClearPagePool(page);
1340 set_compound_page_dtor(page, NULL_COMPOUND_DTOR);
1341 if (!hstate_is_gigantic(h)) {
1342 list_add(&page->lru, &hpool->dhugetlb_2M_freelists);
1343 hpool->free_reserved_2M++;
1344 hpool->used_2M--;
1345 if (restore_reserve) {
1346 hpool->mmap_reserved_2M++;
1347 trace_dhugetlb_acct_memory(hpool,
1348 hpool->mmap_reserved_2M,
1349 DHUGETLB_RESV_2M);
1350 }
1351 trace_dhugetlb_alloc_free(hpool, page, hpool->free_reserved_2M,
1352 DHUGETLB_FREE_2M);
1353 } else {
1354 list_add(&page->lru, &hpool->dhugetlb_1G_freelists);
1355 hpool->free_reserved_1G++;
1356 hpool->used_1G--;
1357 if (restore_reserve) {
1358 hpool->mmap_reserved_1G++;
1359 trace_dhugetlb_acct_memory(hpool,
1360 hpool->mmap_reserved_1G,
1361 DHUGETLB_RESV_1G);
1362 }
1363 trace_dhugetlb_alloc_free(hpool, page, hpool->free_reserved_1G,
1364 DHUGETLB_FREE_1G);
1365 }
1366 spin_unlock(&hpool->lock);
1367 dhugetlb_pool_put(hpool);
1368 }
1369 #else
> 1370 void free_huge_page_to_dhugetlb_pool(struct page *page, bool restore_reserve)
1371 {
1372 }
1373 #endif
1374
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:openEuler-1.0-LTS 1942/1942] drivers/md/bcache/acache.c:65:5: warning: no previous prototype for function 'acache_open'
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: 1c09f1b02db96b8277226cbe64fe5bbd185a7149 [1942/1942] bcache: add a framework to perform prefetch
config: x86_64-randconfig-006-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140431.6ZelE1lA-lkp@…)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140431.6ZelE1lA-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140431.6ZelE1lA-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from <built-in>:2:
In file included from include/linux/compiler_types.h:59:
include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
20 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:354:9: note: previous definition is here
354 | #define __SANITIZE_ADDRESS__ 1
| ^
>> drivers/md/bcache/acache.c:65:5: warning: no previous prototype for function 'acache_open' [-Wmissing-prototypes]
65 | int acache_open(struct inode *inode, struct file *filp)
| ^
drivers/md/bcache/acache.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
65 | int acache_open(struct inode *inode, struct file *filp)
| ^
| static
>> drivers/md/bcache/acache.c:83:5: warning: no previous prototype for function 'acache_release' [-Wmissing-prototypes]
83 | int acache_release(struct inode *inode, struct file *filp)
| ^
drivers/md/bcache/acache.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
83 | int acache_release(struct inode *inode, struct file *filp)
| ^
| static
drivers/md/bcache/acache.c:89:9: warning: no previous prototype for function 'read_circ_slice' [-Wmissing-prototypes]
89 | ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf,
| ^
drivers/md/bcache/acache.c:89:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
89 | ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf,
| ^
| static
>> drivers/md/bcache/acache.c:224:6: warning: no previous prototype for function 'init_acache_circ' [-Wmissing-prototypes]
224 | void init_acache_circ(struct acache_circ **circ, void *startaddr)
| ^
drivers/md/bcache/acache.c:224:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
224 | void init_acache_circ(struct acache_circ **circ, void *startaddr)
| ^
| static
>> drivers/md/bcache/acache.c:253:5: warning: no previous prototype for function 'acache_prefetch_init' [-Wmissing-prototypes]
253 | int acache_prefetch_init(struct acache_device *adev)
| ^
drivers/md/bcache/acache.c:253:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
253 | int acache_prefetch_init(struct acache_device *adev)
| ^
| static
drivers/md/bcache/acache.c:401:20: warning: no previous prototype for function 'get_cached_device_by_dev' [-Wmissing-prototypes]
401 | struct cached_dev *get_cached_device_by_dev(dev_t dev)
| ^
drivers/md/bcache/acache.c:401:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
401 | struct cached_dev *get_cached_device_by_dev(dev_t dev)
| ^
| static
>> drivers/md/bcache/acache.c:414:13: warning: no previous prototype for function 'get_bio_by_item' [-Wmissing-prototypes]
414 | struct bio *get_bio_by_item(struct cached_dev *dc, struct acache_info *item)
| ^
drivers/md/bcache/acache.c:414:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
414 | struct bio *get_bio_by_item(struct cached_dev *dc, struct acache_info *item)
| ^
| static
8 warnings generated.
vim +/acache_open +65 drivers/md/bcache/acache.c
63
64
> 65 int acache_open(struct inode *inode, struct file *filp)
66 {
67 struct mem_reg *dev;
68
69 int minor = MINOR(inode->i_rdev);
70
71 if (minor >= ACACHE_NR_DEVS)
72 return -ENODEV;
73 if (atomic_xchg(&acache_opened_dev, 1))
74 return -EPERM;
75
76 dev = &adev.mem_regionp[minor];
77
78 filp->private_data = dev;
79
80 return 0;
81 }
82
> 83 int acache_release(struct inode *inode, struct file *filp)
84 {
85 atomic_dec(&acache_opened_dev);
86 return 0;
87 }
88
89 ssize_t read_circ_slice(struct acache_circ *circ, struct acache_info *buf,
90 size_t size)
91 {
92 unsigned long first, todo, flags;
93
94 spin_lock_irqsave(&circ->lock, flags);
95
96 todo = CIRC_CNT(circ->head, circ->tail, circ->size);
97 if (todo == 0) {
98 spin_unlock_irqrestore(&circ->lock, flags);
99 return 0;
100 }
101 if (todo > size / sizeof(struct acache_info))
102 todo = size / sizeof(struct acache_info);
103
104 first = CIRC_CNT_TO_END(circ->head, circ->tail, circ->size);
105 if (first > todo)
106 first = todo;
107
108 memcpy(buf, circ->data + circ->tail, first * sizeof(struct acache_info));
109 if (first < todo)
110 memcpy(buf + first, circ->data,
111 (todo - first) * sizeof(struct acache_info));
112 circ->tail = (circ->tail + todo) & (circ->size - 1);
113
114 spin_unlock_irqrestore(&circ->lock, flags);
115 return todo * sizeof(struct acache_info);
116 }
117
118 static ssize_t acache_read(struct file *filp, char __user *buf,
119 size_t size, loff_t *ppos)
120 {
121 long ret, cut;
122
123 if (metadata.conntype != ACACHE_READWRITE_CONN)
124 return -EINVAL;
125
126 if (size > MAX_TRANSFER_SIZE)
127 size = MAX_TRANSFER_SIZE;
128
129 ret = read_circ_slice(adev.acache_info_circ, adev.readbuf, size);
130 if (ret <= 0)
131 return ret;
132
133 cut = copy_to_user(buf, adev.readbuf, size);
134 return ret - cut;
135 }
136
137 int process_one_request(struct acache_info *item);
138 static void prefetch_worker_func(struct work_struct *work)
139 {
140 struct prefetch_worker *sw =
141 container_of(work, struct prefetch_worker, work);
142
143 process_one_request(&sw->s);
144 spin_lock(&adev.prefetch_workers_free_list_lock);
145 list_add_tail(&sw->list, &adev.prefetch_workers_free);
146 spin_unlock(&adev.prefetch_workers_free_list_lock);
147 }
148
149 static int queue_prefetch_item(struct acache_info *s)
150 {
151 struct prefetch_worker *sw;
152
153 spin_lock(&adev.prefetch_workers_free_list_lock);
154 sw = list_first_entry_or_null(&adev.prefetch_workers_free,
155 struct prefetch_worker, list);
156 if (!sw) {
157 spin_unlock(&adev.prefetch_workers_free_list_lock);
158 return -1;
159 }
160 list_del_init(&sw->list);
161 spin_unlock(&adev.prefetch_workers_free_list_lock);
162
163 memcpy(&sw->s, s, sizeof(struct acache_info));
164 INIT_WORK(&sw->work, prefetch_worker_func);
165 queue_work(adev.wq, &sw->work);
166 return 0;
167 }
168
169 static ssize_t acache_write(struct file *filp, const char __user *buf,
170 size_t size, loff_t *ppos)
171 {
172 long cut;
173 int i;
174
175 if (metadata.conntype != ACACHE_READWRITE_CONN)
176 return -EINVAL;
177
178 if (size > MAX_TRANSFER_SIZE)
179 size = MAX_TRANSFER_SIZE;
180
181 cut = copy_from_user(adev.writebuf, buf, size);
182 for (i = 0; i < (size - cut) / sizeof(struct acache_info); i++) {
183 if (queue_prefetch_item(adev.writebuf + i))
184 break;
185 }
186 return i * sizeof(struct acache_info);
187 }
188
189 static long acache_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
190 {
191 switch (cmd) {
192 case ACACHE_GET_METADATA:
193 return copy_to_user((struct acache_metadata __user *)arg,
194 &metadata, sizeof(struct acache_metadata));
195 default:
196 return -EINVAL;
197 }
198 }
199
200 static const struct file_operations acache_fops = {
201 .owner = THIS_MODULE,
202 .read = acache_read,
203 .write = acache_write,
204 .open = acache_open,
205 .release = acache_release,
206 .unlocked_ioctl = acache_ioctl,
207 };
208
209 void save_circ_item(struct acache_info *data)
210 {
211 unsigned long flags;
212 struct acache_circ *circ = adev.acache_info_circ;
213
214 spin_lock_irqsave(&circ->lock, flags);
215 if (CIRC_SPACE(circ->head, circ->tail, circ->size) >= 1) {
216 memcpy(&circ->data[circ->head], data, sizeof(struct acache_info));
217 circ->head = (circ->head + 1) & (circ->size - 1);
218 } else {
219 pr_debug("ringbuffer is full; discard new request.");
220 }
221 spin_unlock_irqrestore(&circ->lock, flags);
222 }
223
> 224 void init_acache_circ(struct acache_circ **circ, void *startaddr)
225 {
226 *circ = (struct acache_circ *)startaddr;
227 (*circ)->head = 0;
228 (*circ)->tail = 0;
229 (*circ)->size = ACACHE_CIRC_SIZE;
230 spin_lock_init(&(*circ)->lock);
231 }
232
233 static void acache_free_mem(void)
234 {
235 int i;
236
237 for (i = 0; i < ACACHE_NR_DEVS; i++)
238 vfree(adev.mem_regionp[i].data);
239
240 if (adev.readbuf) {
241 vfree(adev.readbuf);
242 adev.readbuf = NULL;
243 }
244 if (adev.writebuf) {
245 vfree(adev.writebuf);
246 adev.writebuf = NULL;
247 }
248
249 kfree(adev.prefetch_workers);
250 adev.prefetch_workers = NULL;
251 }
252
> 253 int acache_prefetch_init(struct acache_device *adev)
254 {
255 int i;
256
257 if (acache_prefetch_workers <= 0) {
258 pr_err("acache_dev_size should not be less than zero");
259 return -1;
260 }
261 adev->prefetch_workers = kmalloc_array(acache_prefetch_workers,
262 sizeof(struct prefetch_worker),
263 GFP_KERNEL);
264 if (!adev->prefetch_workers)
265 goto fail_prefetch_workers_alloc;
266
267 INIT_LIST_HEAD(&adev->prefetch_workers_free);
268 spin_lock_init(&adev->prefetch_workers_free_list_lock);
269 for (i = 0; i < acache_prefetch_workers; i++) {
270 spin_lock(&adev->prefetch_workers_free_list_lock);
271 list_add_tail(&adev->prefetch_workers[i].list,
272 &adev->prefetch_workers_free);
273 spin_unlock(&adev->prefetch_workers_free_list_lock);
274 }
275
276 adev->wq = alloc_workqueue("acache_prefetch", WQ_MEM_RECLAIM, 0);
277 if (!adev->wq)
278 goto fail_workqueue_alloc;
279
280 return 0;
281
282 fail_workqueue_alloc:
283 kfree(adev->prefetch_workers);
284 adev->prefetch_workers = NULL;
285 fail_prefetch_workers_alloc:
286 if (adev->wq)
287 destroy_workqueue(adev->wq);
288 return -1;
289 }
290
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:openEuler-1.0-LTS 1942/1942] drivers/base/node.c:480: warning: Function parameter or member 'cpu_nid' not described in 'register_memory_node_under_compute_node'
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: 9e8e325cfd089c66c9a2f570f99021a62bf0ae09 [1942/1942] node: Link memory nodes to their compute nodes
config: arm64-randconfig-002-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140305.nS3EGEEx-lkp@…)
compiler: aarch64-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140305.nS3EGEEx-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140305.nS3EGEEx-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/base/node.c:568:5: warning: no previous prototype for 'register_mem_block_under_node_early' [-Wmissing-prototypes]
568 | int register_mem_block_under_node_early(struct memory_block *mem_blk, void *arg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/node.c:480: warning: Function parameter or member 'mem_nid' not described in 'register_memory_node_under_compute_node'
>> drivers/base/node.c:480: warning: Function parameter or member 'cpu_nid' not described in 'register_memory_node_under_compute_node'
>> drivers/base/node.c:480: warning: Excess function parameter 'mem_node' description in 'register_memory_node_under_compute_node'
>> drivers/base/node.c:480: warning: Excess function parameter 'cpu_node' description in 'register_memory_node_under_compute_node'
vim +480 drivers/base/node.c
463
464 /**
465 * register_memory_node_under_compute_node - link memory node to its compute
466 * node for a given access class.
467 * @mem_node: Memory node number
468 * @cpu_node: Cpu node number
469 * @access: Access class to register
470 *
471 * Description:
472 * For use with platforms that may have separate memory and compute nodes.
473 * This function will export node relationships linking which memory
474 * initiator nodes can access memory targets at a given ranked access
475 * class.
476 */
477 int register_memory_node_under_compute_node(unsigned int mem_nid,
478 unsigned int cpu_nid,
479 unsigned access)
> 480 {
481 struct node *init_node, *targ_node;
482 struct node_access_nodes *initiator, *target;
483 int ret;
484
485 if (!node_online(cpu_nid) || !node_online(mem_nid))
486 return -ENODEV;
487
488 init_node = node_devices[cpu_nid];
489 targ_node = node_devices[mem_nid];
490 initiator = node_init_node_access(init_node, access);
491 target = node_init_node_access(targ_node, access);
492 if (!initiator || !target)
493 return -ENOMEM;
494
495 ret = sysfs_add_link_to_group(&initiator->dev.kobj, "targets",
496 &targ_node->dev.kobj,
497 dev_name(&targ_node->dev));
498 if (ret)
499 return ret;
500
501 ret = sysfs_add_link_to_group(&target->dev.kobj, "initiators",
502 &init_node->dev.kobj,
503 dev_name(&init_node->dev));
504 if (ret)
505 goto err;
506
507 return 0;
508 err:
509 sysfs_remove_link_from_group(&initiator->dev.kobj, "targets",
510 dev_name(&targ_node->dev));
511 return ret;
512 }
513
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:openEuler-1.0-LTS 1942/1942] arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0x162: unsupported intra-function call
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
Hi Josh,
First bad commit (maybe != root cause):
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: f3a233591ef81d81ea87a24717d4bee05211a56c [1942/1942] x86/speculation: Fix RSB filling with CONFIG_RETPOLINE=n
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20251214/202512140208.Qp9EVDfd-lkp@…)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140208.Qp9EVDfd-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140208.Qp9EVDfd-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/entry/entry_64.S: Assembler messages:
arch/x86/entry/entry_64.S:1767: Warning: no instruction mnemonic suffix given and no register operands; using default for `sysret'
>> arch/x86/entry/entry_64.o: warning: objtool: .entry.text+0x162: unsupported intra-function call
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:openEuler-1.0-LTS 1941/1941] drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Function parameter or member 'bus_no' not described in 'isst_if_get_pci_dev'
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: a29d78a07cb2dc27dd74e4c2642ff110fd6528ea [1941/1941] Intel: platform/x86: ISST: Store per CPU information
config: x86_64-randconfig-101-20251212 (https://download.01.org/0day-ci/archive/20251214/202512140153.vqXFeYh3-lkp@…)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140153.vqXFeYh3-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140153.vqXFeYh3-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from <built-in>:2:
In file included from include/linux/compiler_types.h:59:
include/linux/compiler-clang.h:20:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
20 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:353:9: note: previous definition is here
353 | #define __SANITIZE_ADDRESS__ 1
| ^
1 warning generated.
>> drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Function parameter or member 'bus_no' not described in 'isst_if_get_pci_dev'
drivers/platform/x86/intel_speed_select_if/isst_if_common.c:66: warning: Excess function parameter 'bus_number' description in 'isst_if_get_pci_dev'
vim +66 drivers/platform/x86/intel_speed_select_if/isst_if_common.c
52
53 /**
54 * isst_if_get_pci_dev() - Get the PCI device instance for a CPU
55 * @cpu: Logical CPU number.
56 * @bus_number: The bus number assigned by the hardware.
57 * @dev: The device number assigned by the hardware.
58 * @fn: The function number assigned by the hardware.
59 *
60 * Using cached bus information, find out the PCI device for a bus number,
61 * device and function.
62 *
63 * Return: Return pci_dev pointer or NULL.
64 */
65 struct pci_dev *isst_if_get_pci_dev(int cpu, int bus_no, int dev, int fn)
> 66 {
67 int bus_number;
68
69 if (bus_no < 0 || bus_no > 1 || cpu < 0 || cpu >= nr_cpu_ids ||
70 cpu >= num_possible_cpus())
71 return NULL;
72
73 bus_number = isst_cpu_info[cpu].bus_info[bus_no];
74 if (bus_number < 0)
75 return NULL;
76
77 return pci_get_domain_bus_and_slot(0, bus_number, PCI_DEVFN(dev, fn));
78 }
79 EXPORT_SYMBOL_GPL(isst_if_get_pci_dev);
80
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3541/3541] mm/memcontrol.c:3147:6: warning: no previous prototype for 'hisi_oom_recover'
by kernel test robot 14 Dec '25
by kernel test robot 14 Dec '25
14 Dec '25
Hi Weilong,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302
commit: b498d9f1bacd40d583c0970cab02ad522127a7e7 [3541/3541] arm64/ascend: Add new enable_oom_killer interface for oom contrl
config: arm64-randconfig-r113-20251213 (https://download.01.org/0day-ci/archive/20251214/202512140001.gwqxcHHh-lkp@…)
compiler: aarch64-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140001.gwqxcHHh-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512140001.gwqxcHHh-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/memcontrol.c:3147:6: warning: no previous prototype for 'hisi_oom_recover' [-Wmissing-prototypes]
3147 | void hisi_oom_recover(struct obj_cgroup *objcg)
| ^~~~~~~~~~~~~~~~
vim +/hisi_oom_recover +3147 mm/memcontrol.c
3145
3146 #ifdef CONFIG_ASCEND_OOM
> 3147 void hisi_oom_recover(struct obj_cgroup *objcg)
3148 {
3149 struct mem_cgroup *memcg;
3150
3151 memcg = get_mem_cgroup_from_objcg(objcg);
3152 if (!mem_cgroup_is_root(memcg))
3153 memcg_oom_recover(memcg);
3154 css_put(&memcg->css);
3155 }
3156 #else
3157 static inline void hisi_oom_recover(struct obj_cgroup *objcg) { }
3158 #endif
3159
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3541/3541] drivers/gpu/drm/phytium/phytium_crtc.c:174:1: warning: no previous prototype for function 'phytium_crtc_atomic_duplicate_state'
by kernel test robot 13 Dec '25
by kernel test robot 13 Dec '25
13 Dec '25
Hi xuyan,
First bad commit (maybe != root cause):
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302
commit: 3b4a5906fa714bdc9a15fc04374942888737eb4c [3541/3541] drm/phytium: Fix Phytium DRM build fail
config: x86_64-randconfig-r134-20251213 (https://download.01.org/0day-ci/archive/20251213/202512132253.yDHpZZhf-lkp@…)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132253.yDHpZZhf-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512132253.yDHpZZhf-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/phytium/phytium_plane.c:30:6: warning: no previous prototype for function 'phytium_plane_destroy' [-Wmissing-prototypes]
30 | void phytium_plane_destroy(struct drm_plane *plane)
| ^
drivers/gpu/drm/phytium/phytium_plane.c:30:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
30 | void phytium_plane_destroy(struct drm_plane *plane)
| ^
| static
drivers/gpu/drm/phytium/phytium_plane.c:72:1: warning: no previous prototype for function 'phytium_plane_atomic_set_property' [-Wmissing-prototypes]
72 | phytium_plane_atomic_set_property(struct drm_plane *plane,
| ^
drivers/gpu/drm/phytium/phytium_plane.c:71:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
71 | int
| ^
| static
>> drivers/gpu/drm/phytium/phytium_plane.c:82:1: warning: no previous prototype for function 'phytium_plane_atomic_duplicate_state' [-Wmissing-prototypes]
82 | phytium_plane_atomic_duplicate_state(struct drm_plane *plane)
| ^
drivers/gpu/drm/phytium/phytium_plane.c:81:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
81 | struct drm_plane_state *
| ^
| static
drivers/gpu/drm/phytium/phytium_plane.c:103:1: warning: no previous prototype for function 'phytium_plane_atomic_destroy_state' [-Wmissing-prototypes]
103 | phytium_plane_atomic_destroy_state(struct drm_plane *plane, struct drm_plane_state *state)
| ^
drivers/gpu/drm/phytium/phytium_plane.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
102 | void
| ^
| static
drivers/gpu/drm/phytium/phytium_plane.c:392:20: warning: variable 'crtc_x' set but not used [-Wunused-but-set-variable]
392 | int src_x, src_y, crtc_x, crtc_y, crtc_w, crtc_h;
| ^
drivers/gpu/drm/phytium/phytium_plane.c:392:28: warning: variable 'crtc_y' set but not used [-Wunused-but-set-variable]
392 | int src_x, src_y, crtc_x, crtc_y, crtc_w, crtc_h;
| ^
6 warnings generated.
--
>> drivers/gpu/drm/phytium/phytium_crtc.c:174:1: warning: no previous prototype for function 'phytium_crtc_atomic_duplicate_state' [-Wmissing-prototypes]
174 | phytium_crtc_atomic_duplicate_state(struct drm_crtc *crtc)
| ^
drivers/gpu/drm/phytium/phytium_crtc.c:173:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
173 | struct drm_crtc_state *
| ^
| static
>> drivers/gpu/drm/phytium/phytium_crtc.c:189:1: warning: no previous prototype for function 'phytium_crtc_atomic_destroy_state' [-Wmissing-prototypes]
189 | phytium_crtc_atomic_destroy_state(struct drm_crtc *crtc,
| ^
drivers/gpu/drm/phytium/phytium_crtc.c:188:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
188 | void
| ^
| static
drivers/gpu/drm/phytium/phytium_crtc.c:402:29: warning: variable 'phytium_crtc_state' set but not used [-Wunused-but-set-variable]
402 | struct phytium_crtc_state *phytium_crtc_state = NULL;
| ^
3 warnings generated.
--
drivers/gpu/drm/phytium/phytium_dp.c:506:6: warning: no previous prototype for function 'phytium_dp_coding_8b10b_need_enable' [-Wmissing-prototypes]
506 | bool phytium_dp_coding_8b10b_need_enable(unsigned char test_pattern)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:506:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
506 | bool phytium_dp_coding_8b10b_need_enable(unsigned char test_pattern)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:523:6: warning: no previous prototype for function 'phytium_dp_scrambled_need_enable' [-Wmissing-prototypes]
523 | bool phytium_dp_scrambled_need_enable(unsigned char test_pattern)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:523:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
523 | bool phytium_dp_scrambled_need_enable(unsigned char test_pattern)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:656:6: warning: no previous prototype for function 'phytium_dp_hw_enable_audio' [-Wmissing-prototypes]
656 | void phytium_dp_hw_enable_audio(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:656:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
656 | void phytium_dp_hw_enable_audio(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:825:6: warning: no previous prototype for function 'phytium_dp_hw_disable_video' [-Wmissing-prototypes]
825 | void phytium_dp_hw_disable_video(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:825:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
825 | void phytium_dp_hw_disable_video(struct phytium_dp_device *phytium_dp)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:836:6: warning: no previous prototype for function 'phytium_dp_hw_video_is_enable' [-Wmissing-prototypes]
836 | bool phytium_dp_hw_video_is_enable(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:836:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
836 | bool phytium_dp_hw_video_is_enable(struct phytium_dp_device *phytium_dp)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:847:6: warning: no previous prototype for function 'phytium_dp_hw_enable_video' [-Wmissing-prototypes]
847 | void phytium_dp_hw_enable_video(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:847:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
847 | void phytium_dp_hw_enable_video(struct phytium_dp_device *phytium_dp)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:859:6: warning: no previous prototype for function 'phytium_dp_hw_config_video' [-Wmissing-prototypes]
859 | void phytium_dp_hw_config_video(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:859:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
859 | void phytium_dp_hw_config_video(struct phytium_dp_device *phytium_dp)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:951:6: warning: no previous prototype for function 'phytium_dp_hw_disable_output' [-Wmissing-prototypes]
951 | void phytium_dp_hw_disable_output(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:951:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
951 | void phytium_dp_hw_disable_output(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:963:6: warning: no previous prototype for function 'phytium_dp_hw_enable_output' [-Wmissing-prototypes]
963 | void phytium_dp_hw_enable_output(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:963:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
963 | void phytium_dp_hw_enable_output(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:975:6: warning: no previous prototype for function 'phytium_dp_hw_enable_input_source' [-Wmissing-prototypes]
975 | void phytium_dp_hw_enable_input_source(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:975:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
975 | void phytium_dp_hw_enable_input_source(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:986:6: warning: no previous prototype for function 'phytium_dp_hw_disable_input_source' [-Wmissing-prototypes]
986 | void phytium_dp_hw_disable_input_source(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:986:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
986 | void phytium_dp_hw_disable_input_source(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:996:6: warning: no previous prototype for function 'phytium_dp_hw_output_is_enable' [-Wmissing-prototypes]
996 | bool phytium_dp_hw_output_is_enable(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:996:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
996 | bool phytium_dp_hw_output_is_enable(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:1033:6: warning: no previous prototype for function 'phytium_dp_hw_hpd_irq_setup' [-Wmissing-prototypes]
1033 | void phytium_dp_hw_hpd_irq_setup(struct phytium_dp_device *phytium_dp, bool enable)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1033:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1033 | void phytium_dp_hw_hpd_irq_setup(struct phytium_dp_device *phytium_dp, bool enable)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:1048:5: warning: no previous prototype for function 'phytium_dp_hw_init' [-Wmissing-prototypes]
1048 | int phytium_dp_hw_init(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1048:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1048 | int phytium_dp_hw_init(struct phytium_dp_device *phytium_dp)
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:1226:6: warning: no previous prototype for function 'phytium_dp_dpcd_sink_dpms' [-Wmissing-prototypes]
1226 | void phytium_dp_dpcd_sink_dpms(struct phytium_dp_device *phytium_dp, int mode)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1226:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1226 | void phytium_dp_dpcd_sink_dpms(struct phytium_dp_device *phytium_dp, int mode)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:1451:5: warning: no previous prototype for function 'phytium_dp_get_link_train_fallback_values' [-Wmissing-prototypes]
1451 | int phytium_dp_get_link_train_fallback_values(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1451:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1451 | int phytium_dp_get_link_train_fallback_values(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:1500:5: warning: no previous prototype for function 'phytium_dp_start_link_train' [-Wmissing-prototypes]
1500 | int phytium_dp_start_link_train(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1500:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1500 | int phytium_dp_start_link_train(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:1815:6: warning: no previous prototype for function 'phytium_dp_hpd_poll_handler' [-Wmissing-prototypes]
1815 | void phytium_dp_hpd_poll_handler(struct phytium_display_private *priv)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1815:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1815 | void phytium_dp_hpd_poll_handler(struct phytium_display_private *priv)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:1962:6: warning: no previous prototype for function 'phytium_dp_fast_link_train' [-Wmissing-prototypes]
1962 | bool phytium_dp_fast_link_train(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:1962:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1962 | bool phytium_dp_fast_link_train(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:2153:6: warning: no previous prototype for function 'phytium_dp_adjust_link_train_parameter' [-Wmissing-prototypes]
2153 | void phytium_dp_adjust_link_train_parameter(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:2153:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2153 | void phytium_dp_adjust_link_train_parameter(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:2213:1: warning: no previous prototype for function 'phytium_encoder_mode_valid' [-Wmissing-prototypes]
2213 | phytium_encoder_mode_valid(struct drm_encoder *encoder, const struct drm_display_mode *mode)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:2212:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2212 | enum drm_mode_status
| ^
| static
drivers/gpu/drm/phytium/phytium_dp.c:2269:6: warning: no previous prototype for function 'phytium_dp_encoder_destroy' [-Wmissing-prototypes]
2269 | void phytium_dp_encoder_destroy(struct drm_encoder *encoder)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:2269:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2269 | void phytium_dp_encoder_destroy(struct drm_encoder *encoder)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_dp.c:2482:5: warning: no previous prototype for function 'phytium_get_encoder_crtc_mask' [-Wmissing-prototypes]
2482 | int phytium_get_encoder_crtc_mask(struct phytium_dp_device *phytium_dp, int port)
| ^
drivers/gpu/drm/phytium/phytium_dp.c:2482:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2482 | int phytium_get_encoder_crtc_mask(struct phytium_dp_device *phytium_dp, int port)
| ^
| static
23 warnings generated.
--
drivers/gpu/drm/phytium/phytium_gem.c:22:5: warning: no previous prototype for function 'phytium_memory_pool_alloc' [-Wmissing-prototypes]
22 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr,
| ^
drivers/gpu/drm/phytium/phytium_gem.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
22 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr,
| ^
| static
drivers/gpu/drm/phytium/phytium_gem.c:37:6: warning: no previous prototype for function 'phytium_memory_pool_free' [-Wmissing-prototypes]
37 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size)
| ^
drivers/gpu/drm/phytium/phytium_gem.c:37:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
37 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size)
| ^
| static
drivers/gpu/drm/phytium/phytium_gem.c:161:5: warning: no previous prototype for function 'phytium_gem_prime_vmap' [-Wmissing-prototypes]
161 | int phytium_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map)
| ^
drivers/gpu/drm/phytium/phytium_gem.c:161:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
161 | int phytium_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map)
| ^
| static
drivers/gpu/drm/phytium/phytium_gem.c:170:6: warning: no previous prototype for function 'phytium_gem_prime_vunmap' [-Wmissing-prototypes]
170 | void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map)
| ^
drivers/gpu/drm/phytium/phytium_gem.c:170:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
170 | void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map)
| ^
| static
drivers/gpu/drm/phytium/phytium_gem.c:174:5: warning: no previous prototype for function 'phytium_gem_prime_mmap' [-Wmissing-prototypes]
174 | int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
| ^
drivers/gpu/drm/phytium/phytium_gem.c:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
174 | int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma)
| ^
| static
>> drivers/gpu/drm/phytium/phytium_gem.c:186:5: warning: no previous prototype for function 'phytium_dma_transfer' [-Wmissing-prototypes]
186 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr,
| ^
drivers/gpu/drm/phytium/phytium_gem.c:186:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
186 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr,
| ^
| static
6 warnings generated.
--
>> drivers/gpu/drm/phytium/phytium_fbdev.c:108:5: warning: no previous prototype for function 'phytium_drm_fbdev_init' [-Wmissing-prototypes]
108 | int phytium_drm_fbdev_init(struct drm_device *dev)
| ^
drivers/gpu/drm/phytium/phytium_fbdev.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
108 | int phytium_drm_fbdev_init(struct drm_device *dev)
| ^
| static
drivers/gpu/drm/phytium/phytium_fbdev.c:130:6: warning: no previous prototype for function 'phytium_drm_fbdev_fini' [-Wmissing-prototypes]
130 | void phytium_drm_fbdev_fini(struct drm_device *dev)
| ^
drivers/gpu/drm/phytium/phytium_fbdev.c:130:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
130 | void phytium_drm_fbdev_fini(struct drm_device *dev)
| ^
| static
2 warnings generated.
--
>> drivers/gpu/drm/phytium/phytium_debugfs.c:376:5: warning: no previous prototype for function 'phytium_debugfs_connector_add' [-Wmissing-prototypes]
376 | int phytium_debugfs_connector_add(struct drm_connector *connector)
| ^
drivers/gpu/drm/phytium/phytium_debugfs.c:376:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
376 | int phytium_debugfs_connector_add(struct drm_connector *connector)
| ^
| static
drivers/gpu/drm/phytium/phytium_debugfs.c:438:5: warning: no previous prototype for function 'phytium_debugfs_display_register' [-Wmissing-prototypes]
438 | int phytium_debugfs_display_register(struct phytium_display_private *priv)
| ^
drivers/gpu/drm/phytium/phytium_debugfs.c:438:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
438 | int phytium_debugfs_display_register(struct phytium_display_private *priv)
| ^
| static
2 warnings generated.
--
>> drivers/gpu/drm/phytium/px210_dp.c:852:6: warning: no previous prototype for function 'px210_dp_hw_spread_is_enable' [-Wmissing-prototypes]
852 | bool px210_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/px210_dp.c:852:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
852 | bool px210_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp)
| ^
| static
>> drivers/gpu/drm/phytium/px210_dp.c:864:5: warning: no previous prototype for function 'px210_dp_hw_reset' [-Wmissing-prototypes]
864 | int px210_dp_hw_reset(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/px210_dp.c:864:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
864 | int px210_dp_hw_reset(struct phytium_dp_device *phytium_dp)
| ^
| static
drivers/gpu/drm/phytium/px210_dp.c:897:9: warning: no previous prototype for function 'px210_dp_hw_get_source_lane_count' [-Wmissing-prototypes]
897 | uint8_t px210_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp)
| ^
drivers/gpu/drm/phytium/px210_dp.c:897:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
897 | uint8_t px210_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp)
| ^
| static
3 warnings generated.
..
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/phytium/pe220x_dp.c:465:6: sparse: sparse: symbol 'pe220x_dp_hw_spread_is_enable' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/pe220x_dp.c:470:5: sparse: sparse: symbol 'pe220x_dp_hw_reset' was not declared. Should it be static?
drivers/gpu/drm/phytium/pe220x_dp.c:485:9: sparse: sparse: symbol 'pe220x_dp_hw_get_source_lane_count' was not declared. Should it be static?
--
drivers/gpu/drm/phytium/phytium_pci.c:20:5: sparse: sparse: symbol 'dc_msi_enable' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_pci.c:24:6: sparse: sparse: symbol 'phytium_pci_vram_hw_init' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_pci.c:57:46: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *pool_virt_addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/phytium/phytium_pci.c:57:46: sparse: expected void *pool_virt_addr
drivers/gpu/drm/phytium/phytium_pci.c:57:46: sparse: got void [noderef] __iomem *
drivers/gpu/drm/phytium/phytium_pci.c:61:46: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *pool_virt_addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/phytium/phytium_pci.c:61:46: sparse: expected void *pool_virt_addr
drivers/gpu/drm/phytium/phytium_pci.c:61:46: sparse: got void [noderef] __iomem *
>> drivers/gpu/drm/phytium/phytium_pci.c:88:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void *pool_virt_addr @@
drivers/gpu/drm/phytium/phytium_pci.c:88:38: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/phytium/phytium_pci.c:88:38: sparse: got void *pool_virt_addr
>> drivers/gpu/drm/phytium/phytium_pci.c:49:5: sparse: sparse: symbol 'phytium_pci_vram_init' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_pci.c:98:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void *pool_virt_addr @@
drivers/gpu/drm/phytium/phytium_pci.c:98:46: sparse: expected void [noderef] __iomem *addr
drivers/gpu/drm/phytium/phytium_pci.c:98:46: sparse: got void *pool_virt_addr
>> drivers/gpu/drm/phytium/phytium_pci.c:93:6: sparse: sparse: symbol 'phytium_pci_vram_fini' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_pci.c:115:5: sparse: sparse: symbol 'phytium_pci_dma_init' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_pci.c:163:6: sparse: sparse: symbol 'phytium_pci_dma_fini' was not declared. Should it be static?
--
>> drivers/gpu/drm/phytium/phytium_panel.c:234:6: sparse: sparse: symbol 'phytium_dp_panel_release_backlight_funcs' was not declared. Should it be static?
--
>> drivers/gpu/drm/phytium/phytium_fbdev.c:91:26: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char [noderef] __iomem *screen_base @@ got void * @@
drivers/gpu/drm/phytium/phytium_fbdev.c:91:26: sparse: expected char [noderef] __iomem *screen_base
drivers/gpu/drm/phytium/phytium_fbdev.c:91:26: sparse: got void *
>> drivers/gpu/drm/phytium/phytium_fbdev.c:29:10: sparse: sparse: Initializer entry defined twice
drivers/gpu/drm/phytium/phytium_fbdev.c:31:10: sparse: also defined here
--
>> drivers/gpu/drm/phytium/phytium_plane.c:30:6: sparse: sparse: symbol 'phytium_plane_destroy' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_plane.c:72:1: sparse: sparse: symbol 'phytium_plane_atomic_set_property' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_plane.c:81:24: sparse: sparse: symbol 'phytium_plane_atomic_duplicate_state' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_plane.c:103:1: sparse: sparse: symbol 'phytium_plane_atomic_destroy_state' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_plane.c:140:30: sparse: sparse: symbol 'phytium_plane_funcs' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_plane.c:543:37: sparse: sparse: symbol 'phytium_plane_helper_funcs' was not declared. Should it be static?
--
>> drivers/gpu/drm/phytium/phytium_gem.c:22:5: sparse: sparse: symbol 'phytium_memory_pool_alloc' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_gem.c:37:6: sparse: sparse: symbol 'phytium_memory_pool_free' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_gem.c:161:5: sparse: sparse: symbol 'phytium_gem_prime_vmap' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_gem.c:170:6: sparse: sparse: symbol 'phytium_gem_prime_vunmap' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_gem.c:174:5: sparse: sparse: symbol 'phytium_gem_prime_mmap' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_gem.c:186:5: sparse: sparse: symbol 'phytium_dma_transfer' was not declared. Should it be static?
--
drivers/gpu/drm/phytium/phytium_platform.c:35:38: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *pool_virt_addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/phytium/phytium_platform.c:35:38: sparse: expected void *pool_virt_addr
drivers/gpu/drm/phytium/phytium_platform.c:35:38: sparse: got void [noderef] __iomem *
>> drivers/gpu/drm/phytium/phytium_platform.c:58:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pool_virt_addr @@
drivers/gpu/drm/phytium/phytium_platform.c:58:21: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/phytium/phytium_platform.c:58:21: sparse: got void *pool_virt_addr
drivers/gpu/drm/phytium/phytium_platform.c:22:5: sparse: sparse: symbol 'phytium_platform_carveout_mem_init' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_platform.c:68:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pool_virt_addr @@
drivers/gpu/drm/phytium/phytium_platform.c:68:29: sparse: expected void volatile [noderef] __iomem *addr
drivers/gpu/drm/phytium/phytium_platform.c:68:29: sparse: got void *pool_virt_addr
drivers/gpu/drm/phytium/phytium_platform.c:63:6: sparse: sparse: symbol 'phytium_platform_carveout_mem_fini' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_platform.c:372:10: sparse: sparse: Initializer entry defined twice
drivers/gpu/drm/phytium/phytium_platform.c:380:10: sparse: also defined here
--
>> drivers/gpu/drm/phytium/phytium_crtc.c:173:23: sparse: sparse: symbol 'phytium_crtc_atomic_duplicate_state' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_crtc.c:189:1: sparse: sparse: symbol 'phytium_crtc_atomic_destroy_state' was not declared. Should it be static?
--
>> drivers/gpu/drm/phytium/px210_dp.c:852:6: sparse: sparse: symbol 'px210_dp_hw_spread_is_enable' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/px210_dp.c:864:5: sparse: sparse: symbol 'px210_dp_hw_reset' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/px210_dp.c:897:9: sparse: sparse: symbol 'px210_dp_hw_get_source_lane_count' was not declared. Should it be static?
--
>> drivers/gpu/drm/phytium/phytium_dp.c:506:6: sparse: sparse: symbol 'phytium_dp_coding_8b10b_need_enable' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:523:6: sparse: sparse: symbol 'phytium_dp_scrambled_need_enable' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:656:6: sparse: sparse: symbol 'phytium_dp_hw_enable_audio' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:825:6: sparse: sparse: symbol 'phytium_dp_hw_disable_video' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:836:6: sparse: sparse: symbol 'phytium_dp_hw_video_is_enable' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:847:6: sparse: sparse: symbol 'phytium_dp_hw_enable_video' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:859:6: sparse: sparse: symbol 'phytium_dp_hw_config_video' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:951:6: sparse: sparse: symbol 'phytium_dp_hw_disable_output' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:963:6: sparse: sparse: symbol 'phytium_dp_hw_enable_output' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:975:6: sparse: sparse: symbol 'phytium_dp_hw_enable_input_source' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:986:6: sparse: sparse: symbol 'phytium_dp_hw_disable_input_source' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:996:6: sparse: sparse: symbol 'phytium_dp_hw_output_is_enable' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:1033:6: sparse: sparse: symbol 'phytium_dp_hw_hpd_irq_setup' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:1048:5: sparse: sparse: symbol 'phytium_dp_hw_init' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:1226:6: sparse: sparse: symbol 'phytium_dp_dpcd_sink_dpms' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:1451:5: sparse: sparse: symbol 'phytium_dp_get_link_train_fallback_values' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:1500:5: sparse: sparse: symbol 'phytium_dp_start_link_train' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:1815:6: sparse: sparse: symbol 'phytium_dp_hpd_poll_handler' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:1962:6: sparse: sparse: symbol 'phytium_dp_fast_link_train' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:2153:6: sparse: sparse: symbol 'phytium_dp_adjust_link_train_parameter' was not declared. Should it be static?
>> drivers/gpu/drm/phytium/phytium_dp.c:2213:1: sparse: sparse: symbol 'phytium_encoder_mode_valid' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:2269:6: sparse: sparse: symbol 'phytium_dp_encoder_destroy' was not declared. Should it be static?
drivers/gpu/drm/phytium/phytium_dp.c:2482:5: sparse: sparse: symbol 'phytium_get_encoder_crtc_mask' was not declared. Should it be static?
vim +/phytium_crtc_atomic_duplicate_state +174 drivers/gpu/drm/phytium/phytium_crtc.c
b80df10f845813 lishuo 2024-01-31 172
b80df10f845813 lishuo 2024-01-31 @173 struct drm_crtc_state *
b80df10f845813 lishuo 2024-01-31 @174 phytium_crtc_atomic_duplicate_state(struct drm_crtc *crtc)
b80df10f845813 lishuo 2024-01-31 175 {
b80df10f845813 lishuo 2024-01-31 176 struct phytium_crtc_state *phytium_crtc_state = NULL;
b80df10f845813 lishuo 2024-01-31 177
b80df10f845813 lishuo 2024-01-31 178 phytium_crtc_state = kmemdup(crtc->state, sizeof(*phytium_crtc_state),
b80df10f845813 lishuo 2024-01-31 179 GFP_KERNEL);
b80df10f845813 lishuo 2024-01-31 180 if (!phytium_crtc_state)
b80df10f845813 lishuo 2024-01-31 181 return NULL;
b80df10f845813 lishuo 2024-01-31 182 __drm_atomic_helper_crtc_duplicate_state(crtc,
b80df10f845813 lishuo 2024-01-31 183 &phytium_crtc_state->base);
b80df10f845813 lishuo 2024-01-31 184
b80df10f845813 lishuo 2024-01-31 185 return &phytium_crtc_state->base;
b80df10f845813 lishuo 2024-01-31 186 }
b80df10f845813 lishuo 2024-01-31 187
b80df10f845813 lishuo 2024-01-31 188 void
b80df10f845813 lishuo 2024-01-31 @189 phytium_crtc_atomic_destroy_state(struct drm_crtc *crtc,
b80df10f845813 lishuo 2024-01-31 190 struct drm_crtc_state *state)
b80df10f845813 lishuo 2024-01-31 191 {
b80df10f845813 lishuo 2024-01-31 192 struct phytium_crtc_state *phytium_crtc_state =
b80df10f845813 lishuo 2024-01-31 193 to_phytium_crtc_state(state);
b80df10f845813 lishuo 2024-01-31 194
b80df10f845813 lishuo 2024-01-31 195 phytium_crtc_state = to_phytium_crtc_state(state);
b80df10f845813 lishuo 2024-01-31 196 __drm_atomic_helper_crtc_destroy_state(state);
b80df10f845813 lishuo 2024-01-31 197 kfree(phytium_crtc_state);
b80df10f845813 lishuo 2024-01-31 198 }
b80df10f845813 lishuo 2024-01-31 199
:::::: The code at line 174 was first introduced by commit
:::::: b80df10f845813bb4fc2002b5386ecdfa8be5f6c DRM: Phytium display DRM driver
:::::: TO: lishuo <lishuo(a)phytium.com.cn>
:::::: CC: lishuo <lishuo(a)phytium.com.cn>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:OLK-6.6 3541/3541] fs/nfs/dir.c:1498:6: sparse: sparse: symbol 'nfs_check_have_lookup_cache_flag' was not declared. Should it be static?
by kernel test robot 13 Dec '25
by kernel test robot 13 Dec '25
13 Dec '25
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302
commit: 18e360871c3f648ecb0d8cc9b23fd4268a64c17f [3541/3541] add enfs feature
config: x86_64-randconfig-r134-20251213 (https://download.01.org/0day-ci/archive/20251213/202512132106.3RmZpaUX-lkp@…)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132106.3RmZpaUX-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512132106.3RmZpaUX-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> fs/nfs/dir.c:1498:6: sparse: sparse: symbol 'nfs_check_have_lookup_cache_flag' was not declared. Should it be static?
--
>> net/sunrpc/clnt.c:1588:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
net/sunrpc/clnt.c:1588:15: sparse: struct rpc_xprt [noderef] __rcu *
net/sunrpc/clnt.c:1588:15: sparse: struct rpc_xprt *
vim +/nfs_check_have_lookup_cache_flag +1498 fs/nfs/dir.c
1497
> 1498 bool nfs_check_have_lookup_cache_flag(struct nfs_server *server, int flag)
1499 {
1500 #if IS_ENABLED(CONFIG_ENFS)
1501 return enfs_check_have_lookup_cache_flag(server, flag);
1502 #else
1503 return (server->flags & NFS_MOUNT_LOOKUP_CACHE_NONE);
1504 #endif
1505 }
1506
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0
[openeuler:openEuler-1.0-LTS 1941/1941] fs/ext4/inode.c:2995:23: warning: unused variable 'sbi'
by kernel test robot 13 Dec '25
by kernel test robot 13 Dec '25
13 Dec '25
Hi Jan,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 5a399b91821faeec2466751db2d714b24f8eb17c
commit: 7b208222f6845875c568d238aeb9db17a1c63d96 [1941/1941] ext4: avoid deadlock in fs reclaim with page writeback
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20251213/202512132031.c1OJdCdq-lkp@…)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 6ec8c4351cfc1d0627d1633b02ea787bd29c77d8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132031.c1OJdCdq-lkp@…)
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(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512132031.c1OJdCdq-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/ext4/inode.c:2995:23: warning: unused variable 'sbi' [-Wunused-variable]
2995 | struct ext4_sb_info *sbi = EXT4_SB(mapping->host->i_sb);
| ^~~
1 warning generated.
vim +/sbi +2995 fs/ext4/inode.c
64769240bd07f4 Alex Tomas 2008-07-11 2988
5f0663bb4a64f5 Dan Williams 2017-12-21 2989 static int ext4_dax_writepages(struct address_space *mapping,
5f0663bb4a64f5 Dan Williams 2017-12-21 2990 struct writeback_control *wbc)
5f0663bb4a64f5 Dan Williams 2017-12-21 2991 {
5f0663bb4a64f5 Dan Williams 2017-12-21 2992 int ret;
5f0663bb4a64f5 Dan Williams 2017-12-21 2993 long nr_to_write = wbc->nr_to_write;
5f0663bb4a64f5 Dan Williams 2017-12-21 2994 struct inode *inode = mapping->host;
5f0663bb4a64f5 Dan Williams 2017-12-21 @2995 struct ext4_sb_info *sbi = EXT4_SB(mapping->host->i_sb);
7b208222f68458 Jan Kara 2024-06-11 2996 int alloc_ctx;
5f0663bb4a64f5 Dan Williams 2017-12-21 2997
5f0663bb4a64f5 Dan Williams 2017-12-21 2998 if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb))))
5f0663bb4a64f5 Dan Williams 2017-12-21 2999 return -EIO;
5f0663bb4a64f5 Dan Williams 2017-12-21 3000
7b208222f68458 Jan Kara 2024-06-11 3001 alloc_ctx = ext4_writepages_down_read(inode->i_sb);
5f0663bb4a64f5 Dan Williams 2017-12-21 3002 trace_ext4_writepages(inode, wbc);
5f0663bb4a64f5 Dan Williams 2017-12-21 3003
5f0663bb4a64f5 Dan Williams 2017-12-21 3004 ret = dax_writeback_mapping_range(mapping, inode->i_sb->s_bdev, wbc);
5f0663bb4a64f5 Dan Williams 2017-12-21 3005 trace_ext4_writepages_result(inode, wbc, ret,
5f0663bb4a64f5 Dan Williams 2017-12-21 3006 nr_to_write - wbc->nr_to_write);
7b208222f68458 Jan Kara 2024-06-11 3007 ext4_writepages_up_read(inode->i_sb, alloc_ctx);
5f0663bb4a64f5 Dan Williams 2017-12-21 3008 return ret;
5f0663bb4a64f5 Dan Williams 2017-12-21 3009 }
5f0663bb4a64f5 Dan Williams 2017-12-21 3010
:::::: The code at line 2995 was first introduced by commit
:::::: 5f0663bb4a64f588f0a2dd6d1be68d40f9af0086 ext4, dax: introduce ext4_dax_aops
:::::: TO: Dan Williams <dan.j.williams(a)intel.com>
:::::: CC: Dan Williams <dan.j.williams(a)intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
1
0