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: <202202121626.jCM5m8Oy-lkp@intel.com>
Date:   Sat, 12 Feb 2022 18:39:12 +0800
From:   kernel test robot <lkp@...el.com>
To:     Felix Fietkau <nbd@....name>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [nbd168-wireless:mtk-flow-offload 3/9]
 drivers/net/ethernet/mediatek/mtk_wed.h:33:20: error: no member named 'hw'
 in 'struct mtk_wed_device'

tree:   https://github.com/nbd168/wireless mtk-flow-offload
head:   1ba2137278dd5c4747b6e43be7aae4e94fb9c76e
commit: b3eab9db70af66f3ce1415f2e51750b15df268c9 [3/9] net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)
config: arm64-randconfig-r022-20220211 (https://download.01.org/0day-ci/archive/20220212/202202121626.jCM5m8Oy-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c7eb84634519e6497be42f5fe323f9a04ed67127)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/nbd168/wireless/commit/b3eab9db70af66f3ce1415f2e51750b15df268c9
        git remote add nbd168-wireless https://github.com/nbd168/wireless
        git fetch --no-tags nbd168-wireless mtk-flow-offload
        git checkout b3eab9db70af66f3ce1415f2e51750b15df268c9
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/

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 >>):

   In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:27:
>> drivers/net/ethernet/mediatek/mtk_wed.h:33:20: error: no member named 'hw' in 'struct mtk_wed_device'
           regmap_write(dev->hw->regs, reg, val);
                        ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:41:19: error: no member named 'hw' in 'struct mtk_wed_device'
           regmap_read(dev->hw->regs, reg, &val);
                       ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:49:19: error: no member named 'hw' in 'struct mtk_wed_device'
           writel(val, dev->hw->wdma + reg);
                       ~~~  ^
   arch/arm64/include/asm/io.h:142:56: note: expanded from macro 'writel'
   #define writel(v,c)             ({ __iowmb(); writel_relaxed((v),(c)); })
                                                                     ^
   arch/arm64/include/asm/io.h:127:78: note: expanded from macro 'writel_relaxed'
   #define writel_relaxed(v,c)     ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
                                                                                    ^
   In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:27:
   drivers/net/ethernet/mediatek/mtk_wed.h:55:20: error: no member named 'hw' in 'struct mtk_wed_device'
           return readl(dev->hw->wdma + reg);
                        ~~~  ^
   arch/arm64/include/asm/io.h:137:46: note: expanded from macro 'readl'
   #define readl(c)                ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
                                                              ^
   arch/arm64/include/asm/io.h:122:79: note: expanded from macro 'readl_relaxed'
   #define readl_relaxed(c)        ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:27:
