All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:6.1-1.0.x-imx 4853/9845] drivers/staging/fsl_qbman/bman_config.c:191:9: error: implicit declaration of function 'out_be32'
Date: Thu, 20 Apr 2023 18:37:19 +0800	[thread overview]
Message-ID: <202304201827.j6bIDsPR-lkp@intel.com> (raw)

tree:   https://github.com/Freescale/linux-fslc 6.1-1.0.x-imx
head:   897d73a656fe33d0c4549c5de1d07797f99d6871
commit: fdb22c167ab293a7f792b3f46830be8ba69bda46 [4853/9845] Merge branch 'net/next' into next
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20230420/202304201827.j6bIDsPR-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.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/fdb22c167ab293a7f792b3f46830be8ba69bda46
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc 6.1-1.0.x-imx
        git checkout fdb22c167ab293a7f792b3f46830be8ba69bda46
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/staging/fsl_qbman/ drivers/video/fbdev/mxc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304201827.j6bIDsPR-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/bman_private.h:32,
                    from drivers/staging/fsl_qbman/bman_config.c:33:
   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:17: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     469 |                 } __packed ern;
         |                 ^
   include/linux/fsl_qman.h:468:38: 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:17: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     486 |                 } __packed dcern;
         |                 ^
   include/linux/fsl_qman.h:485:38: 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:1681:1: error: alignment 1 of 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' is less than 8 [-Werror=packed-not-aligned]
    1681 | } __packed;
         | ^
   include/linux/fsl_qman.h:1679:22: error: 'fd' offset 14 in 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' isn't aligned to 8 [-Werror=packed-not-aligned]
    1679 |         struct qm_fd fd;
         |                      ^~
   drivers/staging/fsl_qbman/bman_config.c: In function '__bm_in':
   drivers/staging/fsl_qbman/bman_config.c:187:16: error: implicit declaration of function 'in_be32' [-Werror=implicit-function-declaration]
     187 |         return in_be32((void *)bm + offset);
         |                ^~~~~~~
   drivers/staging/fsl_qbman/bman_config.c: In function '__bm_out':
>> drivers/staging/fsl_qbman/bman_config.c:191:9: error: implicit declaration of function 'out_be32' [-Werror=implicit-function-declaration]
     191 |         out_be32((void *)bm + offset, val);
         |         ^~~~~~~~
   drivers/staging/fsl_qbman/bman_config.c: At top level:
   drivers/staging/fsl_qbman/bman_config.c:340:12: error: no previous prototype for 'bman_init_early' [-Werror=missing-prototypes]
     340 | __init int bman_init_early(void)
         |            ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/fsl_usdpaa.h:17,
                    from drivers/staging/fsl_qbman/dpa_sys.h:66,
                    from drivers/staging/fsl_qbman/qman_private.h:32,
                    from drivers/staging/fsl_qbman/qman_config.c:33:
   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:17: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     469 |                 } __packed ern;
         |                 ^
   include/linux/fsl_qman.h:468:38: 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:17: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     486 |                 } __packed dcern;
         |                 ^
   include/linux/fsl_qman.h:485:38: 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:1681:1: error: alignment 1 of 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' is less than 8 [-Werror=packed-not-aligned]
    1681 | } __packed;
         | ^
   include/linux/fsl_qman.h:1679:22: error: 'fd' offset 14 in 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' isn't aligned to 8 [-Werror=packed-not-aligned]
    1679 |         struct qm_fd fd;
         |                      ^~
   drivers/staging/fsl_qbman/qman_config.c: In function '__qm_in':
