All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:pr/256 7470/16397] drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.h:506:23: error: type qualifiers ignored on function return type
@ 2021-02-15  0:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-15  0:51 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/Freescale/linux-fslc pr/256
head:   833dfde20a84e72abea15e51e24b5027091c864c
commit: 7dcadb8d9273dd1ce30f55e8b4489f7c195d44c7 [7470/16397] fsl_qbman: Framework for enabling Link status notification
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Freescale/linux-fslc/commit/7dcadb8d9273dd1ce30f55e8b4489f7c195d44c7
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc pr/256
        git checkout 7dcadb8d9273dd1ce30f55e8b4489f7c195d44c7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   In file included from include/linux/fsl_usdpaa.h:17,
                    from drivers/staging/fsl_qbman/dpa_sys.h:66,
                    from drivers/staging/fsl_qbman/fsl_usdpaa.c:28:
   include/linux/fsl_qman.h:415:1: error: alignment 1 of 'struct qm_eqcr_entry' is less than 8 [-Werror=packed-not-aligned]
     415 | } __packed;
         | ^
   include/linux/fsl_qman.h:469:3: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     469 |   } __packed ern;
         |   ^
   include/linux/fsl_qman.h:468:17: error: 'fd' offset 15 in 'struct <anonymous>' isn't aligned to 8 [-Werror=packed-not-aligned]
     468 |    struct qm_fd fd;
         |                 ^~
   include/linux/fsl_qman.h:486:3: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     486 |   } __packed dcern;
         |   ^
   include/linux/fsl_qman.h:485:17: error: 'fd' offset 15 in 'struct <anonymous>' isn't aligned to 8 [-Werror=packed-not-aligned]
     485 |    struct qm_fd fd;
         |                 ^~
   include/linux/fsl_qman.h:1679:1: error: alignment 1 of 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' is less than 8 [-Werror=packed-not-aligned]
    1679 | } __packed;
         | ^
   include/linux/fsl_qman.h:1677:15: error: 'fd' offset 14 in 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' isn't aligned to 8 [-Werror=packed-not-aligned]
    1677 |  struct qm_fd fd;
         |               ^~
   In file included from drivers/staging/fsl_qbman/fsl_usdpaa.c:31:
   drivers/staging/fsl_qbman/qman_low.h: In function 'qm_shutdown_fq':
   drivers/staging/fsl_qbman/qman_low.h:1291:8: error: variable 'dequeue_wq' set but not used [-Werror=unused-but-set-variable]
    1291 |    u16 dequeue_wq = 0;
         |        ^~~~~~~~~~
   In file included from drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_common.h:40,
                    from drivers/staging/fsl_qbman/fsl_usdpaa.c:38:
   drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.h: At top level:
>> drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.h:506:23: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
     506 | static inline ssize_t __const __must_check __attribute__((nonnull))
         |                       ^~~~~~~
   drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.h:512:23: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
     512 | static inline ssize_t __const __must_check __attribute__((nonnull))
         |                       ^~~~~~~
   drivers/staging/fsl_qbman/fsl_usdpaa.c:398:6: error: no previous prototype for 'dbci_portal' [-Werror=missing-prototypes]
     398 | void dbci_portal(void *addr)
         |      ^~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +506 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.h

7fab630ae39d23 Madalin Bucur 2017-05-10  505  
7fab630ae39d23 Madalin Bucur 2017-05-10 @506  static inline ssize_t __const __must_check __attribute__((nonnull))
7fab630ae39d23 Madalin Bucur 2017-05-10  507  dpa_fd_length(const struct qm_fd *fd)
7fab630ae39d23 Madalin Bucur 2017-05-10  508  {
7fab630ae39d23 Madalin Bucur 2017-05-10  509  	return fd->length20;
7fab630ae39d23 Madalin Bucur 2017-05-10  510  }
7fab630ae39d23 Madalin Bucur 2017-05-10  511  

:::::: The code at line 506 was first introduced by commit
:::::: 7fab630ae39d2305c71f6ae6311f240ff9348404 dpa: SDK DPAA 1.x Ethernet driver

:::::: TO: Madalin Bucur <madalin.bucur@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>

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

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

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

only message in thread, other threads:[~2021-02-15  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15  0:51 [freescale-fslc:pr/256 7470/16397] drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth.h:506:23: error: type qualifiers ignored on function return type 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.