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] [day] [month] [year] [list]
Message-ID: <202311241420.9uiff44i-lkp@intel.com>
Date:   Fri, 24 Nov 2023 21:19:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kathiravan Thirumoorthy <quic_kathirav@...cinc.com>,
        Andy Gross <agross@...nel.org>,
        Bjorn Andersson <andersson@...nel.org>,
        Konrad Dybcio <konrad.dybcio@...aro.org>,
        Michael Turquette <mturquette@...libre.com>,
        Stephen Boyd <sboyd@...nel.org>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzk@...nel.org>,
        Conor Dooley <conor+dt@...nel.org>,
        Richard Cochran <richardcochran@...il.com>,
        Catalin Marinas <catalin.marinas@....com>,
        Will Deacon <will@...nel.org>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
        linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
        netdev@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        Kathiravan Thirumoorthy <quic_kathirav@...cinc.com>
Subject: Re: [PATCH v2 7/9] clk: qcom: add NSS clock Controller driver for
 Qualcomm IPQ5332

Hi Kathiravan,

kernel test robot noticed the following build errors:

[auto build test ERROR on 07b677953b9dca02928be323e2db853511305fa9]

url:    https://github.com/intel-lab-lkp/linux/commits/Kathiravan-Thirumoorthy/clk-qcom-ipq5332-add-const-qualifier-to-the-clk_init_data-structure/20231121-223615
base:   07b677953b9dca02928be323e2db853511305fa9
patch link:    https://lore.kernel.org/r/20231121-ipq5332-nsscc-v2-7-a7ff61beab72%40quicinc.com
patch subject: [PATCH v2 7/9] clk: qcom: add NSS clock Controller driver for Qualcomm IPQ5332
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20231124/202311241420.9uiff44i-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241420.9uiff44i-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/202311241420.9uiff44i-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/clk/qcom/nsscc-ipq5332.c:161:62: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                                                                ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
>> drivers/clk/qcom/nsscc-ipq5332.c:162:2: error: call to undeclared function 'C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           C(P_UNIPHY0_NSS_RX_CLK, 12.5, 0, 0),
           ^
   drivers/clk/qcom/nsscc-ipq5332.c:166:63: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_125[] = {
                                                                 ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
>> drivers/clk/qcom/nsscc-ipq5332.c:171:64: error: array has incomplete element type 'const struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port1_rx_clk_src[] = {
                                                                  ^
   drivers/clk/qcom/nsscc-ipq5332.c:171:21: note: forward declaration of 'struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port1_rx_clk_src[] = {
                       ^
>> drivers/clk/qcom/nsscc-ipq5332.c:172:2: error: call to undeclared function 'FMS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           FMS(24000000, P_XO, 1, 0, 0),
           ^
>> drivers/clk/qcom/nsscc-ipq5332.c:173:2: error: call to undeclared function 'FM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           FM(25000000, ftbl_nss_cc_port1_rx_clk_src_25),
           ^
>> drivers/clk/qcom/nsscc-ipq5332.c:191:11: error: use of undeclared identifier 'clk_rcg2_fm_ops'; did you mean 'clk_rcg2_ops'?
                   .ops = &clk_rcg2_fm_ops,
                           ^~~~~~~~~~~~~~~
                           clk_rcg2_ops
   drivers/clk/qcom/clk-rcg.h:170:29: note: 'clk_rcg2_ops' declared here
   extern const struct clk_ops clk_rcg2_ops;
                               ^
   drivers/clk/qcom/nsscc-ipq5332.c:195:62: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_tx_clk_src_25[] = {
                                                                ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:200:63: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_tx_clk_src_125[] = {
                                                                 ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:205:64: error: array has incomplete element type 'const struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port1_tx_clk_src[] = {
                                                                  ^
   drivers/clk/qcom/nsscc-ipq5332.c:171:21: note: forward declaration of 'struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port1_rx_clk_src[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:225:11: error: use of undeclared identifier 'clk_rcg2_fm_ops'; did you mean 'clk_rcg2_ops'?
                   .ops = &clk_rcg2_fm_ops,
                           ^~~~~~~~~~~~~~~
                           clk_rcg2_ops
   drivers/clk/qcom/clk-rcg.h:170:29: note: 'clk_rcg2_ops' declared here
   extern const struct clk_ops clk_rcg2_ops;
                               ^
   drivers/clk/qcom/nsscc-ipq5332.c:229:62: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port2_rx_clk_src_25[] = {
                                                                ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:234:63: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port2_rx_clk_src_125[] = {
                                                                 ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:239:64: error: array has incomplete element type 'const struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port2_rx_clk_src[] = {
                                                                  ^
   drivers/clk/qcom/nsscc-ipq5332.c:171:21: note: forward declaration of 'struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port1_rx_clk_src[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:259:11: error: use of undeclared identifier 'clk_rcg2_fm_ops'; did you mean 'clk_rcg2_ops'?
                   .ops = &clk_rcg2_fm_ops,
                           ^~~~~~~~~~~~~~~
                           clk_rcg2_ops
   drivers/clk/qcom/clk-rcg.h:170:29: note: 'clk_rcg2_ops' declared here
   extern const struct clk_ops clk_rcg2_ops;
                               ^
   drivers/clk/qcom/nsscc-ipq5332.c:263:62: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port2_tx_clk_src_25[] = {
                                                                ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:268:63: error: array has incomplete element type 'const struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port2_tx_clk_src_125[] = {
                                                                 ^
   drivers/clk/qcom/nsscc-ipq5332.c:161:21: note: forward declaration of 'struct freq_conf'
   static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:273:64: error: array has incomplete element type 'const struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port2_tx_clk_src[] = {
                                                                  ^
   drivers/clk/qcom/nsscc-ipq5332.c:171:21: note: forward declaration of 'struct freq_multi_tbl'
   static const struct freq_multi_tbl ftbl_nss_cc_port1_rx_clk_src[] = {
                       ^
   drivers/clk/qcom/nsscc-ipq5332.c:293:11: error: use of undeclared identifier 'clk_rcg2_fm_ops'; did you mean 'clk_rcg2_ops'?
                   .ops = &clk_rcg2_fm_ops,
                           ^~~~~~~~~~~~~~~
                           clk_rcg2_ops
   drivers/clk/qcom/clk-rcg.h:170:29: note: 'clk_rcg2_ops' declared here
   extern const struct clk_ops clk_rcg2_ops;
                               ^
   19 errors generated.


vim +161 drivers/clk/qcom/nsscc-ipq5332.c

   160	
 > 161	static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_25[] = {
 > 162		C(P_UNIPHY0_NSS_RX_CLK, 12.5, 0, 0),
   163		C(P_UNIPHY0_NSS_RX_CLK, 5, 0, 0),
   164	};
   165	
   166	static const struct freq_conf ftbl_nss_cc_port1_rx_clk_src_125[] = {
   167		C(P_UNIPHY0_NSS_RX_CLK, 2.5, 0, 0),
   168		C(P_UNIPHY0_NSS_RX_CLK, 1, 0, 0),
   169	};
   170	
 > 171	static const struct freq_multi_tbl ftbl_nss_cc_port1_rx_clk_src[] = {
 > 172		FMS(24000000, P_XO, 1, 0, 0),
 > 173		FM(25000000, ftbl_nss_cc_port1_rx_clk_src_25),
   174		FMS(78125000, P_UNIPHY0_NSS_RX_CLK, 4, 0, 0),
   175		FM(125000000, ftbl_nss_cc_port1_rx_clk_src_125),
   176		FMS(156250000, P_UNIPHY0_NSS_RX_CLK, 2, 0, 0),
   177		FMS(312500000, P_UNIPHY0_NSS_RX_CLK, 1, 0, 0),
   178		{ }
   179	};
   180	
   181	static struct clk_rcg2 nss_cc_port1_rx_clk_src = {
   182		.cmd_rcgr = 0x450,
   183		.mnd_width = 0,
   184		.hid_width = 5,
   185		.parent_map = nss_cc_parent_map_1,
   186		.freq_multi_tbl = ftbl_nss_cc_port1_rx_clk_src,
   187		.clkr.hw.init = &(const struct clk_init_data) {
   188			.name = "nss_cc_port1_rx_clk_src",
   189			.parent_data = nss_cc_parent_data_1,
   190			.num_parents = ARRAY_SIZE(nss_cc_parent_data_1),
 > 191			.ops = &clk_rcg2_fm_ops,
   192		},
   193	};
   194	

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