>> drivers/staging/fsl_qbman/qman_config.c:317:16: error: implicit declaration of function 'in_be32' [-Werror=implicit-function-declaration]
     317 |         return in_be32((void *)qm + offset);
         |                ^~~~~~~
   drivers/staging/fsl_qbman/qman_config.c: In function '__qm_out':
   drivers/staging/fsl_qbman/qman_config.c:321:9: error: implicit declaration of function 'out_be32' [-Werror=implicit-function-declaration]
     321 |         out_be32((void *)qm + offset, val);
         |         ^~~~~~~~
   drivers/staging/fsl_qbman/qman_config.c: In function 'qm_init_pfdr':
   drivers/staging/fsl_qbman/qman_config.c:428:9: error: implicit declaration of function 'lwsync' [-Werror=implicit-function-declaration]
     428 |         lwsync();
         |         ^~~~~~
   drivers/staging/fsl_qbman/qman_config.c: In function 'get_qman_fqd_size':
   drivers/staging/fsl_qbman/qman_config.c:482:8: error: old-style function definition [-Werror=old-style-definition]
     482 | size_t get_qman_fqd_size()
         |        ^~~~~~~~~~~~~~~~~
   drivers/staging/fsl_qbman/qman_config.c: In function 'parse_mem_property':
   drivers/staging/fsl_qbman/qman_config.c:514:17: error: implicit declaration of function 'flush_dcache_range'; did you mean 'flush_cache_range'? [-Werror=implicit-function-declaration]
     514 |                 flush_dcache_range((unsigned long)tmpp,
         |                 ^~~~~~~~~~~~~~~~~~
         |                 flush_cache_range
   drivers/staging/fsl_qbman/qman_config.c: At top level:
   drivers/staging/fsl_qbman/qman_config.c:599:12: error: no previous prototype for 'qman_init_early' [-Werror=missing-prototypes]
     599 | __init int qman_init_early(void)
         |            ^~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
         |                                                    ^
   drivers/staging/fsl_qbman/bman_low.h:330:9: note: in expansion of macro 'bm_cl_out'
     330 |         bm_cl_out(RCR_PI, RCR_PTR2IDX(rcr->cursor));
         |         ^~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function 'bm_rcr_cci_update':
   drivers/staging/fsl_qbman/bman_low.h:91:56: error: 'BM_REG_RCR_CI_CINH' undeclared (first use in this function)
      91 | #define bm_in(reg)              __bm_in(&portal->addr, BM_REG_##reg)
         |                                                        ^~~~~~~
   include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:95:21: note: in expansion of macro '__be32_to_cpu'
      95 | #define be32_to_cpu __be32_to_cpu
         |                     ^~~~~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:91:33: note: in expansion of macro '__bm_in'
      91 | #define bm_in(reg)              __bm_in(&portal->addr, BM_REG_##reg)
         |                                 ^~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:358:19: note: in expansion of macro 'bm_in'
     358 |         rcr->ci = bm_in(RCR_CI_CINH) & (BM_RCR_SIZE - 1);
         |                   ^~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function 'bm_rcr_cce_prefetch':
   drivers/staging/fsl_qbman/bman_low.h:105:61: error: 'BM_CL_RCR_CI_CENA' undeclared (first use in this function)
     105 | #define bm_cl_touch_ro(reg) __bm_cl_touch_ro(&portal->addr, BM_CL_##reg##_CENA)
         |                                                             ^~~~~~
   drivers/staging/fsl_qbman/bman_low.h:95:58: note: in definition of macro '__bm_cl_touch_ro'
      95 | #define __bm_cl_touch_ro(bm, o) dcbt_ro((bm)->addr_ce + (o))
         |                                                          ^
   drivers/staging/fsl_qbman/bman_low.h:368:9: note: in expansion of macro 'bm_cl_touch_ro'
     368 |         bm_cl_touch_ro(RCR_CI);
         |         ^~~~~~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function 'bm_rcr_cce_update':
   drivers/staging/fsl_qbman/bman_low.h:107:55: error: 'BM_CL_RCR_CI_CENA' undeclared (first use in this function)
     107 | #define bm_cl_in(reg)       __bm_cl_in(&portal->addr, BM_CL_##reg##_CENA)
         |                                                       ^~~~~~
   include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:95:21: note: in expansion of macro '__be32_to_cpu'
      95 | #define be32_to_cpu __be32_to_cpu
         |                     ^~~~~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:107:29: note: in expansion of macro '__bm_cl_in'
     107 | #define bm_cl_in(reg)       __bm_cl_in(&portal->addr, BM_CL_##reg##_CENA)
         |                             ^~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:376:19: note: in expansion of macro 'bm_cl_in'
     376 |         rcr->ci = bm_cl_in(RCR_CI) & (BM_RCR_SIZE - 1);
         |                   ^~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function 'bm_rcr_set_ithresh':
   drivers/staging/fsl_qbman/bman_low.h:92:57: error: 'BM_REG_RCR_ITR' undeclared (first use in this function)
      92 | #define bm_out(reg, val)        __bm_out(&portal->addr, BM_REG_##reg, val)
         |                                                         ^~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:90:63: note: in definition of macro '__bm_out'
      90 |                                              (bm)->addr_ci + (o));
         |                                                               ^
   drivers/staging/fsl_qbman/bman_low.h:393:9: note: in expansion of macro 'bm_out'
     393 |         bm_out(RCR_ITR, ithresh);
         |         ^~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function 'bm_mc_init':
   drivers/staging/fsl_qbman/bman_low.h:415:41: error: 'BM_CL_CR' undeclared (first use in this function)
     415 |         mc->cr = portal->addr.addr_ce + BM_CL_CR;
         |                                         ^~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:416:41: error: 'BM_CL_RR0' undeclared (first use in this function)
     416 |         mc->rr = portal->addr.addr_ce + BM_CL_RR0;
         |                                         ^~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function 'bm_isr_bscn_mask':
   drivers/staging/fsl_qbman/bman_low.h:505:23: error: implicit declaration of function 'BM_REG_SCN' [-Werror=implicit-function-declaration]
     505 | #define SCN_REG(bpid) BM_REG_SCN((bpid) / 32)
         |                       ^~~~~~~~~~
   include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:95:21: note: in expansion of macro '__be32_to_cpu'
      95 | #define be32_to_cpu __be32_to_cpu
         |                     ^~~~~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:513:15: note: in expansion of macro '__bm_in'
     513 |         val = __bm_in(&portal->addr, SCN_REG(bpid));
         |               ^~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:513:38: note: in expansion of macro 'SCN_REG'
     513 |         val = __bm_in(&portal->addr, SCN_REG(bpid));
         |                                      ^~~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function '__bm_isr_read':
   drivers/staging/fsl_qbman/bman_low.h:526:39: error: 'BM_REG_ISR' undeclared (first use in this function)
     526 |         return __bm_in(&portal->addr, BM_REG_ISR + (n << 2));
         |                                       ^~~~~~~~~~
   include/uapi/linux/swab.h:115:54: note: in definition of macro '__swab32'
     115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:95:21: note: in expansion of macro '__be32_to_cpu'
      95 | #define be32_to_cpu __be32_to_cpu
         |                     ^~~~~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:526:16: note: in expansion of macro '__bm_in'
     526 |         return __bm_in(&portal->addr, BM_REG_ISR + (n << 2));
         |                ^~~~~~~
   drivers/staging/fsl_qbman/bman_low.h: In function '__bm_isr_write':
   drivers/staging/fsl_qbman/bman_low.h:536:33: error: 'BM_REG_ISR' undeclared (first use in this function)
     536 |         __bm_out(&portal->addr, BM_REG_ISR + (n << 2), val);
         |                                 ^~~~~~~~~~
   drivers/staging/fsl_qbman/bman_low.h:90:63: note: in definition of macro '__bm_out'
      90 |                                              (bm)->addr_ci + (o));
         |                                                               ^
   drivers/staging/fsl_qbman/fsl_usdpaa_irq.c: In function 'usdpaa_irq_release':
