All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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>'
Date: Tue, 30 Jan 2024 18:02:37 +0800	[thread overview]
Message-ID: <202401301733.Vm0IPTrO-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-01-30 10:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202401301733.Vm0IPTrO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aleksander.lobakin@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.