>> drivers/net/ethernet/mediatek/mtk_wed.h:61:12: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           if (!dev->tx_ring[ring].wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:64:20: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           return readl(dev->tx_ring[ring].wpdma + reg);
                        ~~~  ^
   arch/arm64/include/asm/io.h:137:46: note: expanded from macro 'readl'
   #define readl(c)                ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
                                                              ^
   arch/arm64/include/asm/io.h:122:79: note: expanded from macro 'readl_relaxed'
   #define readl_relaxed(c)        ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:27:
   drivers/net/ethernet/mediatek/mtk_wed.h:70:12: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           if (!dev->tx_ring[ring].wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:73:19: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           writel(val, dev->tx_ring[ring].wpdma + reg);
                       ~~~  ^
   arch/arm64/include/asm/io.h:142:56: note: expanded from macro 'writel'
   #define writel(v,c)             ({ __iowmb(); writel_relaxed((v),(c)); })
                                                                     ^
   arch/arm64/include/asm/io.h:127:78: note: expanded from macro 'writel_relaxed'
   #define writel_relaxed(v,c)     ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
                                                                                    ^
   In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:27:
>> drivers/net/ethernet/mediatek/mtk_wed.h:79:12: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           if (!dev->txfree_ring.wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:82:20: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           return readl(dev->txfree_ring.wpdma + reg);
                        ~~~  ^
   arch/arm64/include/asm/io.h:137:46: note: expanded from macro 'readl'
   #define readl(c)                ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
                                                              ^
   arch/arm64/include/asm/io.h:122:79: note: expanded from macro 'readl_relaxed'
   #define readl_relaxed(c)        ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:27:
   drivers/net/ethernet/mediatek/mtk_wed.h:88:12: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           if (!dev->txfree_ring.wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:91:19: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           writel(val, dev->txfree_ring.wpdma + reg);
                       ~~~  ^
   arch/arm64/include/asm/io.h:142:56: note: expanded from macro 'writel'
   #define writel(v,c)             ({ __iowmb(); writel_relaxed((v),(c)); })
                                                                     ^
   arch/arm64/include/asm/io.h:127:78: note: expanded from macro 'writel_relaxed'
   #define writel_relaxed(v,c)     ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
                                                                                    ^
   12 errors generated.
--
   In file included from drivers/net/ethernet/mediatek/mtk_wed.c:17:
>> drivers/net/ethernet/mediatek/mtk_wed.h:33:20: error: no member named 'hw' in 'struct mtk_wed_device'
           regmap_write(dev->hw->regs, reg, val);
                        ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:41:19: error: no member named 'hw' in 'struct mtk_wed_device'
           regmap_read(dev->hw->regs, reg, &val);
                       ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:49:19: error: no member named 'hw' in 'struct mtk_wed_device'
           writel(val, dev->hw->wdma + reg);
                       ~~~  ^
   arch/arm64/include/asm/io.h:142:56: note: expanded from macro 'writel'
   #define writel(v,c)             ({ __iowmb(); writel_relaxed((v),(c)); })
                                                                     ^
   arch/arm64/include/asm/io.h:127:78: note: expanded from macro 'writel_relaxed'
   #define writel_relaxed(v,c)     ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
                                                                                    ^
   In file included from drivers/net/ethernet/mediatek/mtk_wed.c:17:
   drivers/net/ethernet/mediatek/mtk_wed.h:55:20: error: no member named 'hw' in 'struct mtk_wed_device'
           return readl(dev->hw->wdma + reg);
                        ~~~  ^
   arch/arm64/include/asm/io.h:137:46: note: expanded from macro 'readl'
   #define readl(c)                ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
                                                              ^
   arch/arm64/include/asm/io.h:122:79: note: expanded from macro 'readl_relaxed'
   #define readl_relaxed(c)        ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/mediatek/mtk_wed.c:17:
>> drivers/net/ethernet/mediatek/mtk_wed.h:61:12: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           if (!dev->tx_ring[ring].wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:64:20: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           return readl(dev->tx_ring[ring].wpdma + reg);
                        ~~~  ^
   arch/arm64/include/asm/io.h:137:46: note: expanded from macro 'readl'
   #define readl(c)                ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
                                                              ^
   arch/arm64/include/asm/io.h:122:79: note: expanded from macro 'readl_relaxed'
   #define readl_relaxed(c)        ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/mediatek/mtk_wed.c:17:
   drivers/net/ethernet/mediatek/mtk_wed.h:70:12: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           if (!dev->tx_ring[ring].wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:73:19: error: no member named 'tx_ring' in 'struct mtk_wed_device'
           writel(val, dev->tx_ring[ring].wpdma + reg);
                       ~~~  ^
   arch/arm64/include/asm/io.h:142:56: note: expanded from macro 'writel'
   #define writel(v,c)             ({ __iowmb(); writel_relaxed((v),(c)); })
                                                                     ^
   arch/arm64/include/asm/io.h:127:78: note: expanded from macro 'writel_relaxed'
   #define writel_relaxed(v,c)     ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
                                                                                    ^
   In file included from drivers/net/ethernet/mediatek/mtk_wed.c:17:
>> drivers/net/ethernet/mediatek/mtk_wed.h:79:12: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           if (!dev->txfree_ring.wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:82:20: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           return readl(dev->txfree_ring.wpdma + reg);
                        ~~~  ^
   arch/arm64/include/asm/io.h:137:46: note: expanded from macro 'readl'
   #define readl(c)                ({ u32 __v = readl_relaxed(c); __iormb(__v); __v; })
                                                              ^
   arch/arm64/include/asm/io.h:122:79: note: expanded from macro 'readl_relaxed'
   #define readl_relaxed(c)        ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
                                                                                        ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/mediatek/mtk_wed.c:17:
   drivers/net/ethernet/mediatek/mtk_wed.h:88:12: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           if (!dev->txfree_ring.wpdma)
                ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.h:91:19: error: no member named 'txfree_ring' in 'struct mtk_wed_device'
           writel(val, dev->txfree_ring.wpdma + reg);
                       ~~~  ^
   arch/arm64/include/asm/io.h:142:56: note: expanded from macro 'writel'
   #define writel(v,c)             ({ __iowmb(); writel_relaxed((v),(c)); })
                                                                     ^
   arch/arm64/include/asm/io.h:127:78: note: expanded from macro 'writel_relaxed'
   #define writel_relaxed(v,c)     ((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
                                                                                    ^
>> drivers/net/ethernet/mediatek/mtk_wed.c:35:26: error: no member named 'hw' in 'struct mtk_wed_device'
           regmap_update_bits(dev->hw->regs, reg, mask | val, val);
                              ~~~  ^
>> drivers/net/ethernet/mediatek/mtk_wed.c:84:34: error: no member named 'wlan' in 'struct mtk_wed_device'
           hw = hw_list[pci_domain_nr(dev->wlan.pci_dev->bus)];
                                      ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.c:98:19: error: no member named 'wlan' in 'struct mtk_wed_device'
           int token = dev->wlan.token_start;
                       ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.c:103:19: error: no member named 'wlan' in 'struct mtk_wed_device'
           ring_size = dev->wlan.nbuf & ~(MTK_WED_BUF_PER_PAGE - 1);
                       ~~~  ^
>> drivers/net/ethernet/mediatek/mtk_wed.c:110:7: error: no member named 'buf_ring' in 'struct mtk_wed_device'
           dev->buf_ring.size = ring_size;
           ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.c:111:7: error: no member named 'buf_ring' in 'struct mtk_wed_device'
           dev->buf_ring.pages = page_list;
           ~~~  ^
   drivers/net/ethernet/mediatek/mtk_wed.c:113:33: error: no member named 'hw' in 'struct mtk_wed_device'
           desc = dma_alloc_coherent(dev->hw->dev, ring_size * sizeof(*desc),
                                     ~~~  ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   20 errors generated.


vim +33 drivers/net/ethernet/mediatek/mtk_wed.h

    29	
    30	static inline void
    31	wed_w32(struct mtk_wed_device *dev, u32 reg, u32 val)
    32	{
  > 33		regmap_write(dev->hw->regs, reg, val);
    34	}
    35	
    36	static inline u32
    37	wed_r32(struct mtk_wed_device *dev, u32 reg)
    38	{
    39		unsigned int val;
    40	
    41		regmap_read(dev->hw->regs, reg, &val);
    42	
    43		return val;
    44	}
    45	
    46	static inline void
    47	wdma_w32(struct mtk_wed_device *dev, u32 reg, u32 val)
    48	{
    49		writel(val, dev->hw->wdma + reg);
    50	}
    51	
    52	static inline u32
    53	wdma_r32(struct mtk_wed_device *dev, u32 reg)
    54	{
    55		return readl(dev->hw->wdma + reg);
    56	}
    57	
    58	static inline u32
    59	wpdma_tx_r32(struct mtk_wed_device *dev, int ring, u32 reg)
    60	{
  > 61		if (!dev->tx_ring[ring].wpdma)
    62			return 0;
    63	
    64		return readl(dev->tx_ring[ring].wpdma + reg);
    65	}
    66	
    67	static inline void
    68	wpdma_tx_w32(struct mtk_wed_device *dev, int ring, u32 reg, u32 val)
    69	{
    70		if (!dev->tx_ring[ring].wpdma)
    71			return;
    72	
    73		writel(val, dev->tx_ring[ring].wpdma + reg);
    74	}
    75	
    76	static inline u32
    77	wpdma_txfree_r32(struct mtk_wed_device *dev, u32 reg)
    78	{
  > 79		if (!dev->txfree_ring.wpdma)
    80			return 0;
    81	
    82		return readl(dev->txfree_ring.wpdma + reg);
    83	}
    84	

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