All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [l1k:doe 5/11] include/uapi/linux/byteorder/big_endian.h:34:54: error: expected expression before ')' token
Date: Mon, 10 Jul 2023 20:27:53 +0800	[thread overview]
Message-ID: <202307102048.HWSFEWPR-lkp@intel.com> (raw)

tree:   https://github.com/l1k/linux doe
head:   e18cb7292230c20204fcf62e44cdb3bfa5155ac6
commit: 98f7f6bf14dbf5eb3be09d69724a8433dfd2278d [5/11] PCI/CMA: Authenticate devices on enumeration
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20230710/202307102048.HWSFEWPR-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230710/202307102048.HWSFEWPR-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307102048.HWSFEWPR-lkp@intel.com/

All errors (new ones prefixed by >>):

         |                                     ^
   include/uapi/linux/const.h:20:26: note: in definition of macro '__AC'
      20 | #define __AC(X,Y)       (X##Y)
         |                          ^
   include/uapi/linux/const.h:25:26: note: in expansion of macro '_AC'
      25 | #define _UL(x)          (_AC(x, UL))
         |                          ^~~
   include/vdso/const.h:7:26: note: in expansion of macro '_UL'
       7 | #define UL(x)           (_UL(x))
         |                          ^~~
   include/vdso/bits.h:7:34: note: in expansion of macro 'UL'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                  ^~
   lib/spdm_requester.c:93:41: note: in expansion of macro 'BIT'
      93 | #define SPDM_ASYM_ECDSA_ECC_NIST_P256   BIT(4)
         |                                         ^~~
   lib/spdm_requester.c:117:41: note: in expansion of macro 'SPDM_ASYM_ECDSA_ECC_NIST_P256'
     117 | #define SPDM_ASYM_ECDSA                 SPDM_ASYM_ECDSA_ECC_NIST_P256 | \
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   lib/spdm_requester.c:132:41: note: in expansion of macro 'SPDM_ASYM_ECDSA'
     132 |                                         SPDM_ASYM_ECDSA 0)
         |                                         ^~~~~~~~~~~~~~~
   In file included from include/linux/bits.h:6:
   include/vdso/bits.h:7:40: error: expected ')' before '<<' token
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                        ^~
   lib/spdm_requester.c:93:41: note: in expansion of macro 'BIT'
      93 | #define SPDM_ASYM_ECDSA_ECC_NIST_P256   BIT(4)
         |                                         ^~~
   lib/spdm_requester.c:117:41: note: in expansion of macro 'SPDM_ASYM_ECDSA_ECC_NIST_P256'
     117 | #define SPDM_ASYM_ECDSA                 SPDM_ASYM_ECDSA_ECC_NIST_P256 | \
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   lib/spdm_requester.c:132:41: note: in expansion of macro 'SPDM_ASYM_ECDSA'
     132 |                                         SPDM_ASYM_ECDSA 0)
         |                                         ^~~~~~~~~~~~~~~
   lib/spdm_requester.c:146:1: warning: empty declaration
     146 | } __packed;
         | ^
   lib/spdm_requester.c: In function '__spdm_exchange':
   lib/spdm_requester.c:511:29: error: invalid application of 'sizeof' to incomplete type 'struct spdm_header'
     511 |         if (length < sizeof(struct spdm_header))
         |                             ^~~~~~
   lib/spdm_requester.c:514:21: error: invalid use of undefined type 'struct spdm_header'
     514 |         if (response->code == SPDM_ERROR)
         |                     ^~
   lib/spdm_requester.c:517:21: error: invalid use of undefined type 'struct spdm_header'
     517 |         if (response->code != (request->code & ~SPDM_REQ)) {
         |                     ^~
   lib/spdm_requester.c:517:39: error: invalid use of undefined type 'const struct spdm_header'
     517 |         if (response->code != (request->code & ~SPDM_REQ)) {
         |                                       ^~
   In file included from lib/spdm_requester.c:15:
   lib/spdm_requester.c:520:33: error: invalid use of undefined type 'struct spdm_header'
     520 |                         response->code, request->code);
         |                                 ^~
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   lib/spdm_requester.c:518:17: note: in expansion of macro 'dev_err'
     518 |                 dev_err(spdm_state->dev,
         |                 ^~~~~~~
   lib/spdm_requester.c:520:48: error: invalid use of undefined type 'const struct spdm_header'
     520 |                         response->code, request->code);
         |                                                ^~
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   lib/spdm_requester.c:518:17: note: in expansion of macro 'dev_err'
     518 |                 dev_err(spdm_state->dev,
         |                 ^~~~~~~
   lib/spdm_requester.c: In function 'spdm_exchange':
   lib/spdm_requester.c:532:29: error: invalid application of 'sizeof' to incomplete type 'struct spdm_header'
     532 |         if (req_sz < sizeof(struct spdm_header) ||
         |                             ^~~~~~
   lib/spdm_requester.c:533:29: error: invalid application of 'sizeof' to incomplete type 'struct spdm_header'
     533 |             rsp_sz < sizeof(struct spdm_header))
         |                             ^~~~~~
   lib/spdm_requester.c:536:19: error: invalid use of undefined type 'struct spdm_header'
     536 |         req_header->version = spdm_state->version;
         |                   ^~
   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/big_endian.h:14,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/powerpc/include/uapi/asm/byteorder.h:14,
                    from arch/powerpc/include/asm/qspinlock_types.h:6,
                    from arch/powerpc/include/asm/spinlock_types.h:10,
                    from include/linux/spinlock_types_raw.h:7,
                    from include/linux/ratelimit_types.h:7,
                    from include/linux/printk.h:9,
                    from include/asm-generic/bug.h:22,
                    from arch/powerpc/include/asm/bug.h:159,
                    from include/linux/bug.h:5,
                    from arch/powerpc/include/asm/cmpxchg.h:8,
                    from arch/powerpc/include/asm/atomic.h:11,
                    from include/linux/atomic.h:7,
                    from include/linux/rcupdate.h:25,
                    from include/linux/rbtree.h:24,
                    from include/linux/key.h:15,
                    from include/linux/cred.h:13:
   lib/spdm_requester.c: In function 'spdm_negotiate_algs':
>> include/uapi/linux/byteorder/big_endian.h:34:54: error: expected expression before ')' token
      34 | #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
         |                                                      ^
   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:88:21: note: in expansion of macro '__cpu_to_le32'
      88 | #define cpu_to_le32 __cpu_to_le32
         |                     ^~~~~~~~~~~~~
   lib/spdm_requester.c:775:31: note: in expansion of macro 'cpu_to_le32'
     775 |         req->base_asym_algo = cpu_to_le32(SPDM_ASYM_ALGOS);
         |                               ^~~~~~~~~~~
   lib/spdm_requester.c:1379:1: error: expected declaration or statement at end of input
    1379 | MODULE_LICENSE("GPL");
         | ^~~~~~~~~~~~~~
   lib/spdm_requester.c:764:17: warning: unused variable 'length' [-Wunused-variable]
     764 |         int rc, length;
         |                 ^~~~~~
   lib/spdm_requester.c:764:13: warning: unused variable 'rc' [-Wunused-variable]
     764 |         int rc, length;
         |             ^~
   lib/spdm_requester.c:763:16: warning: unused variable 'rsp_sz' [-Wunused-variable]
     763 |         size_t rsp_sz = sizeof(*rsp);
         |                ^~~~~~
   lib/spdm_requester.c:759:37: warning: unused variable 'req_alg_struct' [-Wunused-variable]
     759 |         struct spdm_req_alg_struct *req_alg_struct;
         |                                     ^~~~~~~~~~~~~~
   lib/spdm_requester.c: At top level:
   lib/spdm_requester.c:756:12: warning: 'spdm_negotiate_algs' defined but not used [-Wunused-function]
     756 | static int spdm_negotiate_algs(struct spdm_state *spdm_state,
         |            ^~~~~~~~~~~~~~~~~~~
   lib/spdm_requester.c:712:12: warning: 'spdm_parse_algs' defined but not used [-Wunused-function]
     712 | static int spdm_parse_algs(struct spdm_state *spdm_state)
         |            ^~~~~~~~~~~~~~~
   lib/spdm_requester.c:665:12: warning: 'spdm_start_hash' defined but not used [-Wunused-function]
     665 | static int spdm_start_hash(struct spdm_state *spdm_state,
         |            ^~~~~~~~~~~~~~~
   lib/spdm_requester.c:591:12: warning: 'spdm_get_capabilities' defined but not used [-Wunused-function]
     591 | static int spdm_get_capabilities(struct spdm_state *spdm_state,
         |            ^~~~~~~~~~~~~~~~~~~~~
   lib/spdm_requester.c:546:12: warning: 'spdm_get_version' defined but not used [-Wunused-function]
     546 | static int spdm_get_version(struct spdm_state *spdm_state,
         |            ^~~~~~~~~~~~~~~~


vim +34 include/uapi/linux/byteorder/big_endian.h

5921e6f8809b16 David Howells 2012-10-13  15  
5921e6f8809b16 David Howells 2012-10-13  16  #define __constant_htonl(x) ((__force __be32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  17  #define __constant_ntohl(x) ((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  18  #define __constant_htons(x) ((__force __be16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  19  #define __constant_ntohs(x) ((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  20  #define __constant_cpu_to_le64(x) ((__force __le64)___constant_swab64((x)))
5921e6f8809b16 David Howells 2012-10-13  21  #define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x))
5921e6f8809b16 David Howells 2012-10-13  22  #define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  23  #define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x))
5921e6f8809b16 David Howells 2012-10-13  24  #define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x)))
5921e6f8809b16 David Howells 2012-10-13  25  #define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x))
5921e6f8809b16 David Howells 2012-10-13  26  #define __constant_cpu_to_be64(x) ((__force __be64)(__u64)(x))
5921e6f8809b16 David Howells 2012-10-13  27  #define __constant_be64_to_cpu(x) ((__force __u64)(__be64)(x))
5921e6f8809b16 David Howells 2012-10-13  28  #define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  29  #define __constant_be32_to_cpu(x) ((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  30  #define __constant_cpu_to_be16(x) ((__force __be16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  31  #define __constant_be16_to_cpu(x) ((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  32  #define __cpu_to_le64(x) ((__force __le64)__swab64((x)))
5921e6f8809b16 David Howells 2012-10-13  33  #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
5921e6f8809b16 David Howells 2012-10-13 @34  #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  35  #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
5921e6f8809b16 David Howells 2012-10-13  36  #define __cpu_to_le16(x) ((__force __le16)__swab16((x)))
5921e6f8809b16 David Howells 2012-10-13  37  #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
5921e6f8809b16 David Howells 2012-10-13  38  #define __cpu_to_be64(x) ((__force __be64)(__u64)(x))
5921e6f8809b16 David Howells 2012-10-13  39  #define __be64_to_cpu(x) ((__force __u64)(__be64)(x))
5921e6f8809b16 David Howells 2012-10-13  40  #define __cpu_to_be32(x) ((__force __be32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  41  #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  42  #define __cpu_to_be16(x) ((__force __be16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  43  #define __be16_to_cpu(x) ((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  44  

:::::: The code at line 34 was first introduced by commit
:::::: 5921e6f8809b1616932ca4afd40fe449faa8fd88 UAPI: (Scripted) Disintegrate include/linux/byteorder

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

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

                 reply	other threads:[~2023-07-10 12:28 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=202307102048.HWSFEWPR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=lukas@wunner.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.