tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: b670dd901cbbf97745380d373b1d2607b3235590
commit: 02956abc74ede6549249eb21e5b319b92dd147f3 [29921/30000] net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
config: x86_64-randconfig-071-20240323 (https://download.01.org/0day-ci/archive/20240324/202403240020.k6ATfsBm-lkp@…)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240324/202403240020.k6ATfsBm-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/202403240020.k6ATfsBm-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/dsa/mv88e6xxx/chip.c:2320:4: error: implicit declaration of function 'mv88e6xxx_g2_eeprom_wait' [-Werror,-Wimplicit-function-declaration]
2320 | mv88e6xxx_g2_eeprom_wait(chip);
| ^
drivers/net/dsa/mv88e6xxx/chip.c:2320:4: note: did you mean 'mv88e6xxx_g2_pvt_write'?
drivers/net/dsa/mv88e6xxx/global2.h:457:19: note: 'mv88e6xxx_g2_pvt_write' declared here
457 | static inline int mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip,
| ^
1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PGP_KEY_PARSER
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n]
Selected by [y]:
- PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y]
vim +/mv88e6xxx_g2_eeprom_wait +2320 drivers/net/dsa/mv88e6xxx/chip.c
2306
2307 static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip)
2308 {
2309 struct gpio_desc *gpiod = chip->reset;
2310
2311 /* If there is a GPIO connected to the reset pin, toggle it */
2312 if (gpiod) {
2313 /* If the switch has just been reset and not yet completed
2314 * loading EEPROM, the reset may interrupt the I2C transaction
2315 * mid-byte, causing the first EEPROM read after the reset
2316 * from the wrong location resulting in the switch booting
2317 * to wrong mode and inoperable.
2318 */
2319 if (chip->info->ops->get_eeprom)
> 2320 mv88e6xxx_g2_eeprom_wait(chip);
2321
2322 gpiod_set_value_cansleep(gpiod, 1);
2323 usleep_range(10000, 20000);
2324 gpiod_set_value_cansleep(gpiod, 0);
2325 usleep_range(10000, 20000);
2326
2327 if (chip->info->ops->get_eeprom)
2328 mv88e6xxx_g2_eeprom_wait(chip);
2329 }
2330 }
2331
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: b670dd901cbbf97745380d373b1d2607b3235590
commit: 7cdbdbf5b6c12b1bff2ffb6b4bf08910ecf1689a [18399/30000] sched: programmable: Add helpers to set tag of task or task_group
config: x86_64-randconfig-012-20240323 (https://download.01.org/0day-ci/archive/20240323/202403232345.qUtlhdt3-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/20240323/202403232345.qUtlhdt3-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/202403232345.qUtlhdt3-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/sched/bpf_sched.c: In function '____bpf_sched_set_tg_tag':
>> kernel/sched/bpf_sched.c:108:5: warning: "CONFIG_CGROUP_SCHED" is not defined, evaluates to 0 [-Wundef]
108 | #if CONFIG_CGROUP_SCHED
| ^~~~~~~~~~~~~~~~~~~
vim +/CONFIG_CGROUP_SCHED +108 kernel/sched/bpf_sched.c
105
106 BPF_CALL_2(bpf_sched_set_tg_tag, struct task_group *, tg, s64, tag)
107 {
> 108 #if CONFIG_CGROUP_SCHED
109 if (tg == NULL || tg == &root_task_group)
110 return -EINVAL;
111
112 if (tg->tag == tag)
113 return 0;
114
115 rcu_read_lock();
116 walk_tg_tree_from(tg, tg_change_tag, tg_nop, (void *)(&tag));
117 rcu_read_unlock();
118
119 return 0;
120 #endif
121 return -EPERM;
122 }
123
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 25bf6ba385a44e446068067e861e1b843f6174e2
commit: 7e2ab91ea07673f855f16b54b7c6e6853b2efc1c [13138/21930] livepatch/x86: support livepatch without ftrace
config: x86_64-randconfig-015-20240323 (https://download.01.org/0day-ci/archive/20240323/202403232323.GK5ks0fh-lkp@…)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403232323.GK5ks0fh-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/202403232323.GK5ks0fh-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/livepatch.c:225:5: warning: no previous prototype for function 'arch_klp_init_func' [-Wmissing-prototypes]
225 | int arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
| ^
arch/x86/kernel/livepatch.c:225:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
225 | int arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
| ^
| static
>> arch/x86/kernel/livepatch.c:230:6: warning: no previous prototype for function 'arch_klp_free_func' [-Wmissing-prototypes]
230 | void arch_klp_free_func(struct klp_object *obj, struct klp_func *limit)
| ^
arch/x86/kernel/livepatch.c:230:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
230 | void arch_klp_free_func(struct klp_object *obj, struct klp_func *limit)
| ^
| static
arch/x86/kernel/livepatch.c:258:6: warning: no previous prototype for function 'arch_klp_code_modify_prepare' [-Wmissing-prototypes]
258 | void arch_klp_code_modify_prepare(void)
| ^
arch/x86/kernel/livepatch.c:258:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
258 | void arch_klp_code_modify_prepare(void)
| ^
| static
arch/x86/kernel/livepatch.c:264:6: warning: no previous prototype for function 'arch_klp_code_modify_post_process' [-Wmissing-prototypes]
264 | void arch_klp_code_modify_post_process(void)
| ^
arch/x86/kernel/livepatch.c:264:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
264 | void arch_klp_code_modify_post_process(void)
| ^
| static
4 warnings generated.
--
kernel/livepatch/core.c:402:5: warning: no previous prototype for function 'klp_try_disable_patch' [-Wmissing-prototypes]
402 | int klp_try_disable_patch(void *data)
| ^
kernel/livepatch/core.c:402:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
402 | int klp_try_disable_patch(void *data)
| ^
| static
kernel/livepatch/core.c:441:13: warning: no previous prototype for function 'arch_klp_code_modify_prepare' [-Wmissing-prototypes]
441 | void __weak arch_klp_code_modify_prepare(void)
| ^
kernel/livepatch/core.c:441:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
441 | void __weak arch_klp_code_modify_prepare(void)
| ^
| static
kernel/livepatch/core.c:445:13: warning: no previous prototype for function 'arch_klp_code_modify_post_process' [-Wmissing-prototypes]
445 | void __weak arch_klp_code_modify_post_process(void)
| ^
kernel/livepatch/core.c:445:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
445 | void __weak arch_klp_code_modify_post_process(void)
| ^
| static
kernel/livepatch/core.c:617:5: warning: no previous prototype for function 'klp_try_enable_patch' [-Wmissing-prototypes]
617 | int klp_try_enable_patch(void *data)
| ^
kernel/livepatch/core.c:617:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
617 | int klp_try_enable_patch(void *data)
| ^
| static
>> kernel/livepatch/core.c:1013:12: warning: no previous prototype for function 'arch_klp_func_can_patch' [-Wmissing-prototypes]
1013 | int __weak arch_klp_func_can_patch(struct klp_func *func)
| ^
kernel/livepatch/core.c:1013:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1013 | int __weak arch_klp_func_can_patch(struct klp_func *func)
| ^
| static
5 warnings generated.
vim +/arch_klp_init_func +225 arch/x86/kernel/livepatch.c
224
> 225 int arch_klp_init_func(struct klp_object *obj, struct klp_func *func)
226 {
227 return 0;
228 }
229
> 230 void arch_klp_free_func(struct klp_object *obj, struct klp_func *limit)
231 {
232
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 459341c4b4845b283c7a884e6a0dc4bd8cdb89e6
commit: 4232d9005401d839ceeb1a02da34749b6dab1376 [14628/30000] etmem: add CONFIG_ETMEM macro definition for etmem feature
config: x86_64-randconfig-072-20240323 (https://download.01.org/0day-ci/archive/20240323/202403231943.bTlhzqcv-lkp@…)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403231943.bTlhzqcv-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/202403231943.bTlhzqcv-lkp@intel.com/
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: proc_mm_idle_operations
>>> referenced by base.c
>>> proc/base.o:(tid_base_stuff) in archive fs/built-in.a
>>> referenced by base.c
>>> proc/base.o:(tgid_base_stuff) in archive fs/built-in.a
--
>> ld.lld: error: undefined symbol: proc_mm_swap_operations
>>> referenced by base.c
>>> proc/base.o:(tid_base_stuff) in archive fs/built-in.a
>>> referenced by base.c
>>> proc/base.o:(tgid_base_stuff) in archive fs/built-in.a
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 1b4212c630731d88b07d5b6e28ecaff1a76d3839
commit: 583e6e55fb6aa193b1a82909069e8028c5d5653d [1770/6857] livepatch/x86: Support livepatch without ftrace
config: x86_64-randconfig-015-20240323 (https://download.01.org/0day-ci/archive/20240323/202403231944.DuQR0aQA-lkp@…)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403231944.DuQR0aQA-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/202403231944.DuQR0aQA-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/livepatch/core.c:1587:12: warning: no previous prototype for function 'arch_klp_check_activeness_func' [-Wmissing-prototypes]
1587 | int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
| ^
kernel/livepatch/core.c:1587:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1587 | int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
| ^
| static
kernel/livepatch/core.c:1811:14: warning: no previous prototype for function 'arch_klp_mem_alloc' [-Wmissing-prototypes]
1811 | void __weak *arch_klp_mem_alloc(size_t size)
| ^
kernel/livepatch/core.c:1811:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1811 | void __weak *arch_klp_mem_alloc(size_t size)
| ^
| static
kernel/livepatch/core.c:1816:13: warning: no previous prototype for function 'arch_klp_mem_free' [-Wmissing-prototypes]
1816 | void __weak arch_klp_mem_free(void *mem)
| ^
kernel/livepatch/core.c:1816:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1816 | void __weak arch_klp_mem_free(void *mem)
| ^
| static
3 warnings generated.
vim +/arch_klp_check_activeness_func +1587 kernel/livepatch/core.c
1586
> 1587 int __weak arch_klp_check_activeness_func(struct klp_func *func, int enable,
1588 klp_add_func_t add_func,
1589 struct list_head *func_list)
1590 {
1591 int ret;
1592 unsigned long func_addr = 0;
1593 unsigned long func_size;
1594 struct klp_func_node *func_node = NULL;
1595 unsigned long old_func = (unsigned long)func->old_func;
1596
1597 func_node = func->func_node;
1598 /* Check func address in stack */
1599 if (enable) {
1600 if (func->patched || func->force == KLP_ENFORCEMENT)
1601 return 0;
1602 /*
1603 * When enable, checking the currently active functions.
1604 */
1605 if (list_empty(&func_node->func_stack)) {
1606 /*
1607 * Not patched on this function [the origin one]
1608 */
1609 func_addr = old_func;
1610 func_size = func->old_size;
1611 } else {
1612 /*
1613 * Previously patched function [the active one]
1614 */
1615 struct klp_func *prev;
1616
1617 prev = list_first_or_null_rcu(&func_node->func_stack,
1618 struct klp_func, stack_node);
1619 func_addr = (unsigned long)prev->new_func;
1620 func_size = prev->new_size;
1621 }
1622 /*
1623 * When preemption is disabled and the replacement area
1624 * does not contain a jump instruction, the migration
1625 * thread is scheduled to run stop machine only after the
1626 * execution of instructions to be replaced is complete.
1627 */
1628 if (IS_ENABLED(CONFIG_PREEMPTION) ||
1629 (func->force == KLP_NORMAL_FORCE) ||
1630 arch_check_jump_insn(func_addr)) {
1631 ret = add_func(func_list, func_addr, func_size,
1632 func->old_name, func->force);
1633 if (ret)
1634 return ret;
1635 if (func_addr != old_func) {
1636 ret = add_func(func_list, old_func, KLP_MAX_REPLACE_SIZE,
1637 func->old_name, func->force);
1638 if (ret)
1639 return ret;
1640 }
1641 }
1642 } else {
1643 #ifdef CONFIG_PREEMPTION
1644 /*
1645 * No scheduling point in the replacement instructions. Therefore,
1646 * when preemption is not enabled, atomic execution is performed
1647 * and these instructions will not appear on the stack.
1648 */
1649 if (list_is_singular(&func_node->func_stack)) {
1650 func_addr = old_func;
1651 func_size = func->old_size;
1652 } else {
1653 struct klp_func *prev;
1654
1655 prev = list_first_or_null_rcu(
1656 &func_node->func_stack,
1657 struct klp_func, stack_node);
1658 func_addr = (unsigned long)prev->new_func;
1659 func_size = prev->new_size;
1660 }
1661 ret = add_func(func_list, func_addr,
1662 func_size, func->old_name, 0);
1663 if (ret)
1664 return ret;
1665 if (func_addr != old_func) {
1666 ret = add_func(func_list, old_func, KLP_MAX_REPLACE_SIZE,
1667 func->old_name, 0);
1668 if (ret)
1669 return ret;
1670 }
1671 #endif
1672
1673 func_addr = (unsigned long)func->new_func;
1674 func_size = func->new_size;
1675 ret = add_func(func_list, func_addr,
1676 func_size, func->old_name, 0);
1677 if (ret)
1678 return ret;
1679 }
1680 return 0;
1681 }
1682
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 1b4212c630731d88b07d5b6e28ecaff1a76d3839
commit: 43d4042e06d2bf96adf67d25e8d91653507a4cf9 [3338/6857] KEYS: Provide a function to load keys from a PGP keyring blob
config: x86_64-randconfig-071-20240323 (https://download.01.org/0day-ci/archive/20240323/202403231835.9j4F9Ajt-lkp@…)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403231835.9j4F9Ajt-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/202403231835.9j4F9Ajt-lkp@intel.com/
All warnings (new ones prefixed by >>):
crypto/asymmetric_keys/pgp_preload.c:25:27: error: field has incomplete type 'struct pgp_parse_context'
25 | struct pgp_parse_context pgp;
| ^
crypto/asymmetric_keys/pgp_preload.c:25:9: note: forward declaration of 'struct pgp_parse_context'
25 | struct pgp_parse_context pgp;
| ^
>> crypto/asymmetric_keys/pgp_preload.c:63:10: warning: declaration of 'enum pgp_packet_tag' will not be visible outside of this function [-Wvisibility]
63 | enum pgp_packet_tag type, u8 headerlen,
| ^
crypto/asymmetric_keys/pgp_preload.c:63:25: error: variable has incomplete type 'enum pgp_packet_tag'
63 | enum pgp_packet_tag type, u8 headerlen,
| ^
crypto/asymmetric_keys/pgp_preload.c:63:10: note: forward declaration of 'enum pgp_packet_tag'
63 | enum pgp_packet_tag type, u8 headerlen,
| ^
crypto/asymmetric_keys/pgp_preload.c:107:36: error: use of undeclared identifier 'PGP_PKT_PUBLIC_KEY'
107 | ctx.pgp.types_of_interest = (1 << PGP_PKT_PUBLIC_KEY);
| ^
crypto/asymmetric_keys/pgp_preload.c:112:8: error: call to undeclared function 'pgp_parse_packets'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
112 | ret = pgp_parse_packets(pgpdata, pgpdatalen, &ctx.pgp);
| ^
>> crypto/asymmetric_keys/pgp_preload.c:101:12: warning: no previous prototype for function 'preload_pgp_keys' [-Wmissing-prototypes]
101 | int __init preload_pgp_keys(const u8 *pgpdata, size_t pgpdatalen,
| ^
crypto/asymmetric_keys/pgp_preload.c:101:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
101 | int __init preload_pgp_keys(const u8 *pgpdata, size_t pgpdatalen,
| ^
| static
2 warnings and 4 errors generated.
--
crypto/asymmetric_keys/pgp_public_key.c:37:27: error: field has incomplete type 'struct pgp_parse_context'
37 | struct pgp_parse_context pgp;
| ^
crypto/asymmetric_keys/pgp_public_key.c:37:9: note: forward declaration of 'struct pgp_parse_context'
37 | struct pgp_parse_context pgp;
| ^
crypto/asymmetric_keys/pgp_public_key.c:50:18: warning: declaration of 'struct pgp_parse_pubkey' will not be visible outside of this function [-Wvisibility]
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:63:2: error: call to undeclared function 'kenter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
63 | kenter("");
| ^
crypto/asymmetric_keys/pgp_public_key.c:65:10: error: incomplete definition of type 'struct pgp_parse_pubkey'
65 | n = (pgp->version < PGP_KEY_VERSION_4) ? 8 : 6;
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:65:22: error: use of undeclared identifier 'PGP_KEY_VERSION_4'
65 | n = (pgp->version < PGP_KEY_VERSION_4) ? 8 : 6;
| ^
crypto/asymmetric_keys/pgp_public_key.c:67:9: error: call to undeclared function 'mpi_key_length'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
67 | ret = mpi_key_length(key_ptr, keylen, nb + i, nn + i);
| ^
crypto/asymmetric_keys/pgp_public_key.c:87:25: error: incomplete definition of type 'struct pgp_parse_pubkey'
87 | digest_putc(digest, pgp->version);
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:89:11: error: incomplete definition of type 'struct pgp_parse_pubkey'
89 | a32 = pgp->creation_time;
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:95:9: error: incomplete definition of type 'struct pgp_parse_pubkey'
95 | if (pgp->version < PGP_KEY_VERSION_4) {
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:95:21: error: use of undeclared identifier 'PGP_KEY_VERSION_4'
95 | if (pgp->version < PGP_KEY_VERSION_4) {
| ^
crypto/asymmetric_keys/pgp_public_key.c:98:10: error: incomplete definition of type 'struct pgp_parse_pubkey'
98 | if (pgp->expires_at)
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:99:14: error: incomplete definition of type 'struct pgp_parse_pubkey'
99 | a16 = (pgp->expires_at - pgp->creation_time) / 86400UL;
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:99:32: error: incomplete definition of type 'struct pgp_parse_pubkey'
99 | a16 = (pgp->expires_at - pgp->creation_time) / 86400UL;
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:106:25: error: incomplete definition of type 'struct pgp_parse_pubkey'
106 | digest_putc(digest, pgp->pubkey_algo);
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:50:18: note: forward declaration of 'struct pgp_parse_pubkey'
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:115:2: error: call to undeclared function 'kleave'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
115 | kleave(" = %d", ret);
| ^
crypto/asymmetric_keys/pgp_public_key.c:123:16: warning: declaration of 'struct pgp_parse_pubkey' will not be visible outside of this function [-Wvisibility]
123 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:134:30: error: incomplete definition of type 'struct pgp_parse_pubkey'
134 | tfm = crypto_alloc_shash(pgp->version < PGP_KEY_VERSION_4 ?
| ~~~^
crypto/asymmetric_keys/pgp_public_key.c:123:16: note: forward declaration of 'struct pgp_parse_pubkey'
123 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:134:42: error: use of undeclared identifier 'PGP_KEY_VERSION_4'
134 | tfm = crypto_alloc_shash(pgp->version < PGP_KEY_VERSION_4 ?
| ^
crypto/asymmetric_keys/pgp_public_key.c:150:36: error: incompatible pointer types passing 'struct pgp_parse_pubkey *' to parameter of type 'struct pgp_parse_pubkey *' [-Werror,-Wincompatible-pointer-types]
150 | ret = pgp_calc_pkey_keyid(digest, pgp, pub);
| ^~~
crypto/asymmetric_keys/pgp_public_key.c:50:36: note: passing argument to parameter 'pgp' here
50 | struct pgp_parse_pubkey *pgp,
| ^
crypto/asymmetric_keys/pgp_public_key.c:191:2: error: call to undeclared function 'kleave'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
191 | kleave(" = %d", ret);
| ^
>> crypto/asymmetric_keys/pgp_public_key.c:199:12: warning: declaration of 'enum pgp_packet_tag' will not be visible outside of this function [-Wvisibility]
199 | enum pgp_packet_tag type,
| ^
crypto/asymmetric_keys/pgp_public_key.c:199:27: error: variable has incomplete type 'enum pgp_packet_tag'
199 | enum pgp_packet_tag type,
| ^
crypto/asymmetric_keys/pgp_public_key.c:199:12: note: forward declaration of 'enum pgp_packet_tag'
199 | enum pgp_packet_tag type,
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_I915_DEBUG_GEM
Depends on [n]: HAS_IOMEM [=y] && DRM_I915 [=y] && EXPERT [=y] && DRM_I915_WERROR [=n]
Selected by [y]:
- DRM_I915_DEBUG [=y] && HAS_IOMEM [=y] && DRM_I915 [=y] && EXPERT [=y] && !COMPILE_TEST [=n]
WARNING: unmet direct dependencies detected for PGP_KEY_PARSER
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n]
Selected by [y]:
- PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y]
vim +63 crypto/asymmetric_keys/pgp_preload.c
58
59 /*
60 * Extract a public key or subkey from the PGP stream.
61 */
62 static int __init found_pgp_key(struct pgp_parse_context *context,
> 63 enum pgp_packet_tag type, u8 headerlen,
64 const u8 *data, size_t datalen)
65 {
66 struct preload_pgp_keys_context *ctx =
67 container_of(context, struct preload_pgp_keys_context, pgp);
68 int ret;
69
70 if (ctx->found_key) {
71 ctx->key_end = data - headerlen;
72 ret = create_pgp_key(ctx);
73 if (ret < 0)
74 return ret;
75 }
76
77 ctx->key_start = data - headerlen;
78 ctx->found_key = true;
79 return 0;
80 }
81
82 /**
83 * preload_pgp_keys - Load keys from a PGP keyring blob
84 * @pgpdata: The PGP keyring blob containing the keys.
85 * @pgpdatalen: The size of the @pgpdata blob.
86 * @keyring: The keyring to add the new keys to.
87 *
88 * Preload a pack of keys from a PGP keyring blob.
89 *
90 * The keys have their descriptions generated from the user ID and fingerprint
91 * in the PGP stream. Since keys can be matched on their key IDs independently
92 * of the key description, the description is mostly irrelevant apart from the
93 * fact that keys of the same description displace one another from a keyring.
94 *
95 * The caller should override the current creds if they want the keys to be
96 * owned by someone other than the current process's owner. Keys will not be
97 * accounted towards the owner's quota.
98 *
99 * This function may only be called whilst the kernel is booting.
100 */
> 101 int __init preload_pgp_keys(const u8 *pgpdata, size_t pgpdatalen,
102 struct key *keyring)
103 {
104 struct preload_pgp_keys_context ctx;
105 int ret;
106
107 ctx.pgp.types_of_interest = (1 << PGP_PKT_PUBLIC_KEY);
108 ctx.pgp.process_packet = found_pgp_key;
109 ctx.keyring = make_key_ref(keyring, 1);
110 ctx.found_key = false;
111
112 ret = pgp_parse_packets(pgpdata, pgpdatalen, &ctx.pgp);
113 if (ret < 0)
114 return ret;
115
116 if (ctx.found_key) {
117 ctx.key_end = pgpdata + pgpdatalen;
118 return create_pgp_key(&ctx);
119 }
120 return 0;
121 }
122
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 459341c4b4845b283c7a884e6a0dc4bd8cdb89e6
commit: e9ce37bbceb2779c0015fcac54cc8df7a2ec8b76 [10038/30000] tcp_comp: implement sendmsg for tcp compression
config: x86_64-randconfig-001-20240323 (https://download.01.org/0day-ci/archive/20240323/202403231836.Ys5ZDZ5J-lkp@…)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403231836.Ys5ZDZ5J-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/202403231836.Ys5ZDZ5J-lkp@intel.com/
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: sk_msg_alloc
>>> referenced by tcp_comp.c:148 (net/ipv4/tcp_comp.c:148)
>>> ipv4/tcp_comp.o:(tcp_comp_sendmsg) in archive net/built-in.a
--
>> ld.lld: error: undefined symbol: sk_msg_trim
>>> referenced by tcp_comp.c:236 (net/ipv4/tcp_comp.c:236)
>>> ipv4/tcp_comp.o:(tcp_comp_sendmsg) in archive net/built-in.a
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PGP_PRELOAD
Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=n]
Selected by [y]:
- PGP_PRELOAD_PUBLIC_KEYS [=y] && CRYPTO [=y]
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: 459341c4b4845b283c7a884e6a0dc4bd8cdb89e6
commit: eb44201ee79cffdcf1b16759a54940dca047aae5 [25152/30000] ubl: add CONFIG_UBL definition and UBL interface
config: x86_64-randconfig-103-20240323 (https://download.01.org/0day-ci/archive/20240323/202403231743.sBKdJNRn-lkp@…)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403231743.sBKdJNRn-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/202403231743.sBKdJNRn-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/ub/dev/ubl.c:92:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
92 | const static struct header_ops ubl_header_ops ____cacheline_aligned = {
| ^~~~~
vim +/static +92 drivers/net/ub/dev/ubl.c
91
> 92 const static struct header_ops ubl_header_ops ____cacheline_aligned = {
93 .create = ubl_create_header,
94 .parse_protocol = ubl_header_parse_protocol,
95 };
96
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki