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: <202305130813.9ypkiIW0-lkp@intel.com>
Date:   Sat, 13 May 2023 08:26:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Rohit Agarwal <quic_rohiagar@...cinc.com>, agross@...nel.org,
        andersson@...nel.org, konrad.dybcio@...aro.org,
        linus.walleij@...aro.org, robh+dt@...nel.org,
        krzysztof.kozlowski+dt@...aro.org, richardcochran@...il.com,
        manivannan.sadhasivam@...aro.org, andy.shevchenko@...il.com
Cc:     oe-kbuild-all@...ts.linux.dev, linux-arm-msm@...r.kernel.org,
        linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
        Rohit Agarwal <quic_rohiagar@...cinc.com>
Subject: Re: [PATCH 1/2] pinctrl: qcom: Remove the msm_function struct

Hi Rohit,

kernel test robot noticed the following build errors:

[auto build test ERROR on linusw-pinctrl/devel]
[also build test ERROR on linusw-pinctrl/for-next linus/master v6.4-rc1 next-20230512]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rohit-Agarwal/pinctrl-qcom-Remove-the-msm_function-struct/20230512-195910
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link:    https://lore.kernel.org/r/1683892553-19882-2-git-send-email-quic_rohiagar%40quicinc.com
patch subject: [PATCH 1/2] pinctrl: qcom: Remove the msm_function struct
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230513/202305130813.9ypkiIW0-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/3d2ada4f090f8ebd3b604ccb917394e8b30e23f8
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Rohit-Agarwal/pinctrl-qcom-Remove-the-msm_function-struct/20230512-195910
        git checkout 3d2ada4f090f8ebd3b604ccb917394e8b30e23f8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305130813.9ypkiIW0-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/pinctrl/qcom/pinctrl-sm7150.c:969:34: error: array type has incomplete element type 'struct msm_function'
     969 | static const struct msm_function sm7150_functions[] = {
         |                                  ^~~~~~~~~~~~~~~~
   In file included from include/linux/container_of.h:5,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from drivers/pinctrl/qcom/pinctrl-sm7150.c:7:
   include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:232:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     232 | #define __must_be_array(a)      BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                 ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array'
      56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/pinctrl/qcom/pinctrl-sm7150.c:1236:23: note: in expansion of macro 'ARRAY_SIZE'
    1236 |         .nfunctions = ARRAY_SIZE(sm7150_functions),
         |                       ^~~~~~~~~~
   drivers/pinctrl/qcom/pinctrl-sm7150.c:969:34: warning: 'sm7150_functions' defined but not used [-Wunused-variable]
     969 | static const struct msm_function sm7150_functions[] = {
         |                                  ^~~~~~~~~~~~~~~~


vim +969 drivers/pinctrl/qcom/pinctrl-sm7150.c

b915395c9e04361 Danila Tikhonov 2023-03-12   968  
b915395c9e04361 Danila Tikhonov 2023-03-12  @969  static const struct msm_function sm7150_functions[] = {
b915395c9e04361 Danila Tikhonov 2023-03-12   970  	FUNCTION(gpio),
b915395c9e04361 Danila Tikhonov 2023-03-12   971  	FUNCTION(adsp_ext),
b915395c9e04361 Danila Tikhonov 2023-03-12   972  	FUNCTION(agera_pll),
b915395c9e04361 Danila Tikhonov 2023-03-12   973  	FUNCTION(aoss_cti),
b915395c9e04361 Danila Tikhonov 2023-03-12   974  	FUNCTION(atest_char),
b915395c9e04361 Danila Tikhonov 2023-03-12   975  	FUNCTION(atest_tsens),
b915395c9e04361 Danila Tikhonov 2023-03-12   976  	FUNCTION(atest_tsens2),
b915395c9e04361 Danila Tikhonov 2023-03-12   977  	FUNCTION(atest_usb1),
b915395c9e04361 Danila Tikhonov 2023-03-12   978  	FUNCTION(atest_usb2),
b915395c9e04361 Danila Tikhonov 2023-03-12   979  	FUNCTION(cam_mclk),
b915395c9e04361 Danila Tikhonov 2023-03-12   980  	FUNCTION(cci_async),
b915395c9e04361 Danila Tikhonov 2023-03-12   981  	FUNCTION(cci_i2c),
b915395c9e04361 Danila Tikhonov 2023-03-12   982  	FUNCTION(cci_timer0),
b915395c9e04361 Danila Tikhonov 2023-03-12   983  	FUNCTION(cci_timer1),
b915395c9e04361 Danila Tikhonov 2023-03-12   984  	FUNCTION(cci_timer2),
b915395c9e04361 Danila Tikhonov 2023-03-12   985  	FUNCTION(cci_timer3),
b915395c9e04361 Danila Tikhonov 2023-03-12   986  	FUNCTION(cci_timer4),
b915395c9e04361 Danila Tikhonov 2023-03-12   987  	FUNCTION(dbg_out),
b915395c9e04361 Danila Tikhonov 2023-03-12   988  	FUNCTION(ddr_bist),
b915395c9e04361 Danila Tikhonov 2023-03-12   989  	FUNCTION(ddr_pxi0),
b915395c9e04361 Danila Tikhonov 2023-03-12   990  	FUNCTION(ddr_pxi1),
b915395c9e04361 Danila Tikhonov 2023-03-12   991  	FUNCTION(ddr_pxi2),
b915395c9e04361 Danila Tikhonov 2023-03-12   992  	FUNCTION(ddr_pxi3),
b915395c9e04361 Danila Tikhonov 2023-03-12   993  	FUNCTION(edp_hot),
b915395c9e04361 Danila Tikhonov 2023-03-12   994  	FUNCTION(edp_lcd),
b915395c9e04361 Danila Tikhonov 2023-03-12   995  	FUNCTION(gcc_gp1),
b915395c9e04361 Danila Tikhonov 2023-03-12   996  	FUNCTION(gcc_gp2),
b915395c9e04361 Danila Tikhonov 2023-03-12   997  	FUNCTION(gcc_gp3),
b915395c9e04361 Danila Tikhonov 2023-03-12   998  	FUNCTION(gp_pdm0),
b915395c9e04361 Danila Tikhonov 2023-03-12   999  	FUNCTION(gp_pdm1),
b915395c9e04361 Danila Tikhonov 2023-03-12  1000  	FUNCTION(gp_pdm2),
b915395c9e04361 Danila Tikhonov 2023-03-12  1001  	FUNCTION(gps_tx),
b915395c9e04361 Danila Tikhonov 2023-03-12  1002  	FUNCTION(jitter_bist),
b915395c9e04361 Danila Tikhonov 2023-03-12  1003  	FUNCTION(ldo_en),
b915395c9e04361 Danila Tikhonov 2023-03-12  1004  	FUNCTION(ldo_update),
b915395c9e04361 Danila Tikhonov 2023-03-12  1005  	FUNCTION(m_voc),
b915395c9e04361 Danila Tikhonov 2023-03-12  1006  	FUNCTION(mdp_vsync),
b915395c9e04361 Danila Tikhonov 2023-03-12  1007  	FUNCTION(mdp_vsync0),
b915395c9e04361 Danila Tikhonov 2023-03-12  1008  	FUNCTION(mdp_vsync1),
b915395c9e04361 Danila Tikhonov 2023-03-12  1009  	FUNCTION(mdp_vsync2),
b915395c9e04361 Danila Tikhonov 2023-03-12  1010  	FUNCTION(mdp_vsync3),
b915395c9e04361 Danila Tikhonov 2023-03-12  1011  	FUNCTION(mss_lte),
b915395c9e04361 Danila Tikhonov 2023-03-12  1012  	FUNCTION(nav_pps_in),
b915395c9e04361 Danila Tikhonov 2023-03-12  1013  	FUNCTION(nav_pps_out),
b915395c9e04361 Danila Tikhonov 2023-03-12  1014  	FUNCTION(pa_indicator),
b915395c9e04361 Danila Tikhonov 2023-03-12  1015  	FUNCTION(pci_e),
b915395c9e04361 Danila Tikhonov 2023-03-12  1016  	FUNCTION(phase_flag),
b915395c9e04361 Danila Tikhonov 2023-03-12  1017  	FUNCTION(pll_bist),
b915395c9e04361 Danila Tikhonov 2023-03-12  1018  	FUNCTION(pll_bypassnl),
b915395c9e04361 Danila Tikhonov 2023-03-12  1019  	FUNCTION(pll_reset),
b915395c9e04361 Danila Tikhonov 2023-03-12  1020  	FUNCTION(pri_mi2s),
b915395c9e04361 Danila Tikhonov 2023-03-12  1021  	FUNCTION(pri_mi2s_ws),
b915395c9e04361 Danila Tikhonov 2023-03-12  1022  	FUNCTION(prng_rosc),
b915395c9e04361 Danila Tikhonov 2023-03-12  1023  	FUNCTION(qdss_cti),
b915395c9e04361 Danila Tikhonov 2023-03-12  1024  	FUNCTION(qdss),
b915395c9e04361 Danila Tikhonov 2023-03-12  1025  	FUNCTION(qlink_enable),
b915395c9e04361 Danila Tikhonov 2023-03-12  1026  	FUNCTION(qlink_request),
b915395c9e04361 Danila Tikhonov 2023-03-12  1027  	FUNCTION(qua_mi2s),
b915395c9e04361 Danila Tikhonov 2023-03-12  1028  	FUNCTION(qup00),
b915395c9e04361 Danila Tikhonov 2023-03-12  1029  	FUNCTION(qup01),
b915395c9e04361 Danila Tikhonov 2023-03-12  1030  	FUNCTION(qup02),
b915395c9e04361 Danila Tikhonov 2023-03-12  1031  	FUNCTION(qup03),
b915395c9e04361 Danila Tikhonov 2023-03-12  1032  	FUNCTION(qup04),
b915395c9e04361 Danila Tikhonov 2023-03-12  1033  	FUNCTION(qup10),
b915395c9e04361 Danila Tikhonov 2023-03-12  1034  	FUNCTION(qup11),
b915395c9e04361 Danila Tikhonov 2023-03-12  1035  	FUNCTION(qup12),
b915395c9e04361 Danila Tikhonov 2023-03-12  1036  	FUNCTION(qup13),
b915395c9e04361 Danila Tikhonov 2023-03-12  1037  	FUNCTION(qup14),
b915395c9e04361 Danila Tikhonov 2023-03-12  1038  	FUNCTION(qup15),
b915395c9e04361 Danila Tikhonov 2023-03-12  1039  	FUNCTION(sd_write),
b915395c9e04361 Danila Tikhonov 2023-03-12  1040  	FUNCTION(sdc40),
b915395c9e04361 Danila Tikhonov 2023-03-12  1041  	FUNCTION(sdc41),
b915395c9e04361 Danila Tikhonov 2023-03-12  1042  	FUNCTION(sdc42),
b915395c9e04361 Danila Tikhonov 2023-03-12  1043  	FUNCTION(sdc43),
b915395c9e04361 Danila Tikhonov 2023-03-12  1044  	FUNCTION(sdc4_clk),
b915395c9e04361 Danila Tikhonov 2023-03-12  1045  	FUNCTION(sdc4_cmd),
b915395c9e04361 Danila Tikhonov 2023-03-12  1046  	FUNCTION(sec_mi2s),
b915395c9e04361 Danila Tikhonov 2023-03-12  1047  	FUNCTION(ter_mi2s),
b915395c9e04361 Danila Tikhonov 2023-03-12  1048  	FUNCTION(tgu_ch0),
b915395c9e04361 Danila Tikhonov 2023-03-12  1049  	FUNCTION(tgu_ch1),
b915395c9e04361 Danila Tikhonov 2023-03-12  1050  	FUNCTION(tgu_ch2),
b915395c9e04361 Danila Tikhonov 2023-03-12  1051  	FUNCTION(tgu_ch3),
b915395c9e04361 Danila Tikhonov 2023-03-12  1052  	FUNCTION(tsif1_clk),
b915395c9e04361 Danila Tikhonov 2023-03-12  1053  	FUNCTION(tsif1_data),
b915395c9e04361 Danila Tikhonov 2023-03-12  1054  	FUNCTION(tsif1_en),
b915395c9e04361 Danila Tikhonov 2023-03-12  1055  	FUNCTION(tsif1_error),
b915395c9e04361 Danila Tikhonov 2023-03-12  1056  	FUNCTION(tsif1_sync),
b915395c9e04361 Danila Tikhonov 2023-03-12  1057  	FUNCTION(tsif2_clk),
b915395c9e04361 Danila Tikhonov 2023-03-12  1058  	FUNCTION(tsif2_data),
b915395c9e04361 Danila Tikhonov 2023-03-12  1059  	FUNCTION(tsif2_en),
b915395c9e04361 Danila Tikhonov 2023-03-12  1060  	FUNCTION(tsif2_error),
b915395c9e04361 Danila Tikhonov 2023-03-12  1061  	FUNCTION(tsif2_sync),
b915395c9e04361 Danila Tikhonov 2023-03-12  1062  	FUNCTION(uim1_clk),
b915395c9e04361 Danila Tikhonov 2023-03-12  1063  	FUNCTION(uim1_data),
b915395c9e04361 Danila Tikhonov 2023-03-12  1064  	FUNCTION(uim1_present),
b915395c9e04361 Danila Tikhonov 2023-03-12  1065  	FUNCTION(uim1_reset),
b915395c9e04361 Danila Tikhonov 2023-03-12  1066  	FUNCTION(uim2_clk),
b915395c9e04361 Danila Tikhonov 2023-03-12  1067  	FUNCTION(uim2_data),
b915395c9e04361 Danila Tikhonov 2023-03-12  1068  	FUNCTION(uim2_present),
b915395c9e04361 Danila Tikhonov 2023-03-12  1069  	FUNCTION(uim2_reset),
b915395c9e04361 Danila Tikhonov 2023-03-12  1070  	FUNCTION(uim_batt),
b915395c9e04361 Danila Tikhonov 2023-03-12  1071  	FUNCTION(usb_phy),
b915395c9e04361 Danila Tikhonov 2023-03-12  1072  	FUNCTION(vfr_1),
b915395c9e04361 Danila Tikhonov 2023-03-12  1073  	FUNCTION(vsense_trigger),
b915395c9e04361 Danila Tikhonov 2023-03-12  1074  	FUNCTION(wlan1_adc0),
b915395c9e04361 Danila Tikhonov 2023-03-12  1075  	FUNCTION(wlan1_adc1),
b915395c9e04361 Danila Tikhonov 2023-03-12  1076  	FUNCTION(wlan2_adc0),
b915395c9e04361 Danila Tikhonov 2023-03-12  1077  	FUNCTION(wlan2_adc1),
b915395c9e04361 Danila Tikhonov 2023-03-12  1078  	FUNCTION(wsa_clk),
b915395c9e04361 Danila Tikhonov 2023-03-12  1079  	FUNCTION(wsa_data),
b915395c9e04361 Danila Tikhonov 2023-03-12  1080  };
b915395c9e04361 Danila Tikhonov 2023-03-12  1081  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