linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 2025/3314] include/linux/avf/virtchnl.h:577:32: error: enumerator value for 'virtchnl_static_assert_virtchnl_filter' is not an integer constant
@ 2020-04-20 12:27 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-20 12:27 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: kbuild-all, linux-media

[-- Attachment #1: Type: text/plain, Size: 16663 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6735c84f78e41749fd09e73cca70d3e0779397aa
commit: df823a8208c434eee6e4e9aa016c956d0968e2e2 [2025/3314] media: cec: rename CEC platform drivers config options
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout df823a8208c434eee6e4e9aa016c956d0968e2e2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

Note: the linux-next/master HEAD 6735c84f78e41749fd09e73cca70d3e0779397aa builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/intel/i40e/i40e_prototype.h:9,
                    from drivers/net/ethernet/intel/i40e/i40e.h:40,
                    from drivers/net/ethernet/intel/i40e/i40e_main.c:10:
   include/linux/avf/virtchnl.h:147:36: warning: division by zero [-Wdiv-by-zero]
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                    ^
   include/linux/avf/virtchnl.h:577:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     577 | VIRTCHNL_CHECK_STRUCT_LEN(272, virtchnl_filter);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:577:32: error: enumerator value for 'virtchnl_static_assert_virtchnl_filter' is not an integer constant
     577 | VIRTCHNL_CHECK_STRUCT_LEN(272, virtchnl_filter);
         |                                ^~~~~~~~~~~~~~~
   include/linux/avf/virtchnl.h:147:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                                     ^
   include/linux/avf/virtchnl.h:147:36: warning: division by zero [-Wdiv-by-zero]
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                    ^
   include/linux/avf/virtchnl.h:619:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     619 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_pf_event);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:619:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_pf_event' is not an integer constant
     619 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_pf_event);
         |                               ^~~~~~~~~~~~~~~~~
   include/linux/avf/virtchnl.h:147:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                                     ^
   include/linux/avf/virtchnl.h:147:36: warning: division by zero [-Wdiv-by-zero]
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                    ^
   include/linux/avf/virtchnl.h:640:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     640 | VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_iwarp_qv_info);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:640:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_iwarp_qv_info' is not an integer constant
     640 | VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_iwarp_qv_info);
         |                               ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/avf/virtchnl.h:147:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                                     ^
   include/linux/avf/virtchnl.h:147:36: warning: division by zero [-Wdiv-by-zero]
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                    ^
   include/linux/avf/virtchnl.h:647:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     647 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_iwarp_qvlist_info);
         | ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/avf/virtchnl.h:647:31: error: enumerator value for 'virtchnl_static_assert_virtchnl_iwarp_qvlist_info' is not an integer constant
     647 | VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_iwarp_qvlist_info);
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/avf/virtchnl.h:147:53: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
     147 |  { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
         |                                                     ^

vim +/virtchnl_static_assert_virtchnl_filter +577 include/linux/avf/virtchnl.h

3872c8d44c2e48 include/linux/avf/virtchnl.h                      Harshitha Ramamurthy                       2018-01-23  576  
3872c8d44c2e48 include/linux/avf/virtchnl.h                      Harshitha Ramamurthy                       2018-01-23 @577  VIRTCHNL_CHECK_STRUCT_LEN(272, virtchnl_filter);
3872c8d44c2e48 include/linux/avf/virtchnl.h                      Harshitha Ramamurthy                       2018-01-23  578  
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  579  /* VIRTCHNL_OP_EVENT
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  580   * PF sends this message to inform the VF driver of events that may affect it.
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  581   * No direct response is expected from the VF, though it may generate other
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  582   * messages in response to this one.
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  583   */
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  584  enum virtchnl_event_codes {
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  585  	VIRTCHNL_EVENT_UNKNOWN = 0,
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  586  	VIRTCHNL_EVENT_LINK_CHANGE,
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  587  	VIRTCHNL_EVENT_RESET_IMPENDING,
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  588  	VIRTCHNL_EVENT_PF_DRIVER_CLOSE,
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  589  };
ff3f4cc267f6f3 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  590  
ff3f4cc267f6f3 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  591  #define PF_EVENT_SEVERITY_INFO		0
ff3f4cc267f6f3 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  592  #define PF_EVENT_SEVERITY_CERTAIN_DOOM	255
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  593  
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  594  struct virtchnl_pf_event {
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  595  	enum virtchnl_event_codes event;
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  596  	union {
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  597  		/* If the PF driver does not support the new speed reporting
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  598  		 * capabilities then use link_event else use link_event_adv to
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  599  		 * get the speed and link information. The ability to understand
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  600  		 * new speeds is indicated by setting the capability flag
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  601  		 * VIRTCHNL_VF_CAP_ADV_LINK_SPEED in vf_cap_flags parameter
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  602  		 * in virtchnl_vf_resource struct and can be used to determine
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  603  		 * which link event struct to use below.
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  604  		 */
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  605  		struct {
ff3f4cc267f6f3 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  606  			enum virtchnl_link_speed link_speed;
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  607  			bool link_status;
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  608  		} link_event;
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  609  		struct {
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  610  			/* link_speed provided in Mbps */
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  611  			u32 link_speed;
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  612  			u8 link_status;
16fc087b9cb22c include/linux/avf/virtchnl.h                      Yashaswini Raghuram Prathivadi Bhayankaram 2018-08-10  613  		} link_event_adv;
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  614  	} event_data;
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  615  
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  616  	int severity;
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  617  };
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose                                  2013-12-21  618  
73556269aab30c include/linux/avf/virtchnl.h                      Sridhar Samudrala                          2017-05-11 @619  VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_pf_event);
73556269aab30c include/linux/avf/virtchnl.h                      Sridhar Samudrala                          2017-05-11  620  
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  621  /* VIRTCHNL_OP_CONFIG_IWARP_IRQ_MAP
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  622   * VF uses this message to request PF to map IWARP vectors to IWARP queues.
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  623   * The request for this originates from the VF IWARP driver through
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  624   * a client interface between VF LAN and VF IWARP driver.
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  625   * A vector could have an AEQ and CEQ attached to it although
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  626   * there is a single AEQ per VF IWARP instance in which case
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  627   * most vectors will have an INVALID_IDX for aeq and valid idx for ceq.
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  628   * There will never be a case where there will be multiple CEQs attached
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  629   * to a single vector.
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  630   * PF configures interrupt mapping and returns status.
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  631   */
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  632  
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  633  struct virtchnl_iwarp_qv_info {
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  634  	u32 v_idx; /* msix_vector */
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  635  	u16 ceq_idx;
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  636  	u16 aeq_idx;
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  637  	u8 itr_idx;
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  638  };
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  639  
73556269aab30c include/linux/avf/virtchnl.h                      Sridhar Samudrala                          2017-05-11 @640  VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_iwarp_qv_info);
73556269aab30c include/linux/avf/virtchnl.h                      Sridhar Samudrala                          2017-05-11  641  
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  642  struct virtchnl_iwarp_qvlist_info {
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  643  	u32 num_vectors;
310a2ad92e3fd9 include/linux/avf/virtchnl.h                      Jesse Brandeburg                           2017-05-11  644  	struct virtchnl_iwarp_qv_info qv_info[1];
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  645  };
ed0e894de7c133 drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Mitch Williams                             2017-01-24  646  
73556269aab30c include/linux/avf/virtchnl.h                      Sridhar Samudrala                          2017-05-11 @647  VIRTCHNL_CHECK_STRUCT_LEN(16, virtchnl_iwarp_qvlist_info);
73556269aab30c include/linux/avf/virtchnl.h                      Sridhar Samudrala                          2017-05-11  648  

:::::: The code at line 577 was first introduced by commit
:::::: 3872c8d44c2e489bcce0c743e808a4135e8da228 virtchnl: Add filter data structures

:::::: TO: Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>
:::::: CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60721 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-20 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 12:27 [linux-next:master 2025/3314] include/linux/avf/virtchnl.h:577:32: error: enumerator value for 'virtchnl_static_assert_virtchnl_filter' is not an integer constant kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).