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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202409042358.dwEQMShp-lkp@intel.com>
Date: Thu, 5 Sep 2024 00:20:58 +0800
From: kernel test robot <lkp@...el.com>
To: Hongbo Li <lihongbo22@...wei.com>, adrian.hunter@...el.com,
	ulf.hansson@...aro.org, kees@...nel.org, gustavoars@...nel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-mmc@...r.kernel.org, linux-hardening@...r.kernel.org,
	lihongbo22@...wei.com
Subject: Re: [PATCH -next] mmc: sdhci-cadence: Annotate struct
 sdhci_cdns_phy_param with __counted_by()

Hi Hongbo,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20240903]

url:    https://github.com/intel-lab-lkp/linux/commits/Hongbo-Li/mmc-sdhci-cadence-Annotate-struct-sdhci_cdns_phy_param-with-__counted_by/20240904-094207
base:   next-20240903
patch link:    https://lore.kernel.org/r/20240904014636.2033138-1-lihongbo22%40huawei.com
patch subject: [PATCH -next] mmc: sdhci-cadence: Annotate struct sdhci_cdns_phy_param with __counted_by()
config: arm-randconfig-003-20240904 (https://download.01.org/0day-ci/archive/20240904/202409042358.dwEQMShp-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 05f5a91d00b02f4369f46d076411c700755ae041)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240904/202409042358.dwEQMShp-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409042358.dwEQMShp-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/mmc/host/sdhci-cadence.c:11:
   In file included from include/linux/mmc/host.h:19:
   In file included from include/linux/blk-crypto-profile.h:9:
   In file included from include/linux/bio.h:10:
   In file included from include/linux/blk_types.h:10:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/arm/include/asm/cacheflush.h:10:
   In file included from include/linux/mm.h:2202:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/mmc/host/sdhci-cadence.c:76:56: error: use of undeclared identifier 'count'
      76 |         struct sdhci_cdns_phy_param phy_params[] __counted_by(count);
         |                                                               ^
   1 warning and 1 error generated.


vim +/count +76 drivers/mmc/host/sdhci-cadence.c

    67	
    68	struct sdhci_cdns_priv {
    69		void __iomem *hrs_addr;
    70		void __iomem *ctl_addr;	/* write control */
    71		spinlock_t wrlock;	/* write lock */
    72		bool enhanced_strobe;
    73		void (*priv_writel)(struct sdhci_cdns_priv *priv, u32 val, void __iomem *reg);
    74		struct reset_control *rst_hw;
    75		unsigned int nr_phy_params;
  > 76		struct sdhci_cdns_phy_param phy_params[] __counted_by(count);
    77	};
    78	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