CC: [email protected] BCC: [email protected] CC: Linux Memory Management List <[email protected]> TO: David Disseldorp <[email protected]> CC: Andrew Morton <[email protected]> CC: Linux Memory Management List <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ab38272e99730375c5db3db1c4cebf691a0550ab commit: 55230b38045d4ec286b62dc35ed8434f15b63511 [7298/10218] initramfs: make dir_entry.name a flexible array member :::::: branch date: 17 hours ago :::::: commit date: 10 days ago compiler: mips-linux-gcc (GCC) 11.3.0 reproduce (cppcheck warning): # apt-get install cppcheck git checkout 55230b38045d4ec286b62dc35ed8434f15b63511 cppcheck --quiet --enable=style,performance,portability --template=gcc FILE If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> init/initramfs.c:156:26: warning: Uninitialized variable: de->mtime >> [uninitvar] do_utime(de->name, de->mtime); ^ vim +156 init/initramfs.c 889d51a10712b6 Nye Liu 2008-10-15 150 889d51a10712b6 Nye Liu 2008-10-15 151 static void __init dir_utime(void) 889d51a10712b6 Nye Liu 2008-10-15 152 { 889d51a10712b6 Nye Liu 2008-10-15 153 struct dir_entry *de, *tmp; 889d51a10712b6 Nye Liu 2008-10-15 154 list_for_each_entry_safe(de, tmp, &dir_list, list) { 889d51a10712b6 Nye Liu 2008-10-15 155 list_del(&de->list); 889d51a10712b6 Nye Liu 2008-10-15 @156 do_utime(de->name, de->mtime); 889d51a10712b6 Nye Liu 2008-10-15 157 kfree(de); 889d51a10712b6 Nye Liu 2008-10-15 158 } 889d51a10712b6 Nye Liu 2008-10-15 159 } 889d51a10712b6 Nye Liu 2008-10-15 160 :::::: The code at line 156 was first introduced by commit :::::: 889d51a10712b6fd6175196626de2116858394f4 initramfs: add option to preserve mtime from initramfs cpio images :::::: TO: Nye Liu <[email protected]> :::::: CC: Linus Torvalds <[email protected]> -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
