[Intel-wired-lan] [jkirsher-next-queue:dev-queue 79/82] drivers/net/ethernet/intel/i40e/i40e_main.c:7076:26: error: 'I40E_FLAG_OUTER_UDP_CSUM_CAPABLE' undeclared

Sullivan, Catherine catherine.sullivan at intel.com
Fri Jun 19 18:22:05 UTC 2015


I cannot reproduce this error with the given config file. The tree has been rebased since the error was reported and I can no longer checkout the commit ID given but the version of the patch on the tree does not have this error.

> -----Original Message-----
> From: Wu, Fengguang
> Sent: Thursday, June 11, 2015 5:18 PM
> To: Singhai, Anjali
> Cc: kbuild-all at 01.org; Kirsher, Jeffrey T; Sullivan, Catherine; intel-wired-
> lan at lists.osuosl.org
> Subject: [jkirsher-next-queue:dev-queue 79/82]
> drivers/net/ethernet/intel/i40e/i40e_main.c:7076:26: error:
> 'I40E_FLAG_OUTER_UDP_CSUM_CAPABLE' undeclared
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git
> dev-queue
> head:   a77608e2c8d74ca16cf2738a9d2e9d90f9499c24
> commit: 72d571190c75442e0d5dd2aba23ee864a2137c7c [79/82] i40e/i40evf:
> Add TX/RX outer UDP checksum support for X722
> config: i386-randconfig-r0-201523 (attached as .config)
> reproduce:
>   git checkout 72d571190c75442e0d5dd2aba23ee864a2137c7c
>   # save the attached .config to linux build tree
>   make ARCH=i386
> 
> All error/warnings (new ones prefixed by >>):
> 
>    In file included from include/linux/list.h:8:0,
>                     from include/net/tcp.h:23,
>                     from drivers/net/ethernet/intel/i40e/i40e.h:30,
>                     from drivers/net/ethernet/intel/i40e/i40e_main.c:28:
>    drivers/net/ethernet/intel/i40e/i40e_main.c: In function
> 'i40e_vsi_setup_queue_map':
>    drivers/net/ethernet/intel/i40e/i40e.h:88:19: error:
> 'I40E_FLAG_128_QP_RSS_CAPABLE' undeclared (first use in this function)
>       (((pf)->flags & I40E_FLAG_128_QP_RSS_CAPABLE) ? 128 : 64)
>                       ^
>    include/linux/kernel.h:764:17: note: in definition of macro 'min_t'
>      type __min2 = (y);   \
>                     ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c:1553:38: note: in expansion of
> macro 'i40e_pf_get_max_q_per_tc'
>      num_tc_qps = min_t(int, num_tc_qps, i40e_pf_get_max_q_per_tc(pf));
>                                          ^
>    drivers/net/ethernet/intel/i40e/i40e.h:88:19: note: each undeclared identifier
> is reported only once for each function it appears in
>       (((pf)->flags & I40E_FLAG_128_QP_RSS_CAPABLE) ? 128 : 64)
>                       ^
>    include/linux/kernel.h:764:17: note: in definition of macro 'min_t'
>      type __min2 = (y);   \
>                     ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c:1553:38: note: in expansion of
> macro 'i40e_pf_get_max_q_per_tc'
>      num_tc_qps = min_t(int, num_tc_qps, i40e_pf_get_max_q_per_tc(pf));
>                                          ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c: In function 'i40e_alloc_rings':
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7074:26: error:
> 'I40E_FLAG_WB_ON_ITR_CAPABLE' undeclared (first use in this function)
>       if (vsi->back->flags & I40E_FLAG_WB_ON_ITR_CAPABLE)
>                              ^
> >> drivers/net/ethernet/intel/i40e/i40e_main.c:7076:26: error:
> 'I40E_FLAG_OUTER_UDP_CSUM_CAPABLE' undeclared (first use in this
> function)
>       if (vsi->back->flags & I40E_FLAG_OUTER_UDP_CSUM_CAPABLE)
>                              ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c: In function
> 'i40e_vsi_config_rss':
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7535:18: error:
> 'I40E_FLAG_RSS_AQ_CAPABLE' undeclared (first use in this function)
>      if (pf->flags & I40E_FLAG_RSS_AQ_CAPABLE)
>                      ^
>    In file included from drivers/net/ethernet/intel/i40e/i40e.h:64:0,
>                     from drivers/net/ethernet/intel/i40e/i40e_main.c:28:
>    drivers/net/ethernet/intel/i40e/i40e_main.c: In function 'i40e_config_rss':
>    drivers/net/ethernet/intel/i40e/i40e_txrx.h:90:18: error:
> 'I40E_FLAG_MULTIPLE_TCP_UDP_RSS_PCTYPE' undeclared (first use in this
> function)
>      (((pf)->flags & I40E_FLAG_MULTIPLE_TCP_UDP_RSS_PCTYPE) ? \
>                      ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7591:10: note: in expansion of
> macro 'i40e_pf_get_default_rss_hena'
>      hena |= i40e_pf_get_default_rss_hena(pf);
>              ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7591:2: warning: left shift count
> >= width of type
>      hena |= i40e_pf_get_default_rss_hena(pf);
>      ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7591:2: warning: left shift count
> >= width of type
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7591:2: warning: left shift count
> >= width of type
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7591:2: warning: left shift count
> >= width of type
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7605:18: error:
> 'I40E_FLAG_RSS_AQ_CAPABLE' undeclared (first use in this function)
>      if (pf->flags & I40E_FLAG_RSS_AQ_CAPABLE)
>                      ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c: In function 'i40e_vsi_setup':
>    drivers/net/ethernet/intel/i40e/i40e_main.c:9023:19: error:
> 'I40E_FLAG_RSS_AQ_CAPABLE' undeclared (first use in this function)
>      if ((pf->flags & I40E_FLAG_RSS_AQ_CAPABLE) &&
>                       ^
>    drivers/net/ethernet/intel/i40e/i40e_main.c: In function 'i40e_config_rss':
>    drivers/net/ethernet/intel/i40e/i40e_main.c:7609:1: warning: control reaches
> end of non-void function [-Wreturn-type]
>     }
>     ^
> --
>    drivers/net/ethernet/intel/i40e/i40e_txrx.c: In function 'i40e_rx_checksum':
> >> drivers/net/ethernet/intel/i40e/i40e_txrx.c:1432:27: error:
> 'I40E_FLAG_OUTER_UDP_CSUM_CAPABLE' undeclared (first use in this
> function)
>      if (!(vsi->back->flags & I40E_FLAG_OUTER_UDP_CSUM_CAPABLE) &&
>                               ^
>    drivers/net/ethernet/intel/i40e/i40e_txrx.c:1432:27: note: each undeclared
> identifier is reported only once for each function it appears in
> 
> vim +/I40E_FLAG_OUTER_UDP_CSUM_CAPABLE +7076
> drivers/net/ethernet/intel/i40e/i40e_main.c
> 
>   7070			tx_ring->dev = &pf->pdev->dev;
>   7071			tx_ring->count = vsi->num_desc;
>   7072			tx_ring->size = 0;
>   7073			tx_ring->dcb_tc = 0;
>   7074			if (vsi->back->flags &
> I40E_FLAG_WB_ON_ITR_CAPABLE)
>   7075				tx_ring->flags =
> I40E_TXR_FLAGS_WB_ON_ITR;
> > 7076			if (vsi->back->flags &
> I40E_FLAG_OUTER_UDP_CSUM_CAPABLE)
>   7077				tx_ring->flags |=
> I40E_TXR_FLAGS_OUTER_UDP_CSUM;
>   7078			vsi->tx_rings[i] = tx_ring;
>   7079
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation


More information about the Intel-wired-lan mailing list