All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Mon, 15 Feb 2021 08:51:12 +0800	[thread overview]
Message-ID: <202102150806.ElFySB8d-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-02-15  0:51 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=202102150806.ElFySB8d-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.