All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android15-6.6-lts 14/14] gro.c:123:7: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is true
@ 2025-12-02 14:02 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-02 14:02 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: cros-kernel-buildreports@googlegroups.com

tree:   https://android.googlesource.com/kernel/common android15-6.6-lts
head:   dade86aa098b02637d657986340a2756688d21e2
commit: 28f2d15e27afd9b2f154d7a264b18666901c31f5 [14/14] selftests/net: fix GRO coalesce test and add ext header coalesce tests
:::::: branch date: 5 hours ago
:::::: commit date: 8 days ago
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251202/202512021523.pVePhA8v-lkp@intel.com/config)
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/20251202/202512021523.pVePhA8v-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/r/202512021523.pVePhA8v-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from gro.c:60:
   ./../kselftest.h:355:6: warning: variable 'major' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]
     355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
         |             ^~~~~~~~~~~~
   ./../kselftest.h:358:9: note: uninitialized use occurs here
     358 |         return major > min_major || (major == min_major && minor >= min_minor);
         |                ^~~~~
   ./../kselftest.h:355:6: note: remove the '||' if its condition is always false
     355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
         |             ^~~~~~~~~~~~~~~
   ./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
     352 |         unsigned int major, minor;
         |                           ^
         |                            = 0
>> gro.c:123:7: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
     123 |                 if (proto == PF_INET)
         |                     ^~~~~~~~~~~~~~~~
   gro.c:148:42: note: uninitialized use occurs here
     148 |                         BPF_STMT(BPF_LD  + BPF_B   + BPF_ABS, opt_ipproto_off),
         |                                                               ^~~~~~~~~~~~~~~
   usr/include/linux/filter.h:49:59: note: expanded from macro 'BPF_STMT'
      49 | #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k }
         |                                                           ^
   gro.c:123:3: note: remove the 'if' if its condition is always false
     123 |                 if (proto == PF_INET)
         |                 ^~~~~~~~~~~~~~~~~~~~~
     124 |                         optlen = sizeof(struct ip_timestamp);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     125 |                 else {
         |                 ~~~~
>> gro.c:122:6: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
     122 |         if (strcmp(testname, "ip") == 0) {
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   gro.c:148:42: note: uninitialized use occurs here
     148 |                         BPF_STMT(BPF_LD  + BPF_B   + BPF_ABS, opt_ipproto_off),
         |                                                               ^~~~~~~~~~~~~~~
   usr/include/linux/filter.h:49:59: note: expanded from macro 'BPF_STMT'
      49 | #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k }
         |                                                           ^
   gro.c:122:2: note: remove the 'if' if its condition is always true
     122 |         if (strcmp(testname, "ip") == 0) {
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   gro.c:113:34: note: initialize the variable 'opt_ipproto_off' to silence this warning
     113 |         int ipproto_off, opt_ipproto_off;
         |                                         ^
         |                                          = 0
   3 warnings generated.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [android-common:android15-6.6-lts 14/14] gro.c:123:7: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is true
@ 2025-12-03  4:37 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-03  4:37 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android15-6.6-lts
head:   dade86aa098b02637d657986340a2756688d21e2
commit: 28f2d15e27afd9b2f154d7a264b18666901c31f5 [14/14] selftests/net: fix GRO coalesce test and add ext header coalesce tests
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251202/202512021523.pVePhA8v-lkp@intel.com/config)
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/20251202/202512021523.pVePhA8v-lkp@intel.com/reproduce)

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>
| Closes: https://lore.kernel.org/r/202512021523.pVePhA8v-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from gro.c:60:
   ./../kselftest.h:355:6: warning: variable 'major' is used uninitialized whenever '||' condition is true [-Wsometimes-uninitialized]
     355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
         |             ^~~~~~~~~~~~
   ./../kselftest.h:358:9: note: uninitialized use occurs here
     358 |         return major > min_major || (major == min_major && minor >= min_minor);
         |                ^~~~~
   ./../kselftest.h:355:6: note: remove the '||' if its condition is always false
     355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
         |             ^~~~~~~~~~~~~~~
   ./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
     352 |         unsigned int major, minor;
         |                           ^
         |                            = 0
>> gro.c:123:7: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
     123 |                 if (proto == PF_INET)
         |                     ^~~~~~~~~~~~~~~~
   gro.c:148:42: note: uninitialized use occurs here
     148 |                         BPF_STMT(BPF_LD  + BPF_B   + BPF_ABS, opt_ipproto_off),
         |                                                               ^~~~~~~~~~~~~~~
   usr/include/linux/filter.h:49:59: note: expanded from macro 'BPF_STMT'
      49 | #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k }
         |                                                           ^
   gro.c:123:3: note: remove the 'if' if its condition is always false
     123 |                 if (proto == PF_INET)
         |                 ^~~~~~~~~~~~~~~~~~~~~
     124 |                         optlen = sizeof(struct ip_timestamp);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     125 |                 else {
         |                 ~~~~
>> gro.c:122:6: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
     122 |         if (strcmp(testname, "ip") == 0) {
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   gro.c:148:42: note: uninitialized use occurs here
     148 |                         BPF_STMT(BPF_LD  + BPF_B   + BPF_ABS, opt_ipproto_off),
         |                                                               ^~~~~~~~~~~~~~~
   usr/include/linux/filter.h:49:59: note: expanded from macro 'BPF_STMT'
      49 | #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k }
         |                                                           ^
   gro.c:122:2: note: remove the 'if' if its condition is always true
     122 |         if (strcmp(testname, "ip") == 0) {
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   gro.c:113:34: note: initialize the variable 'opt_ipproto_off' to silence this warning
     113 |         int ipproto_off, opt_ipproto_off;
         |                                         ^
         |                                          = 0
   3 warnings generated.

-- 
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:[~2025-12-03  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03  4:37 [android-common:android15-6.6-lts 14/14] gro.c:123:7: warning: variable 'opt_ipproto_off' is used uninitialized whenever 'if' condition is true kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-12-02 14:02 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.