* lib/tests/liveupdate.c:130 liveupdate_test_register() warn: passing zero to 'ERR_PTR'
@ 2026-07-02 23:18 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-02 23:18 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Pasha Tatashin <pasha.tatashin@soleen.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 87320be9f0d24fce67631b7eef919f0b79c3e45c
commit: f653ff7af96951faa69c68665d44bed80702544f tests/liveupdate: add in-kernel liveupdate test
date: 5 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 5 months ago
config: x86_64-randconfig-161-20260703 (https://download.01.org/0day-ci/archive/20260703/202607030701.UujNlooD-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9185-gbcc58b9c
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
| Fixes: f653ff7af969 ("tests/liveupdate: add in-kernel liveupdate test")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202607030701.UujNlooD-lkp@intel.com/
smatch warnings:
lib/tests/liveupdate.c:130 liveupdate_test_register() warn: passing zero to 'ERR_PTR'
vim +/ERR_PTR +130 lib/tests/liveupdate.c
f653ff7af96951 Pasha Tatashin 2025-12-18 111
f653ff7af96951 Pasha Tatashin 2025-12-18 112 void liveupdate_test_register(struct liveupdate_file_handler *fh)
f653ff7af96951 Pasha Tatashin 2025-12-18 113 {
f653ff7af96951 Pasha Tatashin 2025-12-18 114 int err, i;
f653ff7af96951 Pasha Tatashin 2025-12-18 115
f653ff7af96951 Pasha Tatashin 2025-12-18 116 liveupdate_test_init();
f653ff7af96951 Pasha Tatashin 2025-12-18 117
f653ff7af96951 Pasha Tatashin 2025-12-18 118 for (i = 0; i < TEST_NFLBS; i++) {
f653ff7af96951 Pasha Tatashin 2025-12-18 119 struct liveupdate_flb *flb = &test_flbs[i];
f653ff7af96951 Pasha Tatashin 2025-12-18 120
f653ff7af96951 Pasha Tatashin 2025-12-18 121 err = liveupdate_register_flb(fh, flb);
f653ff7af96951 Pasha Tatashin 2025-12-18 122 if (err) {
f653ff7af96951 Pasha Tatashin 2025-12-18 123 pr_err("Failed to register %s %pe\n",
f653ff7af96951 Pasha Tatashin 2025-12-18 124 flb->compatible, ERR_PTR(err));
f653ff7af96951 Pasha Tatashin 2025-12-18 125 }
f653ff7af96951 Pasha Tatashin 2025-12-18 126 }
f653ff7af96951 Pasha Tatashin 2025-12-18 127
f653ff7af96951 Pasha Tatashin 2025-12-18 128 err = liveupdate_register_flb(fh, &test_flbs[0]);
f653ff7af96951 Pasha Tatashin 2025-12-18 129 if (!err || err != -EEXIST) {
f653ff7af96951 Pasha Tatashin 2025-12-18 @130 pr_err("Failed: %s should be already registered, but got err: %pe\n",
f653ff7af96951 Pasha Tatashin 2025-12-18 131 test_flbs[0].compatible, ERR_PTR(err));
f653ff7af96951 Pasha Tatashin 2025-12-18 132 }
f653ff7af96951 Pasha Tatashin 2025-12-18 133
f653ff7af96951 Pasha Tatashin 2025-12-18 134 pr_info("Registered %d FLBs with file handler: [%s]\n",
f653ff7af96951 Pasha Tatashin 2025-12-18 135 TEST_NFLBS, fh->compatible);
f653ff7af96951 Pasha Tatashin 2025-12-18 136 }
f653ff7af96951 Pasha Tatashin 2025-12-18 137
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* lib/tests/liveupdate.c:130 liveupdate_test_register() warn: passing zero to 'ERR_PTR'
@ 2026-03-17 1:00 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-17 1:00 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Pasha Tatashin <pasha.tatashin@soleen.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2d1373e4246da3b58e1df058374ed6b101804e07
commit: f653ff7af96951faa69c68665d44bed80702544f tests/liveupdate: add in-kernel liveupdate test
date: 5 weeks ago
:::::: branch date: 9 hours ago
:::::: commit date: 5 weeks ago
config: x86_64-randconfig-161-20260317 (https://download.01.org/0day-ci/archive/20260317/202603170803.OkJuT0LU-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
smatch: v0.5.0-9004-gb810ac53
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@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202603170803.OkJuT0LU-lkp@intel.com/
smatch warnings:
lib/tests/liveupdate.c:130 liveupdate_test_register() warn: passing zero to 'ERR_PTR'
vim +/ERR_PTR +130 lib/tests/liveupdate.c
f653ff7af96951f Pasha Tatashin 2025-12-18 111
f653ff7af96951f Pasha Tatashin 2025-12-18 112 void liveupdate_test_register(struct liveupdate_file_handler *fh)
f653ff7af96951f Pasha Tatashin 2025-12-18 113 {
f653ff7af96951f Pasha Tatashin 2025-12-18 114 int err, i;
f653ff7af96951f Pasha Tatashin 2025-12-18 115
f653ff7af96951f Pasha Tatashin 2025-12-18 116 liveupdate_test_init();
f653ff7af96951f Pasha Tatashin 2025-12-18 117
f653ff7af96951f Pasha Tatashin 2025-12-18 118 for (i = 0; i < TEST_NFLBS; i++) {
f653ff7af96951f Pasha Tatashin 2025-12-18 119 struct liveupdate_flb *flb = &test_flbs[i];
f653ff7af96951f Pasha Tatashin 2025-12-18 120
f653ff7af96951f Pasha Tatashin 2025-12-18 121 err = liveupdate_register_flb(fh, flb);
f653ff7af96951f Pasha Tatashin 2025-12-18 122 if (err) {
f653ff7af96951f Pasha Tatashin 2025-12-18 123 pr_err("Failed to register %s %pe\n",
f653ff7af96951f Pasha Tatashin 2025-12-18 124 flb->compatible, ERR_PTR(err));
f653ff7af96951f Pasha Tatashin 2025-12-18 125 }
f653ff7af96951f Pasha Tatashin 2025-12-18 126 }
f653ff7af96951f Pasha Tatashin 2025-12-18 127
f653ff7af96951f Pasha Tatashin 2025-12-18 128 err = liveupdate_register_flb(fh, &test_flbs[0]);
f653ff7af96951f Pasha Tatashin 2025-12-18 129 if (!err || err != -EEXIST) {
f653ff7af96951f Pasha Tatashin 2025-12-18 @130 pr_err("Failed: %s should be already registered, but got err: %pe\n",
f653ff7af96951f Pasha Tatashin 2025-12-18 131 test_flbs[0].compatible, ERR_PTR(err));
f653ff7af96951f Pasha Tatashin 2025-12-18 132 }
f653ff7af96951f Pasha Tatashin 2025-12-18 133
f653ff7af96951f Pasha Tatashin 2025-12-18 134 pr_info("Registered %d FLBs with file handler: [%s]\n",
f653ff7af96951f Pasha Tatashin 2025-12-18 135 TEST_NFLBS, fh->compatible);
f653ff7af96951f Pasha Tatashin 2025-12-18 136 }
f653ff7af96951f Pasha Tatashin 2025-12-18 137
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-02 23:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 23:18 lib/tests/liveupdate.c:130 liveupdate_test_register() warn: passing zero to 'ERR_PTR' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-03-17 1:00 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.