* [alobakin:idpf-libie-new 22/22] drivers/net/ethernet/intel/idpf/idpf_virtchnl.c:2656:34: warning: comparison between 'enum pkt_hash_types' and 'enum <anonymous>'
@ 2024-01-30 10:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-30 10:02 UTC (permalink / raw)
To: Alexander Lobakin; +Cc: oe-kbuild-all
tree: https://github.com/alobakin/linux idpf-libie-new
head: 001088a7cb427528b6de7c2b879ad817e5515281
commit: 001088a7cb427528b6de7c2b879ad817e5515281 [22/22] idpf: reuse libie's definitions of parsed ptype structures
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240130/202401301733.Vm0IPTrO-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240130/202401301733.Vm0IPTrO-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/oe-kbuild-all/202401301733.Vm0IPTrO-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/div64.h:27,
from ./arch/loongarch/include/generated/asm/div64.h:1,
from include/linux/math.h:6,
from include/linux/math64.h:6,
from include/linux/jiffies.h:7,
from include/net/pkt_sched.h:5,
from drivers/net/ethernet/intel/idpf/idpf.h:12,
from drivers/net/ethernet/intel/idpf/idpf_virtchnl.c:4:
include/net/libeth/rx.h: In function 'libeth_rx_pt_has_hash':
include/net/libeth/rx.h:199:40: warning: comparison between 'enum pkt_hash_types' and 'enum <anonymous>' [-Wenum-compare]
199 | return likely(pt.payload_layer > LIBETH_RX_PT_PAYLOAD_NONE &&
| ^
include/linux/compiler.h:76:45: note: in definition of macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c: In function 'idpf_finalize_ptype_lookup':
>> drivers/net/ethernet/intel/idpf/idpf_virtchnl.c:2656:34: warning: comparison between 'enum pkt_hash_types' and 'enum <anonymous>' [-Wenum-compare]
2656 | if (ptype->payload_layer == LIBETH_RX_PT_PAYLOAD_L2 &&
| ^~
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c:2659:39: warning: comparison between 'enum pkt_hash_types' and 'enum <anonymous>' [-Wenum-compare]
2659 | else if (ptype->payload_layer == LIBETH_RX_PT_PAYLOAD_L2 &&
| ^~
vim +2656 drivers/net/ethernet/intel/idpf/idpf_virtchnl.c
2653
2654 static void idpf_finalize_ptype_lookup(struct libeth_rx_pt *ptype)
2655 {
> 2656 if (ptype->payload_layer == LIBETH_RX_PT_PAYLOAD_L2 &&
2657 ptype->inner_prot)
2658 ptype->payload_layer = LIBETH_RX_PT_PAYLOAD_L4;
2659 else if (ptype->payload_layer == LIBETH_RX_PT_PAYLOAD_L2 &&
2660 ptype->outer_ip)
2661 ptype->payload_layer = LIBETH_RX_PT_PAYLOAD_L3;
2662 else if (ptype->outer_ip == LIBETH_RX_PT_OUTER_L2)
2663 ptype->payload_layer = LIBETH_RX_PT_PAYLOAD_L2;
2664 else
2665 ptype->payload_layer = LIBETH_RX_PT_PAYLOAD_NONE;
2666
2667 libeth_rx_pt_gen_hash_type(ptype);
2668 }
2669
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-30 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30 10:02 [alobakin:idpf-libie-new 22/22] drivers/net/ethernet/intel/idpf/idpf_virtchnl.c:2656:34: warning: comparison between 'enum pkt_hash_types' and 'enum <anonymous>' 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.