>> drivers/staging/fsl_qbman/fsl_usdpaa_irq.c:84:17: error: implicit declaration of function 'out_be32' [-Werror=implicit-function-declaration]
      84 |                 out_be32(ctx->inhibit_addr, 0x1);
         |                 ^~~~~~~~
   cc1: all warnings being treated as errors
--
   In file included from include/linux/fsl_usdpaa.h:17,
                    from drivers/staging/fsl_qbman/dpa_sys.h:66,
                    from drivers/staging/fsl_qbman/qman_private.h:32,
                    from drivers/staging/fsl_qbman/qman_debugfs.c:31:
   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:17: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     469 |                 } __packed ern;
         |                 ^
   include/linux/fsl_qman.h:468:38: 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:17: error: alignment 1 of 'struct <anonymous>' is less than 8 [-Werror=packed-not-aligned]
     486 |                 } __packed dcern;
         |                 ^
   include/linux/fsl_qman.h:485:38: 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:1681:1: error: alignment 1 of 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' is less than 8 [-Werror=packed-not-aligned]
    1681 | } __packed;
         | ^
   include/linux/fsl_qman.h:1679:22: error: 'fd' offset 14 in 'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' isn't aligned to 8 [-Werror=packed-not-aligned]
    1679 |         struct qm_fd fd;
         |                      ^~
   drivers/staging/fsl_qbman/qman_debugfs.c: In function 'qman_ccsrmempeek':
>> drivers/staging/fsl_qbman/qman_debugfs.c:926:16: error: implicit declaration of function 'in_be32' [-Werror=implicit-function-declaration]
     926 |         *val = in_be32(addr);
         |                ^~~~~~~
   cc1: all warnings being treated as errors


vim +/out_be32 +191 drivers/staging/fsl_qbman/bman_config.c

4c43588a2cdb7e Madalin Bucur 2020-02-27  184  
4c43588a2cdb7e Madalin Bucur 2020-02-27  185  static inline u32 __bm_in(struct bman *bm, u32 offset)
4c43588a2cdb7e Madalin Bucur 2020-02-27  186  {
4c43588a2cdb7e Madalin Bucur 2020-02-27  187  	return in_be32((void *)bm + offset);
4c43588a2cdb7e Madalin Bucur 2020-02-27  188  }
4c43588a2cdb7e Madalin Bucur 2020-02-27  189  static inline void __bm_out(struct bman *bm, u32 offset, u32 val)
4c43588a2cdb7e Madalin Bucur 2020-02-27  190  {
4c43588a2cdb7e Madalin Bucur 2020-02-27 @191  	out_be32((void *)bm + offset, val);
4c43588a2cdb7e Madalin Bucur 2020-02-27  192  }
4c43588a2cdb7e Madalin Bucur 2020-02-27  193  #define bm_in(reg)		__bm_in(bm, REG_##reg)
4c43588a2cdb7e Madalin Bucur 2020-02-27  194  #define bm_out(reg, val)	__bm_out(bm, REG_##reg, val)
4c43588a2cdb7e Madalin Bucur 2020-02-27  195  

:::::: The code at line 191 was first introduced by commit
:::::: 4c43588a2cdb7e8b01447a8a1d523cc6886e0e4c staging/fsl_qbman: add LSDK-19.09-V4.14 SDK DPAA QBMan files

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

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-04-20 10:37 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=202304201827.j6bIDsPR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=otavio@ossystems.com.br \
    /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.