Hi Chen,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 22c50245e8025b0c6beee13d0df238987b98e6f8
commit: 6943b93b464351cbc35aa002e86bac48e08b1c3f [19033/23866] mm: add support for limiting the usage of reliable memory in pagecache
config: arm64-randconfig-001-20241027 (https://download.01.org/0day-ci/archive/20241027/202410271040.2DFjHIvY-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410271040.2DFjHIvY-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/202410271040.2DFjHIvY-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/mem_reliable.c:42:22: warning: 'reliable_pagecache_max_bytes' defined but not used [-Wunused-variable]
42 | static unsigned long reliable_pagecache_max_bytes = ULONG_MAX;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/mem_reliable.c:41:22: warning: 'zero' defined but not used [-Wunused-variable]
41 | static unsigned long zero;
| ^~~~
vim +/zero +41 mm/mem_reliable.c
40
> 41 static unsigned long zero;
42 static unsigned long reliable_pagecache_max_bytes = ULONG_MAX;
43
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Ding,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 22c50245e8025b0c6beee13d0df238987b98e6f8
commit: fdda68feeca82610ccbcdcbda7250623a6d187d2 [13850/23866] arm64/ascend: Set mem_sleep_current to PM_SUSPEND_ON for ascend platform
config: arm64-randconfig-003-20241027 (https://download.01.org/0day-ci/archive/20241027/202410271033.v9jrl44I-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410271033.v9jrl44I-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/202410271033.v9jrl44I-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/mm/init.c:469:13: warning: no previous prototype for 'arm64_memblock_init' [-Wmissing-prototypes]
469 | void __init arm64_memblock_init(void)
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/mm/init.c: In function 'ascend_enable_setup':
>> arch/arm64/mm/init.c:784:17: error: 'mem_sleep_current' undeclared (first use in this function)
784 | mem_sleep_current = PM_SUSPEND_ON;
| ^~~~~~~~~~~~~~~~~
arch/arm64/mm/init.c:784:17: note: each undeclared identifier is reported only once for each function it appears in
vim +/mem_sleep_current +784 arch/arm64/mm/init.c
770
771 #ifdef CONFIG_ASCEND_FEATURES
772 static int __init ascend_enable_setup(char *__unused)
773 {
774 if (IS_ENABLED(CONFIG_ASCEND_DVPP_MMAP))
775 enable_mmap_dvpp = 1;
776
777 if (IS_ENABLED(CONFIG_ASCEND_IOPF_HIPRI))
778 enable_iopf_hipri = 1;
779
780 if (IS_ENABLED(CONFIG_ASCEND_CHARGE_MIGRATE_HUGEPAGES))
781 enable_charge_mighp = 1;
782
783 if (IS_ENABLED(CONFIG_SUSPEND))
> 784 mem_sleep_current = PM_SUSPEND_ON;
785
786 return 1;
787 }
788
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Weilong,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 9d0af12b79bee784902822ddeec2e1a8cfc18524
commit: b498d9f1bacd40d583c0970cab02ad522127a7e7 [1683/15331] arm64/ascend: Add new enable_oom_killer interface for oom contrl
config: arm64-randconfig-003-20241027 (https://download.01.org/0day-ci/archive/20241027/202410270959.J8MWcOrp-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410270959.J8MWcOrp-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/202410270959.J8MWcOrp-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
Hi Ryusuke,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 22c50245e8025b0c6beee13d0df238987b98e6f8
commit: 6741506ca02825b90e77088e8fce01c3d02edfdd [23167/23866] nilfs2: fix unexpected freezing of nilfs_segctor_sync()
config: x86_64-buildonly-randconfig-003-20241027 (https://download.01.org/0day-ci/archive/20241027/202410270910.yAllU1Un-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410270910.yAllU1Un-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/202410270910.yAllU1Un-lkp@intel.com/
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/atomic.h:265,
from arch/x86/include/asm/msr.h:67,
from arch/x86/include/asm/processor.h:21,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_bits.h:22,
from include/linux/thread_info.h:14,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:9,
from include/linux/gfp.h:6,
from include/linux/mm.h:11,
from include/linux/pagemap.h:8,
from fs/nilfs2/segment.c:11:
In function 'atomic_set',
inlined from 'nilfs_segctor_sync' at fs/nilfs2/segment.c:2175:2:
>> include/asm-generic/atomic-instrumented.h:33:9: warning: 'wait_req' may be used uninitialized [-Wmaybe-uninitialized]
33 | kasan_check_write(v, sizeof(*v));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler.h:265,
from include/asm-generic/bug.h:5,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:10:
include/linux/kasan-checks.h: In function 'nilfs_segctor_sync':
include/linux/kasan-checks.h:7:6: note: by argument 1 of type 'const volatile void *' to 'kasan_check_write' declared here
7 | void kasan_check_write(const volatile void *p, unsigned int size);
| ^~~~~~~~~~~~~~~~~
fs/nilfs2/segment.c:2170:43: note: 'wait_req' declared here
2170 | struct nilfs_segctor_wait_request wait_req;
| ^~~~~~~~
vim +/wait_req +33 include/asm-generic/atomic-instrumented.h
b06ed71a624ba0 Dmitry Vyukov 2018-01-29 30
b06ed71a624ba0 Dmitry Vyukov 2018-01-29 31 static __always_inline void atomic_set(atomic_t *v, int i)
b06ed71a624ba0 Dmitry Vyukov 2018-01-29 32 {
a35353bb9eb199 Dmitry Vyukov 2018-01-29 @33 kasan_check_write(v, sizeof(*v));
b06ed71a624ba0 Dmitry Vyukov 2018-01-29 34 arch_atomic_set(v, i);
b06ed71a624ba0 Dmitry Vyukov 2018-01-29 35 }
b06ed71a624ba0 Dmitry Vyukov 2018-01-29 36
:::::: The code at line 33 was first introduced by commit
:::::: a35353bb9eb1990a44a0d7585f99e9589bcdb682 locking/atomic, asm-generic: Add KASAN instrumentation to atomic operations
:::::: TO: Dmitry Vyukov <dvyukov(a)google.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 412556141b3c12f2f160acc3a09a40c937837ee3
commit: e94df9b790f7ed9025c9321f16a77044f66b14a5 [18534/30000] ima: Add macros to isolate the IMA digest list
config: x86_64-buildonly-randconfig-006-20241027 (https://download.01.org/0day-ci/archive/20241027/202410270809.Ptd8Ot1n-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410270809.Ptd8Ot1n-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/202410270809.Ptd8Ot1n-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from security/integrity/ima/ima_main.c:30:
>> security/integrity/ima/ima.h:381:51: warning: 'struct ima_digest' declared inside parameter list will not be visible outside of this definition or declaration
381 | struct ima_digest *found_digest)
| ^~~~~~~~~~
security/integrity/ima/ima_main.c: In function 'process_measurement':
security/integrity/ima/ima_main.c:433:30: error: too few arguments to function 'ima_appraise_measurement'
433 | rc = ima_appraise_measurement(func, iint, file,
| ^~~~~~~~~~~~~~~~~~~~~~~~
security/integrity/ima/ima.h:373:19: note: declared here
373 | static inline int ima_appraise_measurement(enum ima_hooks func,
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from security/integrity/ima/ima_api.c:18:
>> security/integrity/ima/ima.h:381:51: warning: 'struct ima_digest' declared inside parameter list will not be visible outside of this definition or declaration
381 | struct ima_digest *found_digest)
| ^~~~~~~~~~
--
In file included from security/integrity/ima/ima_asymmetric_keys.c:13:
>> security/integrity/ima/ima.h:381:51: warning: 'struct ima_digest' declared inside parameter list will not be visible outside of this definition or declaration
381 | struct ima_digest *found_digest)
| ^~~~~~~~~~
security/integrity/ima/ima_asymmetric_keys.c:27:6: warning: no previous prototype for 'ima_post_key_create_or_update' [-Wmissing-prototypes]
27 | void ima_post_key_create_or_update(struct key *keyring, struct key *key,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +381 security/integrity/ima/ima.h
273df864cf7466 Nayna Jain 2019-10-30 372
4ad87a3d7444de Mimi Zohar 2016-01-14 373 static inline int ima_appraise_measurement(enum ima_hooks func,
d79d72e02485c0 Mimi Zohar 2012-12-03 374 struct integrity_iint_cache *iint,
2fe5d6def1672a Mimi Zohar 2012-02-13 375 struct file *file,
d3634d0f426bde Dmitry Kasatkin 2013-04-25 376 const unsigned char *filename,
d3634d0f426bde Dmitry Kasatkin 2013-04-25 377 struct evm_ima_xattr_data *xattr_value,
39b07096364a42 Thiago Jung Bauermann 2019-06-27 378 int xattr_len,
e94df9b790f7ed Zhou Shuiqing 2023-09-06 379 #ifndef CONFIG_IMA_DIGEST_LIST
a44c2ae6cac55b Roberto Sassu 2021-03-03 380 const struct modsig *modsig,
a44c2ae6cac55b Roberto Sassu 2021-03-03 @381 struct ima_digest *found_digest)
e94df9b790f7ed Zhou Shuiqing 2023-09-06 382 #else
e94df9b790f7ed Zhou Shuiqing 2023-09-06 383 const struct modsig *modsig)
e94df9b790f7ed Zhou Shuiqing 2023-09-06 384 #endif
2fe5d6def1672a Mimi Zohar 2012-02-13 385 {
2fe5d6def1672a Mimi Zohar 2012-02-13 386 return INTEGRITY_UNKNOWN;
2fe5d6def1672a Mimi Zohar 2012-02-13 387 }
2fe5d6def1672a Mimi Zohar 2012-02-13 388
:::::: The code at line 381 was first introduced by commit
:::::: a44c2ae6cac55bdcc0d33f62600233ea0f3f6688 ima: Add support for appraisal with digest lists
:::::: TO: Roberto Sassu <roberto.sassu(a)huawei.com>
:::::: CC: Zheng Zengkai <zhengzengkai(a)huawei.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Hi Tian,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 412556141b3c12f2f160acc3a09a40c937837ee3
commit: 62aede9feaf6f4729af43df72be267a32bda43d1 [14232/30000] net: hns3: add support customized exception handling interfaces.
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20241027/202410270825.dsHEmsVP-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410270825.dsHEmsVP-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/202410270825.dsHEmsVP-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_reset_event':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4413:46: warning: implicit conversion from 'enum hnae3_reset_type' to 'enum hnae3_event_type_custom' [-Wenum-conversion]
4413 | ret = hclge_ext_call_event(hdev, hdev->reset_level);
| ~~~~^~~~~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_get_strings':
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:668:50: warning: '%s' directive output may be truncated writing up to 4895 bytes into a region of size 32 [-Wformat-truncation=]
668 | snprintf(buff, ETH_GSTRING_LEN, "%s", strs[i].desc);
| ^~
In function 'hclge_comm_get_strings',
inlined from 'hclge_get_strings' at drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:781:7:
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:668:17: note: 'snprintf' output between 1 and 4896 bytes into a destination of size 32
668 | snprintf(buff, ETH_GSTRING_LEN, "%s", strs[i].desc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +4413 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4374
4375 void hclge_reset_event(struct pci_dev *pdev, struct hnae3_handle *handle)
4376 {
4377 struct hnae3_ae_dev *ae_dev = pci_get_drvdata(pdev);
4378 struct hclge_dev *hdev = ae_dev->priv;
4379 int ret;
4380
4381 /* We might end up getting called broadly because of 2 below cases:
4382 * 1. Recoverable error was conveyed through APEI and only way to bring
4383 * normalcy is to reset.
4384 * 2. A new reset request from the stack due to timeout
4385 *
4386 * check if this is a new reset request and we are not here just because
4387 * last reset attempt did not succeed and watchdog hit us again. We will
4388 * know this if last reset request did not occur very recently (watchdog
4389 * timer = 5*HZ, let us check after sufficiently large time, say 4*5*Hz)
4390 * In case of new request we reset the "reset level" to PF reset.
4391 * And if it is a repeat reset request of the most recent one then we
4392 * want to make sure we throttle the reset request. Therefore, we will
4393 * not allow it again before 3*HZ times.
4394 */
4395
4396 if (time_before(jiffies, (hdev->last_reset_time +
4397 HCLGE_RESET_INTERVAL))) {
4398 mod_timer(&hdev->reset_timer, jiffies + HCLGE_RESET_INTERVAL);
4399 return;
4400 }
4401
4402 if (hdev->default_reset_request) {
4403 hdev->reset_level =
4404 hclge_get_reset_level(ae_dev,
4405 &hdev->default_reset_request);
4406 } else if (time_after(jiffies, (hdev->last_reset_time + 4 * 5 * HZ))) {
4407 hdev->reset_level = HNAE3_FUNC_RESET;
4408 }
4409
4410 dev_info(&hdev->pdev->dev, "received reset event, reset type is %d\n",
4411 hdev->reset_level);
4412
> 4413 ret = hclge_ext_call_event(hdev, hdev->reset_level);
4414 if (ret) {
4415 /* request reset & schedule reset task */
4416 set_bit(hdev->reset_level, &hdev->reset_request);
4417 hclge_reset_task_schedule(hdev);
4418 }
4419
4420 if (hdev->reset_level < HNAE3_GLOBAL_RESET)
4421 hdev->reset_level++;
4422 }
4423
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki