lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112080049.6zargMrt-lkp@intel.com>
Date:   Wed, 8 Dec 2021 00:11:10 +0800
From:   kernel test robot <lkp@...el.com>
To:     Gaurav Kashyap <quic_gaurkash@...cinc.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Eric Biggers <ebiggers@...gle.com>
Subject: [fscrypt:wip-wrapped-keys 7/13]
 drivers/soc/qcom/qti-ice-hwkm.c:111:16: error: expected declaration
 specifiers or '...' before string constant

tree:   https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git wip-wrapped-keys
head:   542d99089e0c7a68b7743697390dafa96f4960b1
commit: 832a5757ce98f0f3e739ffaa6434bf8e8cdc5e0a [7/13] soc: qcom: add HWKM library for storage encryption
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20211208/202112080049.6zargMrt-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git/commit/?id=832a5757ce98f0f3e739ffaa6434bf8e8cdc5e0a
        git remote add fscrypt https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git
        git fetch --no-tags fscrypt wip-wrapped-keys
        git checkout 832a5757ce98f0f3e739ffaa6434bf8e8cdc5e0a
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

      64 |                 qti_ice_hwkm_writel(mmio->ice_hwkm_mmio, 0x7,
         |                 ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/swab.h:5,
                    from arch/arm/include/asm/opcodes.h:86,
                    from arch/arm/include/asm/bug.h:7,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/current.h:5,
                    from arch/arm/include/asm/current.h:50,
                    from include/linux/sched.h:12,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/qti-ice-common.h:10,
                    from drivers/soc/qcom/qti-ice-hwkm.c:8:
   drivers/soc/qcom/qti-ice-hwkm.c:80:35: error: 'const struct ice_mmio_data' has no member named 'ice_hwkm_mmio'; did you mean 'ice_mmio'?
      80 |         qti_ice_hwkm_clearb(mmio->ice_hwkm_mmio, QTI_HWKM_ICE_RG_TZ_KM_CTL,
         |                                   ^~~~~~~~~~~~~
   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:89:21: note: in expansion of macro '__le32_to_cpu'
      89 | #define le32_to_cpu __le32_to_cpu
         |                     ^~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-regs.h:239:10: note: in expansion of macro 'readl_relaxed'
     239 |         (readl_relaxed(hwkm_mmio + (reg)))
         |          ^~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-regs.h:248:19: note: in expansion of macro 'qti_ice_hwkm_readl'
     248 |         u32 val = qti_ice_hwkm_readl(hwkm_mmio, reg);   \
         |                   ^~~~~~~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-hwkm.c:80:9: note: in expansion of macro 'qti_ice_hwkm_clearb'
      80 |         qti_ice_hwkm_clearb(mmio->ice_hwkm_mmio, QTI_HWKM_ICE_RG_TZ_KM_CTL,
         |         ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/io.h:13,
                    from drivers/soc/qcom/qti-ice-regs.h:9,
                    from drivers/soc/qcom/qti-ice-hwkm.c:9:
   drivers/soc/qcom/qti-ice-hwkm.c:80:35: error: 'const struct ice_mmio_data' has no member named 'ice_hwkm_mmio'; did you mean 'ice_mmio'?
      80 |         qti_ice_hwkm_clearb(mmio->ice_hwkm_mmio, QTI_HWKM_ICE_RG_TZ_KM_CTL,
         |                                   ^~~~~~~~~~~~~
   arch/arm/include/asm/io.h:300:75: note: in definition of macro 'writel_relaxed'
     300 | #define writel_relaxed(v,c)     __raw_writel((__force u32) cpu_to_le32(v),c)
         |                                                                           ^
   drivers/soc/qcom/qti-ice-regs.h:250:9: note: in expansion of macro 'qti_ice_hwkm_writel'
     250 |         qti_ice_hwkm_writel(hwkm_mmio, val, reg);       \
         |         ^~~~~~~~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-hwkm.c:80:9: note: in expansion of macro 'qti_ice_hwkm_clearb'
      80 |         qti_ice_hwkm_clearb(mmio->ice_hwkm_mmio, QTI_HWKM_ICE_RG_TZ_KM_CTL,
         |         ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/swab.h:5,
                    from arch/arm/include/asm/opcodes.h:86,
                    from arch/arm/include/asm/bug.h:7,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/current.h:5,
                    from arch/arm/include/asm/current.h:50,
                    from include/linux/sched.h:12,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/qti-ice-common.h:10,
                    from drivers/soc/qcom/qti-ice-hwkm.c:8:
   drivers/soc/qcom/qti-ice-hwkm.c:84:33: error: 'const struct ice_mmio_data' has no member named 'ice_hwkm_mmio'; did you mean 'ice_mmio'?
      84 |         qti_ice_hwkm_setb(mmio->ice_hwkm_mmio,
         |                                 ^~~~~~~~~~~~~
   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:89:21: note: in expansion of macro '__le32_to_cpu'
      89 | #define le32_to_cpu __le32_to_cpu
         |                     ^~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-regs.h:239:10: note: in expansion of macro 'readl_relaxed'
     239 |         (readl_relaxed(hwkm_mmio + (reg)))
         |          ^~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-regs.h:243:19: note: in expansion of macro 'qti_ice_hwkm_readl'
     243 |         u32 val = qti_ice_hwkm_readl(hwkm_mmio, reg);   \
         |                   ^~~~~~~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-hwkm.c:84:9: note: in expansion of macro 'qti_ice_hwkm_setb'
      84 |         qti_ice_hwkm_setb(mmio->ice_hwkm_mmio,
         |         ^~~~~~~~~~~~~~~~~
   In file included from include/linux/io.h:13,
                    from drivers/soc/qcom/qti-ice-regs.h:9,
                    from drivers/soc/qcom/qti-ice-hwkm.c:9:
   drivers/soc/qcom/qti-ice-hwkm.c:84:33: error: 'const struct ice_mmio_data' has no member named 'ice_hwkm_mmio'; did you mean 'ice_mmio'?
      84 |         qti_ice_hwkm_setb(mmio->ice_hwkm_mmio,
         |                                 ^~~~~~~~~~~~~
   arch/arm/include/asm/io.h:300:75: note: in definition of macro 'writel_relaxed'
     300 | #define writel_relaxed(v,c)     __raw_writel((__force u32) cpu_to_le32(v),c)
         |                                                                           ^
   drivers/soc/qcom/qti-ice-regs.h:245:9: note: in expansion of macro 'qti_ice_hwkm_writel'
     245 |         qti_ice_hwkm_writel(hwkm_mmio, val, reg);       \
         |         ^~~~~~~~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-hwkm.c:84:9: note: in expansion of macro 'qti_ice_hwkm_setb'
      84 |         qti_ice_hwkm_setb(mmio->ice_hwkm_mmio,
         |         ^~~~~~~~~~~~~~~~~
   drivers/soc/qcom/qti-ice-hwkm.c: In function 'qti_ice_hwkm_init':
   drivers/soc/qcom/qti-ice-hwkm.c:104:20: error: 'const struct ice_mmio_data' has no member named 'ice_hwkm_mmio'; did you mean 'ice_mmio'?
     104 |         if (!mmio->ice_hwkm_mmio)
         |                    ^~~~~~~~~~~~~
         |                    ice_mmio
   drivers/soc/qcom/qti-ice-hwkm.c: At top level:
>> drivers/soc/qcom/qti-ice-hwkm.c:111:16: error: expected declaration specifiers or '...' before string constant
     111 | MODULE_LICENSE("GPL v2");
         |                ^~~~~~~~


vim +111 drivers/soc/qcom/qti-ice-hwkm.c

   110	
 > 111	MODULE_LICENSE("GPL v2");

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