[frank-w-bpi-r2-4.14:5.15-rtl8367dsa 49/60] drivers/net/dsa/rtl8367s_mdio.c:1422:7: error: no previous prototype for 'rtl8367c_resetVlan'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-rtl8367dsa
head: d23232d65379337787348ac851424897bf65ac92
commit: 5c74980be490840e3502fdc7308b8114fb253a47 [49/60] net: dsa: rtl8367: add vlan-reset
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc-linux-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://github.com/frank-w/BPI-R2-4.14/commit/5c74980be490840e3502fdc7308...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-rtl8367dsa
git checkout 5c74980be490840e3502fdc7308b8114fb253a47
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the frank-w-bpi-r2-4.14/5.15-rtl8367dsa HEAD d23232d65379337787348ac851424897bf65ac92 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:46:14: error: no previous prototype for 'mii_mgr_read' [-Werror=missing-prototypes]
46 | unsigned int mii_mgr_read(unsigned int phy_addr,unsigned int phy_register,unsigned int *read_data)
| ^~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:59:14: error: no previous prototype for 'mii_mgr_write' [-Werror=missing-prototypes]
59 | unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int phy_register,unsigned int write_data)
| ^~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:76:11: error: no previous prototype for 'smi_read' [-Werror=missing-prototypes]
76 | rtk_int32 smi_read(rtk_uint32 mAddrs, rtk_uint32 *rData)
| ^~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:105:11: error: no previous prototype for 'smi_write' [-Werror=missing-prototypes]
105 | rtk_int32 smi_write(rtk_uint32 mAddrs, rtk_uint32 rData)
| ^~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:137:7: error: no previous prototype for 'rtl8367c_setAsicReg' [-Werror=missing-prototypes]
137 | ret_t rtl8367c_setAsicReg(rtk_uint32 reg, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:148:7: error: no previous prototype for 'rtl8367c_getAsicReg' [-Werror=missing-prototypes]
148 | ret_t rtl8367c_getAsicReg(rtk_uint32 reg, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:164:7: error: no previous prototype for 'rtl8367c_setAsicRegBit' [-Werror=missing-prototypes]
164 | ret_t rtl8367c_setAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:188:7: error: no previous prototype for 'rtl8367c_getAsicRegBit' [-Werror=missing-prototypes]
188 | ret_t rtl8367c_getAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:203:7: error: no previous prototype for 'rtl8367c_getAsicRegBits' [-Werror=missing-prototypes]
203 | ret_t rtl8367c_getAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:229:7: error: no previous prototype for 'rtl8367c_setAsicRegBits' [-Werror=missing-prototypes]
229 | ret_t rtl8367c_setAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:266:7: error: no previous prototype for 'rtl8367c_setAsicPHYOCPReg' [-Werror=missing-prototypes]
266 | ret_t rtl8367c_setAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 ocpData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:287:7: error: no previous prototype for 'rtl8367c_getAsicPHYOCPReg' [-Werror=missing-prototypes]
287 | ret_t rtl8367c_getAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:308:7: error: no previous prototype for 'rtl8367c_setAsicSdsReg' [-Werror=missing-prototypes]
308 | ret_t rtl8367c_setAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:325:7: error: no previous prototype for 'rtl8367c_getAsicSdsReg' [-Werror=missing-prototypes]
325 | ret_t rtl8367c_getAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:351:7: error: no previous prototype for 'rtl8367c_setAsicPHYReg' [-Werror=missing-prototypes]
351 | ret_t rtl8367c_setAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 phyData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:362:7: error: no previous prototype for 'rtl8367c_getAsicPHYReg' [-Werror=missing-prototypes]
362 | ret_t rtl8367c_getAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:374:7: error: no previous prototype for 'rtl8367c_setAsicPortEnableAll' [-Werror=missing-prototypes]
374 | ret_t rtl8367c_setAsicPortEnableAll(rtk_uint32 enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:383:7: error: no previous prototype for 'rtl8367c_setAsicPortExtMode' [-Werror=missing-prototypes]
383 | ret_t rtl8367c_setAsicPortExtMode(rtk_uint32 id, rtk_uint32 mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:760:7: error: no previous prototype for 'rtl8367c_setAsicPortForceLinkExt' [-Werror=missing-prototypes]
760 | ret_t rtl8367c_setAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:846:7: error: no previous prototype for 'rtl8367c_getAsicPortForceLinkExt' [-Werror=missing-prototypes]
846 | ret_t rtl8367c_getAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:983:7: error: no previous prototype for 'rtl8367c_setAsicVlan4kEntry' [-Werror=missing-prototypes]
983 | ret_t rtl8367c_setAsicVlan4kEntry(rtl8367c_user_vlan4kentry *pVlan4kEntry )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1038:7: error: no previous prototype for 'rtl8367c_setAsicVlanMemberConfig' [-Werror=missing-prototypes]
1038 | ret_t rtl8367c_setAsicVlanMemberConfig(rtk_uint32 index, rtl8367c_vlanconfiguser *pVlanCg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1086:7: error: no previous prototype for 'rtl8367c_setAsicVlanEgressTagMode' [-Werror=missing-prototypes]
1086 | ret_t rtl8367c_setAsicVlanEgressTagMode(rtk_uint32 port, rtl8367c_egtagmode tagMode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1097:7: error: no previous prototype for 'rtl8367c_setAsicVlanPortBasedVID' [-Werror=missing-prototypes]
1097 | ret_t rtl8367c_setAsicVlanPortBasedVID(rtk_uint32 port, rtk_uint32 index, rtk_uint32 pri)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1126:7: error: no previous prototype for 'rtl8367c_setAsicVlanIngressFilter' [-Werror=missing-prototypes]
1126 | ret_t rtl8367c_setAsicVlanIngressFilter(rtk_uint32 port, rtk_uint32 enabled)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1134:7: error: no previous prototype for 'rtl8367c_setAsicVlanFilter' [-Werror=missing-prototypes]
1134 | ret_t rtl8367c_setAsicVlanFilter(rtk_uint32 enabled)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1141:15: error: no previous prototype for 'rtk_port_macForceLinkExt_set' [-Werror=missing-prototypes]
1141 | rtk_api_ret_t rtk_port_macForceLinkExt_set(rtk_port_t port, rtk_mode_ext_t mode, rtk_port_mac_ability_t *pPortability)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1210:15: error: no previous prototype for 'rtk_port_phyReg_set' [-Werror=missing-prototypes]
1210 | rtk_api_ret_t rtk_port_phyReg_set(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t regData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1226:15: error: no previous prototype for 'rtk_port_phyReg_get' [-Werror=missing-prototypes]
1226 | rtk_api_ret_t rtk_port_phyReg_get(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t *pData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1242:15: error: no previous prototype for 'rtk_port_phyEnableAll_set' [-Werror=missing-prototypes]
1242 | rtk_api_ret_t rtk_port_phyEnableAll_set(rtk_enable_t enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1283:15: error: no previous prototype for 'rtk_port_rgmiiDelayExt_set' [-Werror=missing-prototypes]
1283 | rtk_api_ret_t rtk_port_rgmiiDelayExt_set(rtk_port_t port, rtk_data_t txDelay, rtk_data_t rxDelay)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1315:7: error: no previous prototype for 'rtl8367c_setSgmiiNway' [-Werror=missing-prototypes]
1315 | ret_t rtl8367c_setSgmiiNway(rtk_uint32 ext_id, rtk_uint32 state)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1402:15: error: no previous prototype for 'rtk_port_sgmiiNway_set' [-Werror=missing-prototypes]
1402 | rtk_api_ret_t rtk_port_sgmiiNway_set(rtk_port_t port, rtk_enable_t state)
| ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:1422:7: error: no previous prototype for 'rtl8367c_resetVlan' [-Werror=missing-prototypes]
1422 | ret_t rtl8367c_resetVlan(void)
| ^~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1869:15: error: no previous prototype for 'rtk_switch_probe' [-Werror=missing-prototypes]
1869 | rtk_api_ret_t rtk_switch_probe(switch_chip_t *pSwitchChip)
| ^~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1918:15: error: no previous prototype for 'rtk_switch_initialState_set' [-Werror=missing-prototypes]
1918 | rtk_api_ret_t rtk_switch_initialState_set(init_state_t state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1927:15: error: no previous prototype for 'rtk_switch_init' [-Werror=missing-prototypes]
1927 | rtk_api_ret_t rtk_switch_init(void)
| ^~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:2038:6: error: no previous prototype for 'init_gsw' [-Werror=missing-prototypes]
2038 | void init_gsw(void)
| ^~~~~~~~
cc1: all warnings being treated as errors
vim +/rtl8367c_resetVlan +1422 drivers/net/dsa/rtl8367s_mdio.c
1419
1420
1421 // ============================================ RTK VLAN functions ==========================================================
> 1422 ret_t rtl8367c_resetVlan(void)
1423 {
1424 ret_t retVal;
1425
1426 if((retVal = rtl8367c_setAsicRegBit(RTL8367C_REG_VLAN_EXT_CTRL2, RTL8367C_VLAN_EXT_CTRL2_OFFSET, 1)) != RT_ERR_OK)
1427 return retVal;
1428
1429 return RT_ERR_OK;
1430 }
1431
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[linux-next:master 13509/13751] drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f2e19fd15bd7cba347ce50be71955f5cd28a6019
commit: a3659122cbe358c9de9e95f80331dc050bd6375e [13509/13751] drm/amd/display: To support sending TPS3 pattern when restoring link
config: i386-buildonly-randconfig-r003-20211111 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a3659122cbe358c9de9e95f80331dc050bd6375e
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:35:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2892:12: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
2892 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:634:6: error: no previous prototype for 'dmub_aux_setconfig_callback' [-Werror=missing-prototypes]
634 | void dmub_aux_setconfig_callback(struct amdgpu_device *adev, struct dmub_notification *notify)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:650:6: error: no previous prototype for 'dmub_hpd_callback' [-Werror=missing-prototypes]
650 | void dmub_hpd_callback(struct amdgpu_device *adev, struct dmub_notification *notify)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:707:6: error: no previous prototype for 'register_dmub_notify_callback' [-Werror=missing-prototypes]
707 | bool register_dmub_notify_callback(struct amdgpu_device *adev, enum dmub_notification_type type,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:11458:5: error: no previous prototype for 'amdgpu_dm_set_dmub_async_sync_status' [-Werror=missing-prototypes]
11458 | int amdgpu_dm_set_dmub_async_sync_status(bool is_cmd_aux, struct dc_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/link_enc_cfg.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:32:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:41:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2892:12: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
2892 | uint64_t temp;
| ^~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/dc_link_ddc.h:29,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:38:
At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_trace.h:40,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_trace.h:24,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/dc_fpu.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:742:14: error: no previous prototype for 'get_highest_allowed_voltage_level' [-Werror=missing-prototypes]
742 | unsigned int get_highest_allowed_voltage_level(uint32_t chip_family, uint32_t hw_internal_rev, uint32_t pci_revision_id)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:32:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr.c:37:6: error: no previous prototype for 'rv1_init_clocks' [-Werror=missing-prototypes]
37 | void rv1_init_clocks(struct clk_mgr *clk_mgr)
| ^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr.c:29:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:102:5: error: no previous prototype for 'rv1_vbios_smu_send_msg_with_param' [-Werror=missing-prototypes]
102 | int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:123:5: error: no previous prototype for 'rv1_vbios_smu_set_dispclk' [-Werror=missing-prototypes]
123 | int rv1_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:146:5: error: no previous prototype for 'rv1_vbios_smu_set_dprefclk' [-Werror=missing-prototypes]
146 | int rv1_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:412:6: error: no previous prototype for 'dcn2_enable_pme_wa' [-Werror=missing-prototypes]
412 | void dcn2_enable_pme_wa(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:77:6: error: no previous prototype for 'dcn201_update_clocks_vbios' [-Werror=missing-prototypes]
77 | void dcn201_update_clocks_vbios(struct clk_mgr *clk_mgr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c: In function 'dcn201_update_clocks':
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:132:7: error: variable 'enter_display_off' set but not used [-Werror=unused-but-set-variable]
132 | bool enter_display_off = false;
| ^~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:36:
At top level:
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:129:29: error: 'UVD0_BASE' defined but not used [-Werror=unused-const-variable=]
129 | static const struct IP_BASE UVD0_BASE ={ { { { 0x00007800, 0x00007E00, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:123:29: error: 'UMC0_BASE' defined but not used [-Werror=unused-const-variable=]
123 | static const struct IP_BASE UMC0_BASE ={ { { { 0x00014000, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:117:29: error: 'THM_BASE' defined but not used [-Werror=unused-const-variable=]
117 | static const struct IP_BASE THM_BASE ={ { { { 0x00016600, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:111:29: error: 'SMUIO_BASE' defined but not used [-Werror=unused-const-variable=]
111 | static const struct IP_BASE SMUIO_BASE ={ { { { 0x00016800, 0x00016A00, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:105:29: error: 'OSSSYS_BASE' defined but not used [-Werror=unused-const-variable=]
105 | static const struct IP_BASE OSSSYS_BASE ={ { { { 0x000010A0, 0, 0, 0, 0 } },
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:99:29: error: 'NBIO_BASE' defined but not used [-Werror=unused-const-variable=]
99 | static const struct IP_BASE NBIO_BASE ={ { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:93:29: error: 'MP1_BASE' defined but not used [-Werror=unused-const-variable=]
93 | static const struct IP_BASE MP1_BASE ={ { { { 0x00016000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:87:29: error: 'MP0_BASE' defined but not used [-Werror=unused-const-variable=]
87 | static const struct IP_BASE MP0_BASE ={ { { { 0x00016000, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:81:29: error: 'MMHUB_BASE' defined but not used [-Werror=unused-const-variable=]
81 | static const struct IP_BASE MMHUB_BASE ={ { { { 0x0001A000, 0, 0, 0, 0 } },
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:75:29: error: 'HDP_BASE' defined but not used [-Werror=unused-const-variable=]
75 | static const struct IP_BASE HDP_BASE ={ { { { 0x00000F20, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:69:29: error: 'GC_BASE' defined but not used [-Werror=unused-const-variable=]
69 | static const struct IP_BASE GC_BASE ={ { { { 0x00001260, 0x0000A000, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:63:29: error: 'FUSE_BASE' defined but not used [-Werror=unused-const-variable=]
63 | static const struct IP_BASE FUSE_BASE ={ { { { 0x00017400, 0, 0, 0, 0 } },
| ^~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:57:29: error: 'DMU_BASE' defined but not used [-Werror=unused-const-variable=]
57 | static const struct IP_BASE DMU_BASE ={ { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:51:29: error: 'DF_BASE' defined but not used [-Werror=unused-const-variable=]
51 | static const struct IP_BASE DF_BASE ={ { { { 0x00007000, 0, 0, 0, 0 } },
| ^~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:45:29: error: 'CLK_BASE' defined but not used [-Werror=unused-const-variable=]
45 | static const struct IP_BASE CLK_BASE ={ { { { 0x00016C00, 0, 0, 0, 0 } },
| ^~~~~~~~
drivers/gpu/drm/amd/amdgpu/../include/cyan_skillfish_ip_offset.h:39:29: error: 'ATHUB_BASE' defined but not used [-Werror=unused-const-variable=]
39 | static const struct IP_BASE ATHUB_BASE ={ { { { 0x00000C00, 0, 0, 0, 0 } },
| ^~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn201/dcn201_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:59:5: error: no previous prototype for 'rn_get_active_display_cnt_wa' [-Werror=missing-prototypes]
59 | int rn_get_active_display_cnt_wa(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:91:6: error: no previous prototype for 'rn_set_low_power_state' [-Werror=missing-prototypes]
91 | void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:125:6: error: no previous prototype for 'rn_update_clocks' [-Werror=missing-prototypes]
125 | void rn_update_clocks(struct clk_mgr *clk_mgr_base,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:441:6: error: no previous prototype for 'rn_get_clk_states' [-Werror=missing-prototypes]
441 | void rn_get_clk_states(struct clk_mgr *clk_mgr_base, struct clk_states *s)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:451:6: error: no previous prototype for 'rn_enable_pme_wa' [-Werror=missing-prototypes]
451 | void rn_enable_pme_wa(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:458:6: error: no previous prototype for 'rn_init_clocks' [-Werror=missing-prototypes]
458 | void rn_init_clocks(struct clk_mgr *clk_mgr)
| ^~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:89:5: error: no previous prototype for 'rn_vbios_smu_send_msg_with_param' [-Werror=missing-prototypes]
89 | int rn_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:110:5: error: no previous prototype for 'rn_vbios_smu_get_smu_version' [-Werror=missing-prototypes]
110 | int rn_vbios_smu_get_smu_version(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:119:5: error: no previous prototype for 'rn_vbios_smu_set_dispclk' [-Werror=missing-prototypes]
119 | int rn_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:146:5: error: no previous prototype for 'rn_vbios_smu_set_dprefclk' [-Werror=missing-prototypes]
146 | int rn_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:160:5: error: no previous prototype for 'rn_vbios_smu_set_hard_min_dcfclk' [-Werror=missing-prototypes]
160 | int rn_vbios_smu_set_hard_min_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_dcfclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:175:5: error: no previous prototype for 'rn_vbios_smu_set_min_deep_sleep_dcfclk' [-Werror=missing-prototypes]
175 | int rn_vbios_smu_set_min_deep_sleep_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_min_ds_dcfclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:190:6: error: no previous prototype for 'rn_vbios_smu_set_phyclk' [-Werror=missing-prototypes]
190 | void rn_vbios_smu_set_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:198:5: error: no previous prototype for 'rn_vbios_smu_set_dppclk' [-Werror=missing-prototypes]
198 | int rn_vbios_smu_set_dppclk(struct clk_mgr_internal *clk_mgr, int requested_dpp_khz)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:214:6: error: no previous prototype for 'rn_vbios_smu_set_dcn_low_power_state' [-Werror=missing-prototypes]
214 | void rn_vbios_smu_set_dcn_low_power_state(struct clk_mgr_internal *clk_mgr, enum dcn_pwr_state state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:229:6: error: no previous prototype for 'rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn' [-Werror=missing-prototypes]
229 | void rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn(struct clk_mgr_internal *clk_mgr, bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:237:6: error: no previous prototype for 'rn_vbios_smu_enable_pme_wa' [-Werror=missing-prototypes]
237 | void rn_vbios_smu_enable_pme_wa(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:245:5: error: no previous prototype for 'rn_vbios_smu_is_periodic_retraining_disabled' [-Werror=missing-prototypes]
245 | int rn_vbios_smu_is_periodic_retraining_disabled(struct clk_mgr_internal *clk_mgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:26:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:92:6: error: no previous prototype for 'vg_update_clocks' [-Werror=missing-prototypes]
92 | void vg_update_clocks(struct clk_mgr *clk_mgr_base,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:371:6: error: no previous prototype for 'vg_get_clk_states' [-Werror=missing-prototypes]
371 | void vg_get_clk_states(struct clk_mgr *clk_mgr_base, struct clk_states *s)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:389:6: error: no previous prototype for 'vg_init_clocks' [-Werror=missing-prototypes]
389 | void vg_init_clocks(struct clk_mgr *clk_mgr)
| ^~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn301/vg_clk_mgr.c:27:
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:121:22: error: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Werror=unused-const-variable=]
121 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:120:22: error: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Werror=unused-const-variable=]
120 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
..
vim +/DP_SINK_DEVICE_STR_ID_2 +121 drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h
119
> 120 static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
> 121 static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[frank-w-bpi-r2-4.14:5.15-rtl8367dsa 48/60] drivers/net/dsa/rtl8367s_mdio.h:887:12: error: no previous prototype for 'rtk_switch_phyPortMask_get'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-rtl8367dsa
head: 30b55b2ee391eac3e37c741d76e5b3f5682523f9
commit: ebb051a52704d976a63e3ab56a00f541b9d376b1 [48/60] net: dsa: rtl8367: add rtk_vlan_init
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc-linux-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://github.com/frank-w/BPI-R2-4.14/commit/ebb051a52704d976a63e3ab56a0...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-rtl8367dsa
git checkout ebb051a52704d976a63e3ab56a00f541b9d376b1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the frank-w-bpi-r2-4.14/5.15-rtl8367dsa HEAD 30b55b2ee391eac3e37c741d76e5b3f5682523f9 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from drivers/net/dsa/rtl8367s_mdio.c:23:
drivers/net/dsa/rtl8367s_mdio.h:874:15: error: no previous prototype for 'rtk_switch_logicalPortCheck' [-Werror=missing-prototypes]
874 | rtk_api_ret_t rtk_switch_logicalPortCheck(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:887:12: error: no previous prototype for 'rtk_switch_phyPortMask_get' [-Werror=missing-prototypes]
887 | rtk_uint32 rtk_switch_phyPortMask_get(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:900:15: error: no previous prototype for 'rtk_switch_isExtPort' [-Werror=missing-prototypes]
900 | rtk_api_ret_t rtk_switch_isExtPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:914:15: error: no previous prototype for 'rtk_switch_isUtpPort' [-Werror=missing-prototypes]
914 | rtk_api_ret_t rtk_switch_isUtpPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:928:15: error: no previous prototype for 'rtk_switch_isHsgPort' [-Werror=missing-prototypes]
928 | rtk_api_ret_t rtk_switch_isHsgPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:942:15: error: no previous prototype for 'rtk_switch_isSgmiiPort' [-Werror=missing-prototypes]
942 | rtk_api_ret_t rtk_switch_isSgmiiPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:956:12: error: no previous prototype for 'rtk_switch_port_L2P_get' [-Werror=missing-prototypes]
956 | rtk_uint32 rtk_switch_port_L2P_get(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:967:15: error: no previous prototype for 'rtk_switch_isPortMaskValid' [-Werror=missing-prototypes]
967 | rtk_api_ret_t rtk_switch_isPortMaskValid(rtk_portmask_t *pPmask)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:981:15: error: no previous prototype for 'rtk_switch_portmask_L2P_get' [-Werror=missing-prototypes]
981 | rtk_api_ret_t rtk_switch_portmask_L2P_get(rtk_portmask_t *pLogicalPmask, rtk_uint32 *pPhysicalPortmask)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:1009:12: error: no previous prototype for 'rtk_switch_maxMeterId_get' [-Werror=missing-prototypes]
1009 | rtk_uint32 rtk_switch_maxMeterId_get(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:46:14: error: no previous prototype for 'mii_mgr_read' [-Werror=missing-prototypes]
46 | unsigned int mii_mgr_read(unsigned int phy_addr,unsigned int phy_register,unsigned int *read_data)
| ^~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:59:14: error: no previous prototype for 'mii_mgr_write' [-Werror=missing-prototypes]
59 | unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int phy_register,unsigned int write_data)
| ^~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:76:11: error: no previous prototype for 'smi_read' [-Werror=missing-prototypes]
76 | rtk_int32 smi_read(rtk_uint32 mAddrs, rtk_uint32 *rData)
| ^~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:105:11: error: no previous prototype for 'smi_write' [-Werror=missing-prototypes]
105 | rtk_int32 smi_write(rtk_uint32 mAddrs, rtk_uint32 rData)
| ^~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:137:7: error: no previous prototype for 'rtl8367c_setAsicReg' [-Werror=missing-prototypes]
137 | ret_t rtl8367c_setAsicReg(rtk_uint32 reg, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:148:7: error: no previous prototype for 'rtl8367c_getAsicReg' [-Werror=missing-prototypes]
148 | ret_t rtl8367c_getAsicReg(rtk_uint32 reg, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:164:7: error: no previous prototype for 'rtl8367c_setAsicRegBit' [-Werror=missing-prototypes]
164 | ret_t rtl8367c_setAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:188:7: error: no previous prototype for 'rtl8367c_getAsicRegBit' [-Werror=missing-prototypes]
188 | ret_t rtl8367c_getAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:203:7: error: no previous prototype for 'rtl8367c_getAsicRegBits' [-Werror=missing-prototypes]
203 | ret_t rtl8367c_getAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:229:7: error: no previous prototype for 'rtl8367c_setAsicRegBits' [-Werror=missing-prototypes]
229 | ret_t rtl8367c_setAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:266:7: error: no previous prototype for 'rtl8367c_setAsicPHYOCPReg' [-Werror=missing-prototypes]
266 | ret_t rtl8367c_setAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 ocpData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:287:7: error: no previous prototype for 'rtl8367c_getAsicPHYOCPReg' [-Werror=missing-prototypes]
287 | ret_t rtl8367c_getAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:308:7: error: no previous prototype for 'rtl8367c_setAsicSdsReg' [-Werror=missing-prototypes]
308 | ret_t rtl8367c_setAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:325:7: error: no previous prototype for 'rtl8367c_getAsicSdsReg' [-Werror=missing-prototypes]
325 | ret_t rtl8367c_getAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:351:7: error: no previous prototype for 'rtl8367c_setAsicPHYReg' [-Werror=missing-prototypes]
351 | ret_t rtl8367c_setAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 phyData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:362:7: error: no previous prototype for 'rtl8367c_getAsicPHYReg' [-Werror=missing-prototypes]
362 | ret_t rtl8367c_getAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:374:7: error: no previous prototype for 'rtl8367c_setAsicPortEnableAll' [-Werror=missing-prototypes]
374 | ret_t rtl8367c_setAsicPortEnableAll(rtk_uint32 enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:383:7: error: no previous prototype for 'rtl8367c_setAsicPortExtMode' [-Werror=missing-prototypes]
383 | ret_t rtl8367c_setAsicPortExtMode(rtk_uint32 id, rtk_uint32 mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:760:7: error: no previous prototype for 'rtl8367c_setAsicPortForceLinkExt' [-Werror=missing-prototypes]
760 | ret_t rtl8367c_setAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:846:7: error: no previous prototype for 'rtl8367c_getAsicPortForceLinkExt' [-Werror=missing-prototypes]
846 | ret_t rtl8367c_getAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:983:7: error: no previous prototype for 'rtl8367c_setAsicVlan4kEntry' [-Werror=missing-prototypes]
983 | ret_t rtl8367c_setAsicVlan4kEntry(rtl8367c_user_vlan4kentry *pVlan4kEntry )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1038:7: error: no previous prototype for 'rtl8367c_setAsicVlanMemberConfig' [-Werror=missing-prototypes]
1038 | ret_t rtl8367c_setAsicVlanMemberConfig(rtk_uint32 index, rtl8367c_vlanconfiguser *pVlanCg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:1086:7: error: no previous prototype for 'rtl8367c_setAsicVlanEgressTagMode' [-Werror=missing-prototypes]
1086 | ret_t rtl8367c_setAsicVlanEgressTagMode(rtk_uint32 port, rtl8367c_egtagmode tagMode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:1097:7: error: no previous prototype for 'rtl8367c_setAsicVlanPortBasedVID' [-Werror=missing-prototypes]
1097 | ret_t rtl8367c_setAsicVlanPortBasedVID(rtk_uint32 port, rtk_uint32 index, rtk_uint32 pri)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:1126:7: error: no previous prototype for 'rtl8367c_setAsicVlanIngressFilter' [-Werror=missing-prototypes]
1126 | ret_t rtl8367c_setAsicVlanIngressFilter(rtk_uint32 port, rtk_uint32 enabled)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:1134:7: error: no previous prototype for 'rtl8367c_setAsicVlanFilter' [-Werror=missing-prototypes]
1134 | ret_t rtl8367c_setAsicVlanFilter(rtk_uint32 enabled)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1141:15: error: no previous prototype for 'rtk_port_macForceLinkExt_set' [-Werror=missing-prototypes]
1141 | rtk_api_ret_t rtk_port_macForceLinkExt_set(rtk_port_t port, rtk_mode_ext_t mode, rtk_port_mac_ability_t *pPortability)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1210:15: error: no previous prototype for 'rtk_port_phyReg_set' [-Werror=missing-prototypes]
1210 | rtk_api_ret_t rtk_port_phyReg_set(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t regData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1226:15: error: no previous prototype for 'rtk_port_phyReg_get' [-Werror=missing-prototypes]
1226 | rtk_api_ret_t rtk_port_phyReg_get(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t *pData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1242:15: error: no previous prototype for 'rtk_port_phyEnableAll_set' [-Werror=missing-prototypes]
1242 | rtk_api_ret_t rtk_port_phyEnableAll_set(rtk_enable_t enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1283:15: error: no previous prototype for 'rtk_port_rgmiiDelayExt_set' [-Werror=missing-prototypes]
1283 | rtk_api_ret_t rtk_port_rgmiiDelayExt_set(rtk_port_t port, rtk_data_t txDelay, rtk_data_t rxDelay)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1315:7: error: no previous prototype for 'rtl8367c_setSgmiiNway' [-Werror=missing-prototypes]
1315 | ret_t rtl8367c_setSgmiiNway(rtk_uint32 ext_id, rtk_uint32 state)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1402:15: error: no previous prototype for 'rtk_port_sgmiiNway_set' [-Werror=missing-prototypes]
1402 | rtk_api_ret_t rtk_port_sgmiiNway_set(rtk_port_t port, rtk_enable_t state)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1848:15: error: no previous prototype for 'rtk_switch_probe' [-Werror=missing-prototypes]
1848 | rtk_api_ret_t rtk_switch_probe(switch_chip_t *pSwitchChip)
| ^~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1897:15: error: no previous prototype for 'rtk_switch_initialState_set' [-Werror=missing-prototypes]
1897 | rtk_api_ret_t rtk_switch_initialState_set(init_state_t state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1906:15: error: no previous prototype for 'rtk_switch_init' [-Werror=missing-prototypes]
1906 | rtk_api_ret_t rtk_switch_init(void)
| ^~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:2017:6: error: no previous prototype for 'init_gsw' [-Werror=missing-prototypes]
2017 | void init_gsw(void)
| ^~~~~~~~
cc1: all warnings being treated as errors
vim +/rtk_switch_phyPortMask_get +887 drivers/net/dsa/rtl8367s_mdio.h
873
874 rtk_api_ret_t rtk_switch_logicalPortCheck(rtk_port_t logicalPort)
875 {
876 if(init_state != INIT_COMPLETED)
877 return RT_ERR_NOT_INIT;
878
879 if(logicalPort >= RTK_SWITCH_PORT_NUM)
880 return RT_ERR_FAILED;
881
882 if(halCtrl->l2p_port[logicalPort] == 0xFF)
883 return RT_ERR_FAILED;
884
885 return RT_ERR_OK;
886 }
> 887 rtk_uint32 rtk_switch_phyPortMask_get(void)
888 {
889 if(init_state != INIT_COMPLETED)
890 return 0x00; /* No port in portmask */
891
892 return (halCtrl->phy_portmask);
893 }
894 #define RTK_SCAN_ALL_LOG_PORT(__port__) for(__port__ = 0; __port__ < RTK_SWITCH_PORT_NUM; __port__++) if( rtk_switch_logicalPortCheck(__port__) == RT_ERR_OK)
895 #define RTK_PORTMASK_IS_PORT_SET(__portmask__, __port__) (((__portmask__).bits[0] & (0x00000001 << __port__)) ? 1 : 0)
896 #define RTK_PORTMASK_SCAN(__portmask__, __port__) for(__port__ = 0; __port__ < RTK_SWITCH_PORT_NUM; __port__++) if(RTK_PORTMASK_IS_PORT_SET(__portmask__, __port__))
897 #define RTK_PHY_PORTMASK_ALL (rtk_switch_phyPortMask_get())
898 #define RTK_SCAN_ALL_PHY_PORTMASK(__port__) for(__port__ = 0; __port__ < RTK_SWITCH_PORT_NUM; __port__++) if( (rtk_switch_phyPortMask_get() & (0x00000001 << __port__)))
899
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
【Amazon】個人情報を更新してください。
by Amazon.co.jp
誰かがあなたのアカウントにログインしました。
時間:Nov 15, 2021 00:12 AM Hong Kong Time
モデル:Google Chrome macOS (デスクトップ)
アドレス:Yau Tsim Mong, Hong Kong
ログインしている場合は、このメッセージを無視してかまいません。それ以外の場合は、セキュリティ上の理由から、Amazonアカウントを確認してください。
アカウントを引き続き使用するには、24時間以内に情報を更新することをお勧めします。そうしないと、アカウントが完全にロックされます。
確認用アカウント
© 1996-2021 Amazon. Inc. or its affiliates. All rights reserved. Amazon, Amazon.co.jp, Amazon Prime, Prime およびAmazon.co.jp のロゴは Amazon.com, Inc.またはその関連会社の商標です。 Amazon.com, 410 Terry Avenue N., Seattle, WA 98109-5210
10 months, 1 week
[frank-w-bpi-r2-4.14:5.15-rtl8367dsa 45/52] drivers/net/dsa/rtl8367s_mdio.h:919:15: warning: no previous prototype for 'rtk_switch_isPortMaskValid'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-rtl8367dsa
head: 9ffbece5dd6bf9a9b7d5de16506cc8f3942b5b54
commit: eb3332b0b1280a1197e074de26e379a7fd5ae886 [45/52] net: dsa: add basic vlan functions
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/frank-w/BPI-R2-4.14/commit/eb3332b0b1280a1197e074de26e...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-rtl8367dsa
git checkout eb3332b0b1280a1197e074de26e379a7fd5ae886
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/net/dsa/rtl8367s_mdio.c:23:
drivers/net/dsa/rtl8367s_mdio.h:827:15: warning: no previous prototype for 'rtk_vlan_reset' [-Wmissing-prototypes]
827 | rtk_api_ret_t rtk_vlan_reset(void) {return 0;}
| ^~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:829:15: warning: no previous prototype for 'rtk_vlan_init' [-Wmissing-prototypes]
829 | rtk_api_ret_t rtk_vlan_init(void) {return 0;}
| ^~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:833:15: warning: no previous prototype for 'rtk_vlan_portPvid_set' [-Wmissing-prototypes]
833 | rtk_api_ret_t rtk_vlan_portPvid_set(rtk_port_t port, rtk_vlan_t pvid, rtk_pri_t priority) {return 0;}
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:835:15: warning: no previous prototype for 'rtk_switch_logicalPortCheck' [-Wmissing-prototypes]
835 | rtk_api_ret_t rtk_switch_logicalPortCheck(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:852:15: warning: no previous prototype for 'rtk_switch_isExtPort' [-Wmissing-prototypes]
852 | rtk_api_ret_t rtk_switch_isExtPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:866:15: warning: no previous prototype for 'rtk_switch_isUtpPort' [-Wmissing-prototypes]
866 | rtk_api_ret_t rtk_switch_isUtpPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:880:15: warning: no previous prototype for 'rtk_switch_isHsgPort' [-Wmissing-prototypes]
880 | rtk_api_ret_t rtk_switch_isHsgPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:894:15: warning: no previous prototype for 'rtk_switch_isSgmiiPort' [-Wmissing-prototypes]
894 | rtk_api_ret_t rtk_switch_isSgmiiPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:908:12: warning: no previous prototype for 'rtk_switch_port_L2P_get' [-Wmissing-prototypes]
908 | rtk_uint32 rtk_switch_port_L2P_get(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:919:15: warning: no previous prototype for 'rtk_switch_isPortMaskValid' [-Wmissing-prototypes]
919 | rtk_api_ret_t rtk_switch_isPortMaskValid(rtk_portmask_t *pPmask)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:933:15: warning: no previous prototype for 'rtk_switch_portmask_L2P_get' [-Wmissing-prototypes]
933 | rtk_api_ret_t rtk_switch_portmask_L2P_get(rtk_portmask_t *pLogicalPmask, rtk_uint32 *pPhysicalPortmask)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:961:12: warning: no previous prototype for 'rtk_switch_maxMeterId_get' [-Wmissing-prototypes]
961 | rtk_uint32 rtk_switch_maxMeterId_get(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:46:14: warning: no previous prototype for 'mii_mgr_read' [-Wmissing-prototypes]
46 | unsigned int mii_mgr_read(unsigned int phy_addr,unsigned int phy_register,unsigned int *read_data)
| ^~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:59:14: warning: no previous prototype for 'mii_mgr_write' [-Wmissing-prototypes]
59 | unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int phy_register,unsigned int write_data)
| ^~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:76:11: warning: no previous prototype for 'smi_read' [-Wmissing-prototypes]
76 | rtk_int32 smi_read(rtk_uint32 mAddrs, rtk_uint32 *rData)
| ^~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:105:11: warning: no previous prototype for 'smi_write' [-Wmissing-prototypes]
105 | rtk_int32 smi_write(rtk_uint32 mAddrs, rtk_uint32 rData)
| ^~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:135:7: warning: no previous prototype for 'rtl8367c_setAsicReg' [-Wmissing-prototypes]
135 | ret_t rtl8367c_setAsicReg(rtk_uint32 reg, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:146:7: warning: no previous prototype for 'rtl8367c_getAsicReg' [-Wmissing-prototypes]
146 | ret_t rtl8367c_getAsicReg(rtk_uint32 reg, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:162:7: warning: no previous prototype for 'rtl8367c_setAsicRegBit' [-Wmissing-prototypes]
162 | ret_t rtl8367c_setAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:186:7: warning: no previous prototype for 'rtl8367c_getAsicRegBit' [-Wmissing-prototypes]
186 | ret_t rtl8367c_getAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:201:7: warning: no previous prototype for 'rtl8367c_getAsicRegBits' [-Wmissing-prototypes]
201 | ret_t rtl8367c_getAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:227:7: warning: no previous prototype for 'rtl8367c_setAsicRegBits' [-Wmissing-prototypes]
227 | ret_t rtl8367c_setAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:264:7: warning: no previous prototype for 'rtl8367c_setAsicPHYOCPReg' [-Wmissing-prototypes]
264 | ret_t rtl8367c_setAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 ocpData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:285:7: warning: no previous prototype for 'rtl8367c_getAsicPHYOCPReg' [-Wmissing-prototypes]
285 | ret_t rtl8367c_getAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:306:7: warning: no previous prototype for 'rtl8367c_setAsicSdsReg' [-Wmissing-prototypes]
306 | ret_t rtl8367c_setAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:323:7: warning: no previous prototype for 'rtl8367c_getAsicSdsReg' [-Wmissing-prototypes]
323 | ret_t rtl8367c_getAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:349:7: warning: no previous prototype for 'rtl8367c_setAsicPHYReg' [-Wmissing-prototypes]
349 | ret_t rtl8367c_setAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 phyData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:360:7: warning: no previous prototype for 'rtl8367c_getAsicPHYReg' [-Wmissing-prototypes]
360 | ret_t rtl8367c_getAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:373:15: warning: no previous prototype for 'rtk_port_phyReg_set' [-Wmissing-prototypes]
373 | rtk_api_ret_t rtk_port_phyReg_set(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t regData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:389:15: warning: no previous prototype for 'rtk_port_phyReg_get' [-Wmissing-prototypes]
389 | rtk_api_ret_t rtk_port_phyReg_get(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t *pData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:505:15: warning: no previous prototype for 'rtk_switch_probe' [-Wmissing-prototypes]
505 | rtk_api_ret_t rtk_switch_probe(switch_chip_t *pSwitchChip)
| ^~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:554:15: warning: no previous prototype for 'rtk_switch_initialState_set' [-Wmissing-prototypes]
554 | rtk_api_ret_t rtk_switch_initialState_set(init_state_t state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:563:15: warning: no previous prototype for 'rtk_switch_init' [-Wmissing-prototypes]
563 | rtk_api_ret_t rtk_switch_init(void)
| ^~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:648:7: warning: no previous prototype for 'rtl8367c_setAsicVlan4kEntry' [-Wmissing-prototypes]
648 | ret_t rtl8367c_setAsicVlan4kEntry(rtl8367c_user_vlan4kentry *pVlan4kEntry )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:703:7: warning: no previous prototype for 'rtl8367c_setAsicVlanMemberConfig' [-Wmissing-prototypes]
703 | ret_t rtl8367c_setAsicVlanMemberConfig(rtk_uint32 index, rtl8367c_vlanconfiguser *pVlanCg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1022:7: warning: no previous prototype for 'rtl8367c_setAsicPortEnableAll' [-Wmissing-prototypes]
1022 | ret_t rtl8367c_setAsicPortEnableAll(rtk_uint32 enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1031:7: warning: no previous prototype for 'rtl8367c_setAsicPortExtMode' [-Wmissing-prototypes]
1031 | ret_t rtl8367c_setAsicPortExtMode(rtk_uint32 id, rtk_uint32 mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1409:7: warning: no previous prototype for 'rtl8367c_setAsicPortForceLinkExt' [-Wmissing-prototypes]
1409 | ret_t rtl8367c_setAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1495:7: warning: no previous prototype for 'rtl8367c_getAsicPortForceLinkExt' [-Wmissing-prototypes]
1495 | ret_t rtl8367c_getAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1601:15: warning: no previous prototype for 'rtk_port_macForceLinkExt_set' [-Wmissing-prototypes]
1601 | rtk_api_ret_t rtk_port_macForceLinkExt_set(rtk_port_t port, rtk_mode_ext_t mode, rtk_port_mac_ability_t *pPortability)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1669:15: warning: no previous prototype for 'rtk_port_phyEnableAll_set' [-Wmissing-prototypes]
1669 | rtk_api_ret_t rtk_port_phyEnableAll_set(rtk_enable_t enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1710:15: warning: no previous prototype for 'rtk_port_rgmiiDelayExt_set' [-Wmissing-prototypes]
1710 | rtk_api_ret_t rtk_port_rgmiiDelayExt_set(rtk_port_t port, rtk_data_t txDelay, rtk_data_t rxDelay)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1742:7: warning: no previous prototype for 'rtl8367c_setSgmiiNway' [-Wmissing-prototypes]
1742 | ret_t rtl8367c_setSgmiiNway(rtk_uint32 ext_id, rtk_uint32 state)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1829:15: warning: no previous prototype for 'rtk_port_sgmiiNway_set' [-Wmissing-prototypes]
1829 | rtk_api_ret_t rtk_port_sgmiiNway_set(rtk_port_t port, rtk_enable_t state)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1884:6: warning: no previous prototype for 'init_gsw' [-Wmissing-prototypes]
1884 | void init_gsw(void)
| ^~~~~~~~
vim +/rtk_switch_isPortMaskValid +919 drivers/net/dsa/rtl8367s_mdio.h
918
> 919 rtk_api_ret_t rtk_switch_isPortMaskValid(rtk_portmask_t *pPmask)
920 {
921 if(init_state != INIT_COMPLETED)
922 return RT_ERR_NOT_INIT;
923
924 if(NULL == pPmask)
925 return RT_ERR_NULL_POINTER;
926
927 if( (pPmask->bits[0] | halCtrl->valid_portmask) != halCtrl->valid_portmask )
928 return RT_ERR_FAILED;
929 else
930 return RT_ERR_OK;
931 }
932
> 933 rtk_api_ret_t rtk_switch_portmask_L2P_get(rtk_portmask_t *pLogicalPmask, rtk_uint32 *pPhysicalPortmask)
934 {
935 rtk_uint32 log_port, phy_port;
936
937 if(init_state != INIT_COMPLETED)
938 return RT_ERR_NOT_INIT;
939
940 if(NULL == pLogicalPmask)
941 return RT_ERR_NULL_POINTER;
942
943 if(NULL == pPhysicalPortmask)
944 return RT_ERR_NULL_POINTER;
945
946 if(rtk_switch_isPortMaskValid(pLogicalPmask) != RT_ERR_OK)
947 return RT_ERR_PORT_MASK;
948
949 /* reset physical port mask */
950 *pPhysicalPortmask = 0;
951
952 RTK_PORTMASK_SCAN((*pLogicalPmask), log_port)
953 {
954 phy_port = rtk_switch_port_L2P_get((rtk_port_t)log_port);
955 *pPhysicalPortmask |= (0x0001 << phy_port);
956 }
957
958 return RT_ERR_OK;
959 }
960
> 961 rtk_uint32 rtk_switch_maxMeterId_get(void)
962 {
963 if(init_state != INIT_COMPLETED)
964 return 0x00;
965
966 return (halCtrl->max_meter_id);
967 }
968
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[nsaenz-rpi:wip 4/5] mm/page_alloc.c:1472:30: sparse: sparse: incorrect type in assignment (different modifiers)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/nsaenz/linux-rpi.git wip
head: a6f29192b1e2bf93a6ab7c25c854307431124b8b
commit: fa796c53bdbc3c8619a6f8d7d2d530e4c2e76ba9 [4/5] mm/page_alloc: Access to lists in 'struct per_cpu_pages' indirectly
config: arm64-randconfig-s031-20211008 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/nsaenz/linux-rpi.git/comm...
git remote add nsaenz-rpi https://git.kernel.org/pub/scm/linux/kernel/git/nsaenz/linux-rpi.git
git fetch --no-tags nsaenz-rpi wip
git checkout fa796c53bdbc3c8619a6f8d7d2d530e4c2e76ba9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> mm/page_alloc.c:1472:30: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected struct list_head *list @@ got struct list_head [noderef] * @@
mm/page_alloc.c:1472:30: sparse: expected struct list_head *list
mm/page_alloc.c:1472:30: sparse: got struct list_head [noderef] *
>> mm/page_alloc.c:3383:40: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected struct list_head *head @@ got struct list_head [noderef] * @@
mm/page_alloc.c:3383:40: sparse: expected struct list_head *head
mm/page_alloc.c:3383:40: sparse: got struct list_head [noderef] *
mm/page_alloc.c:5987:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct per_cpu_pages [noderef] __percpu ** @@
mm/page_alloc.c:5987:17: sparse: expected void const [noderef] __percpu *__vpp_verify
mm/page_alloc.c:5987:17: sparse: got struct per_cpu_pages [noderef] __percpu **
mm/page_alloc.c:5987:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct per_cpu_pages [noderef] __percpu ** @@
mm/page_alloc.c:5987:17: sparse: expected void const [noderef] __percpu *__vpp_verify
mm/page_alloc.c:5987:17: sparse: got struct per_cpu_pages [noderef] __percpu **
mm/page_alloc.c:5987:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct per_cpu_pages [noderef] __percpu ** @@
mm/page_alloc.c:5987:17: sparse: expected void const [noderef] __percpu *__vpp_verify
mm/page_alloc.c:5987:17: sparse: got struct per_cpu_pages [noderef] __percpu **
mm/page_alloc.c:5987:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct per_cpu_pages [noderef] __percpu ** @@
mm/page_alloc.c:5987:17: sparse: expected void const [noderef] __percpu *__vpp_verify
mm/page_alloc.c:5987:17: sparse: got struct per_cpu_pages [noderef] __percpu **
mm/page_alloc.c:5987:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct per_cpu_pages [noderef] __percpu ** @@
mm/page_alloc.c:5987:17: sparse: expected void const [noderef] __percpu *__vpp_verify
mm/page_alloc.c:5987:17: sparse: got struct per_cpu_pages [noderef] __percpu **
>> mm/page_alloc.c:6892:47: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct list_head *list @@ got struct list_head [noderef] * @@
mm/page_alloc.c:6892:47: sparse: expected struct list_head *list
mm/page_alloc.c:6892:47: sparse: got struct list_head [noderef] *
>> mm/page_alloc.c:1457:17: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:1512:9: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3104:13: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3105:42: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3218:29: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3223:37: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3384:9: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3386:13: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3618:14: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected struct list_head *list @@ got struct list_head [noderef] * @@
mm/page_alloc.c:3618:14: sparse: expected struct list_head *list
mm/page_alloc.c:3618:14: sparse: got struct list_head [noderef] *
mm/page_alloc.c:3638:25: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3645:17: sparse: sparse: dereference of noderef expression
mm/page_alloc.c: note: in included file (through include/linux/mm.h):
include/linux/gfp.h:353:27: sparse: sparse: restricted gfp_t degrades to integer
include/linux/gfp.h:353:27: sparse: sparse: restricted gfp_t degrades to integer
mm/page_alloc.c:3618:14: sparse: sparse: incorrect type in assignment (different modifiers) @@ expected struct list_head *list @@ got struct list_head [noderef] * @@
mm/page_alloc.c:3618:14: sparse: expected struct list_head *list
mm/page_alloc.c:3618:14: sparse: got struct list_head [noderef] *
mm/page_alloc.c:3638:25: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:3645:17: sparse: sparse: dereference of noderef expression
include/linux/gfp.h:353:27: sparse: sparse: restricted gfp_t degrades to integer
include/linux/gfp.h:353:27: sparse: sparse: restricted gfp_t degrades to integer
include/linux/gfp.h:353:27: sparse: sparse: restricted gfp_t degrades to integer
include/linux/gfp.h:353:27: sparse: sparse: restricted gfp_t degrades to integer
mm/page_alloc.c:5890:76: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:5984:76: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:5987:17: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:5987:17: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:5987:17: sparse: sparse: dereference of noderef expression
mm/page_alloc.c:5987:17: sparse: sparse: dereference of noderef expression
vim +1472 mm/page_alloc.c
1428
1429 /*
1430 * Frees a number of pages from the PCP lists
1431 * Assumes all pages on list are in same zone, and of same order.
1432 * count is the number of pages to free.
1433 *
1434 * If the zone was previously in an "all pages pinned" state then look to
1435 * see if this freeing clears that state.
1436 *
1437 * And clear the zone's pages_scanned counter, to hold off the "all pages are
1438 * pinned" detection logic.
1439 */
1440 static void free_pcppages_bulk(struct zone *zone, int count,
1441 struct per_cpu_pages *pcp,
1442 struct pcplists *lp)
1443 {
1444 int pindex = 0;
1445 int batch_free = 0;
1446 int nr_freed = 0;
1447 unsigned int order;
1448 int prefetch_nr = READ_ONCE(pcp->batch);
1449 bool isolated_pageblocks;
1450 struct page *page, *tmp;
1451 LIST_HEAD(head);
1452
1453 /*
1454 * Ensure proper count is passed which otherwise would stuck in the
1455 * below while (list_empty(list)) loop.
1456 */
> 1457 count = min(lp->count, count);
1458 while (count > 0) {
1459 struct list_head *list;
1460
1461 /*
1462 * Remove pages from lists in a round-robin fashion. A
1463 * batch_free count is maintained that is incremented when an
1464 * empty list is encountered. This is so more pages are freed
1465 * off fuller lists instead of spinning excessively around empty
1466 * lists
1467 */
1468 do {
1469 batch_free++;
1470 if (++pindex == NR_PCP_LISTS)
1471 pindex = 0;
> 1472 list = &lp->lists[pindex];
1473 } while (list_empty(list));
1474
1475 /* This is the only non-empty list. Free them all. */
1476 if (batch_free == NR_PCP_LISTS)
1477 batch_free = count;
1478
1479 order = pindex_to_order(pindex);
1480 BUILD_BUG_ON(MAX_ORDER >= (1<<NR_PCP_ORDER_WIDTH));
1481 do {
1482 page = list_last_entry(list, struct page, lru);
1483 /* must delete to avoid corrupting pcp list */
1484 list_del(&page->lru);
1485 nr_freed += 1 << order;
1486 count -= 1 << order;
1487
1488 if (bulkfree_pcp_prepare(page))
1489 continue;
1490
1491 /* Encode order with the migratetype */
1492 page->index <<= NR_PCP_ORDER_WIDTH;
1493 page->index |= order;
1494
1495 list_add_tail(&page->lru, &head);
1496
1497 /*
1498 * We are going to put the page back to the global
1499 * pool, prefetch its buddy to speed up later access
1500 * under zone->lock. It is believed the overhead of
1501 * an additional test and calculating buddy_pfn here
1502 * can be offset by reduced memory latency later. To
1503 * avoid excessive prefetching due to large count, only
1504 * prefetch buddy for the first pcp->batch nr of pages.
1505 */
1506 if (prefetch_nr) {
1507 prefetch_buddy(page);
1508 prefetch_nr--;
1509 }
1510 } while (count > 0 && --batch_free && !list_empty(list));
1511 }
1512 lp->count -= nr_freed;
1513
1514 /*
1515 * local_lock_irq held so equivalent to spin_lock_irqsave for
1516 * both PREEMPT_RT and non-PREEMPT_RT configurations.
1517 */
1518 spin_lock(&zone->lock);
1519 isolated_pageblocks = has_isolate_pageblock(zone);
1520
1521 /*
1522 * Use safe version since after __free_one_page(),
1523 * page->lru.next will not point to original list.
1524 */
1525 list_for_each_entry_safe(page, tmp, &head, lru) {
1526 int mt = get_pcppage_migratetype(page);
1527
1528 /* mt has been encoded with the order (see above) */
1529 order = mt & NR_PCP_ORDER_MASK;
1530 mt >>= NR_PCP_ORDER_WIDTH;
1531
1532 /* MIGRATE_ISOLATE page should not go to pcplists */
1533 VM_BUG_ON_PAGE(is_migrate_isolate(mt), page);
1534 /* Pageblock could have been isolated meanwhile */
1535 if (unlikely(isolated_pageblocks))
1536 mt = get_pageblock_migratetype(page);
1537
1538 __free_one_page(page, page_to_pfn(page), zone, order, mt, FPI_NONE);
1539 trace_mm_page_pcpu_drain(page, order, mt);
1540 }
1541 spin_unlock(&zone->lock);
1542 }
1543
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[frank-w-bpi-r2-4.14:5.15-rtl8367dsa 45/52] drivers/net/dsa/rtl8367s_mdio.h:919:15: error: no previous prototype for 'rtk_switch_isPortMaskValid'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.15-rtl8367dsa
head: 9ffbece5dd6bf9a9b7d5de16506cc8f3942b5b54
commit: eb3332b0b1280a1197e074de26e379a7fd5ae886 [45/52] net: dsa: add basic vlan functions
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc-linux-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://github.com/frank-w/BPI-R2-4.14/commit/eb3332b0b1280a1197e074de26e...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.15-rtl8367dsa
git checkout eb3332b0b1280a1197e074de26e379a7fd5ae886
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/dsa/rtl8367s_mdio.c:23:
drivers/net/dsa/rtl8367s_mdio.h:827:15: error: no previous prototype for 'rtk_vlan_reset' [-Werror=missing-prototypes]
827 | rtk_api_ret_t rtk_vlan_reset(void) {return 0;}
| ^~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:829:15: error: no previous prototype for 'rtk_vlan_init' [-Werror=missing-prototypes]
829 | rtk_api_ret_t rtk_vlan_init(void) {return 0;}
| ^~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:833:15: error: no previous prototype for 'rtk_vlan_portPvid_set' [-Werror=missing-prototypes]
833 | rtk_api_ret_t rtk_vlan_portPvid_set(rtk_port_t port, rtk_vlan_t pvid, rtk_pri_t priority) {return 0;}
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:835:15: error: no previous prototype for 'rtk_switch_logicalPortCheck' [-Werror=missing-prototypes]
835 | rtk_api_ret_t rtk_switch_logicalPortCheck(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:852:15: error: no previous prototype for 'rtk_switch_isExtPort' [-Werror=missing-prototypes]
852 | rtk_api_ret_t rtk_switch_isExtPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:866:15: error: no previous prototype for 'rtk_switch_isUtpPort' [-Werror=missing-prototypes]
866 | rtk_api_ret_t rtk_switch_isUtpPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:880:15: error: no previous prototype for 'rtk_switch_isHsgPort' [-Werror=missing-prototypes]
880 | rtk_api_ret_t rtk_switch_isHsgPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:894:15: error: no previous prototype for 'rtk_switch_isSgmiiPort' [-Werror=missing-prototypes]
894 | rtk_api_ret_t rtk_switch_isSgmiiPort(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.h:908:12: error: no previous prototype for 'rtk_switch_port_L2P_get' [-Werror=missing-prototypes]
908 | rtk_uint32 rtk_switch_port_L2P_get(rtk_port_t logicalPort)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:919:15: error: no previous prototype for 'rtk_switch_isPortMaskValid' [-Werror=missing-prototypes]
919 | rtk_api_ret_t rtk_switch_isPortMaskValid(rtk_portmask_t *pPmask)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:933:15: error: no previous prototype for 'rtk_switch_portmask_L2P_get' [-Werror=missing-prototypes]
933 | rtk_api_ret_t rtk_switch_portmask_L2P_get(rtk_portmask_t *pLogicalPmask, rtk_uint32 *pPhysicalPortmask)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.h:961:12: error: no previous prototype for 'rtk_switch_maxMeterId_get' [-Werror=missing-prototypes]
961 | rtk_uint32 rtk_switch_maxMeterId_get(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:46:14: error: no previous prototype for 'mii_mgr_read' [-Werror=missing-prototypes]
46 | unsigned int mii_mgr_read(unsigned int phy_addr,unsigned int phy_register,unsigned int *read_data)
| ^~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:59:14: error: no previous prototype for 'mii_mgr_write' [-Werror=missing-prototypes]
59 | unsigned int mii_mgr_write(unsigned int phy_addr,unsigned int phy_register,unsigned int write_data)
| ^~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:76:11: error: no previous prototype for 'smi_read' [-Werror=missing-prototypes]
76 | rtk_int32 smi_read(rtk_uint32 mAddrs, rtk_uint32 *rData)
| ^~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:105:11: error: no previous prototype for 'smi_write' [-Werror=missing-prototypes]
105 | rtk_int32 smi_write(rtk_uint32 mAddrs, rtk_uint32 rData)
| ^~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:135:7: error: no previous prototype for 'rtl8367c_setAsicReg' [-Werror=missing-prototypes]
135 | ret_t rtl8367c_setAsicReg(rtk_uint32 reg, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:146:7: error: no previous prototype for 'rtl8367c_getAsicReg' [-Werror=missing-prototypes]
146 | ret_t rtl8367c_getAsicReg(rtk_uint32 reg, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:162:7: error: no previous prototype for 'rtl8367c_setAsicRegBit' [-Werror=missing-prototypes]
162 | ret_t rtl8367c_setAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:186:7: error: no previous prototype for 'rtl8367c_getAsicRegBit' [-Werror=missing-prototypes]
186 | ret_t rtl8367c_getAsicRegBit(rtk_uint32 reg, rtk_uint32 bit, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:201:7: error: no previous prototype for 'rtl8367c_getAsicRegBits' [-Werror=missing-prototypes]
201 | ret_t rtl8367c_getAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 *pValue)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:227:7: error: no previous prototype for 'rtl8367c_setAsicRegBits' [-Werror=missing-prototypes]
227 | ret_t rtl8367c_setAsicRegBits(rtk_uint32 reg, rtk_uint32 bits, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:264:7: error: no previous prototype for 'rtl8367c_setAsicPHYOCPReg' [-Werror=missing-prototypes]
264 | ret_t rtl8367c_setAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 ocpData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:285:7: error: no previous prototype for 'rtl8367c_getAsicPHYOCPReg' [-Werror=missing-prototypes]
285 | ret_t rtl8367c_getAsicPHYOCPReg(rtk_uint32 phyNo, rtk_uint32 ocpAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:306:7: error: no previous prototype for 'rtl8367c_setAsicSdsReg' [-Werror=missing-prototypes]
306 | ret_t rtl8367c_setAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:323:7: error: no previous prototype for 'rtl8367c_getAsicSdsReg' [-Werror=missing-prototypes]
323 | ret_t rtl8367c_getAsicSdsReg(rtk_uint32 sdsId, rtk_uint32 sdsReg, rtk_uint32 sdsPage, rtk_uint32 *value)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:349:7: error: no previous prototype for 'rtl8367c_setAsicPHYReg' [-Werror=missing-prototypes]
349 | ret_t rtl8367c_setAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 phyData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:360:7: error: no previous prototype for 'rtl8367c_getAsicPHYReg' [-Werror=missing-prototypes]
360 | ret_t rtl8367c_getAsicPHYReg(rtk_uint32 phyNo, rtk_uint32 phyAddr, rtk_uint32 *pRegData )
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:373:15: error: no previous prototype for 'rtk_port_phyReg_set' [-Werror=missing-prototypes]
373 | rtk_api_ret_t rtk_port_phyReg_set(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t regData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:389:15: error: no previous prototype for 'rtk_port_phyReg_get' [-Werror=missing-prototypes]
389 | rtk_api_ret_t rtk_port_phyReg_get(rtk_port_t port, rtk_port_phy_reg_t reg, rtk_port_phy_data_t *pData)
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:505:15: error: no previous prototype for 'rtk_switch_probe' [-Werror=missing-prototypes]
505 | rtk_api_ret_t rtk_switch_probe(switch_chip_t *pSwitchChip)
| ^~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:554:15: error: no previous prototype for 'rtk_switch_initialState_set' [-Werror=missing-prototypes]
554 | rtk_api_ret_t rtk_switch_initialState_set(init_state_t state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:563:15: error: no previous prototype for 'rtk_switch_init' [-Werror=missing-prototypes]
563 | rtk_api_ret_t rtk_switch_init(void)
| ^~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:648:7: error: no previous prototype for 'rtl8367c_setAsicVlan4kEntry' [-Werror=missing-prototypes]
648 | ret_t rtl8367c_setAsicVlan4kEntry(rtl8367c_user_vlan4kentry *pVlan4kEntry )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/rtl8367s_mdio.c:703:7: error: no previous prototype for 'rtl8367c_setAsicVlanMemberConfig' [-Werror=missing-prototypes]
703 | ret_t rtl8367c_setAsicVlanMemberConfig(rtk_uint32 index, rtl8367c_vlanconfiguser *pVlanCg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1022:7: error: no previous prototype for 'rtl8367c_setAsicPortEnableAll' [-Werror=missing-prototypes]
1022 | ret_t rtl8367c_setAsicPortEnableAll(rtk_uint32 enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1031:7: error: no previous prototype for 'rtl8367c_setAsicPortExtMode' [-Werror=missing-prototypes]
1031 | ret_t rtl8367c_setAsicPortExtMode(rtk_uint32 id, rtk_uint32 mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1409:7: error: no previous prototype for 'rtl8367c_setAsicPortForceLinkExt' [-Werror=missing-prototypes]
1409 | ret_t rtl8367c_setAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1495:7: error: no previous prototype for 'rtl8367c_getAsicPortForceLinkExt' [-Werror=missing-prototypes]
1495 | ret_t rtl8367c_getAsicPortForceLinkExt(rtk_uint32 id, rtl8367c_port_ability_t *pPortAbility)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1601:15: error: no previous prototype for 'rtk_port_macForceLinkExt_set' [-Werror=missing-prototypes]
1601 | rtk_api_ret_t rtk_port_macForceLinkExt_set(rtk_port_t port, rtk_mode_ext_t mode, rtk_port_mac_ability_t *pPortability)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1669:15: error: no previous prototype for 'rtk_port_phyEnableAll_set' [-Werror=missing-prototypes]
1669 | rtk_api_ret_t rtk_port_phyEnableAll_set(rtk_enable_t enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1710:15: error: no previous prototype for 'rtk_port_rgmiiDelayExt_set' [-Werror=missing-prototypes]
1710 | rtk_api_ret_t rtk_port_rgmiiDelayExt_set(rtk_port_t port, rtk_data_t txDelay, rtk_data_t rxDelay)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1742:7: error: no previous prototype for 'rtl8367c_setSgmiiNway' [-Werror=missing-prototypes]
1742 | ret_t rtl8367c_setSgmiiNway(rtk_uint32 ext_id, rtk_uint32 state)
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1829:15: error: no previous prototype for 'rtk_port_sgmiiNway_set' [-Werror=missing-prototypes]
1829 | rtk_api_ret_t rtk_port_sgmiiNway_set(rtk_port_t port, rtk_enable_t state)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl8367s_mdio.c:1884:6: error: no previous prototype for 'init_gsw' [-Werror=missing-prototypes]
1884 | void init_gsw(void)
| ^~~~~~~~
cc1: all warnings being treated as errors
vim +/rtk_switch_isPortMaskValid +919 drivers/net/dsa/rtl8367s_mdio.h
918
> 919 rtk_api_ret_t rtk_switch_isPortMaskValid(rtk_portmask_t *pPmask)
920 {
921 if(init_state != INIT_COMPLETED)
922 return RT_ERR_NOT_INIT;
923
924 if(NULL == pPmask)
925 return RT_ERR_NULL_POINTER;
926
927 if( (pPmask->bits[0] | halCtrl->valid_portmask) != halCtrl->valid_portmask )
928 return RT_ERR_FAILED;
929 else
930 return RT_ERR_OK;
931 }
932
> 933 rtk_api_ret_t rtk_switch_portmask_L2P_get(rtk_portmask_t *pLogicalPmask, rtk_uint32 *pPhysicalPortmask)
934 {
935 rtk_uint32 log_port, phy_port;
936
937 if(init_state != INIT_COMPLETED)
938 return RT_ERR_NOT_INIT;
939
940 if(NULL == pLogicalPmask)
941 return RT_ERR_NULL_POINTER;
942
943 if(NULL == pPhysicalPortmask)
944 return RT_ERR_NULL_POINTER;
945
946 if(rtk_switch_isPortMaskValid(pLogicalPmask) != RT_ERR_OK)
947 return RT_ERR_PORT_MASK;
948
949 /* reset physical port mask */
950 *pPhysicalPortmask = 0;
951
952 RTK_PORTMASK_SCAN((*pLogicalPmask), log_port)
953 {
954 phy_port = rtk_switch_port_L2P_get((rtk_port_t)log_port);
955 *pPhysicalPortmask |= (0x0001 << phy_port);
956 }
957
958 return RT_ERR_OK;
959 }
960
> 961 rtk_uint32 rtk_switch_maxMeterId_get(void)
962 {
963 if(init_state != INIT_COMPLETED)
964 return 0x00;
965
966 return (halCtrl->max_meter_id);
967 }
968
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:22: error: 'GIC_IRQ_TYPE_GSI' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head: ce3629841262f725a5f3a327403fcaf0e604a85e
commit: dcb27679932e5dbe7dbc20cd40bcb4b184ccaee5 [72/139] irqchip/gic, gic-v3: Translate fwspec for DT and ACPI systems in the same way
config: arm-allyesconfig (attached as .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/linux/kernel/git/morse/linux.git/commit/?i...
git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/snapshot/v5.15
git checkout dcb27679932e5dbe7dbc20cd40bcb4b184ccaee5
# save the attached .config 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 drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/irqchip/irq-gic.c: In function 'gic_irq_domain_translate':
>> drivers/irqchip/irq-gic.c:1075:22: error: 'GIC_IRQ_TYPE_GSI' undeclared (first use in this function)
1075 | case GIC_IRQ_TYPE_GSI: /* GSI */
| ^~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic.c:1075:22: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/irqchip/irq-gic-v3.c: In function 'gic_irq_domain_translate':
>> drivers/irqchip/irq-gic-v3.c:1423:22: error: 'GIC_IRQ_TYPE_GSI' undeclared (first use in this function)
1423 | case GIC_IRQ_TYPE_GSI: /* GSI */
| ^~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3.c:1423:22: note: each undeclared identifier is reported only once for each function it appears in
drivers/irqchip/irq-gic-v3.c:1424:22: error: 'GIC_IRQ_TYPE_LPI' undeclared (first use in this function)
1424 | case GIC_IRQ_TYPE_LPI: /* LPI */
| ^~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3.c:1427:22: error: 'GIC_IRQ_TYPE_PARTITION' undeclared (first use in this function)
1427 | case GIC_IRQ_TYPE_PARTITION:
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3.c: In function '__partition_ppis':
drivers/irqchip/irq-gic-v3.c:1830:43: error: 'GIC_IRQ_TYPE_PARTITION' undeclared (first use in this function)
1830 | [0] = GIC_IRQ_TYPE_PARTITION,
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/GIC_IRQ_TYPE_GSI +1075 drivers/irqchip/irq-gic.c
1050
1051 static int gic_irq_domain_translate(struct irq_domain *d,
1052 struct irq_fwspec *fwspec,
1053 unsigned long *hwirq,
1054 unsigned int *type)
1055 {
1056 if (fwspec->param_count == 1 && fwspec->param[0] < 16) {
1057 *hwirq = fwspec->param[0];
1058 *type = IRQ_TYPE_EDGE_RISING;
1059 return 0;
1060 }
1061
1062
1063 if (is_of_node(fwspec->fwnode) ||
1064 is_fwnode_irqchip(fwspec->fwnode)) {
1065 if (fwspec->param_count < 3)
1066 return -EINVAL;
1067
1068 switch (fwspec->param[0]) {
1069 case 0: /* SPI */
1070 *hwirq = fwspec->param[1] + 32;
1071 break;
1072 case 1: /* PPI */
1073 *hwirq = fwspec->param[1] + 16;
1074 break;
> 1075 case GIC_IRQ_TYPE_GSI: /* GSI */
1076 *hwirq = fwspec->param[1];
1077 break;
1078 default:
1079 return -EINVAL;
1080 }
1081
1082 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
1083
1084 /* Make it clear that broken DTs are... broken */
1085 WARN_ON(*type == IRQ_TYPE_NONE);
1086 return 0;
1087 }
1088
1089 return -EINVAL;
1090 }
1091
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/hwmon/corsair-psu.c:536:82: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: d115b51e0e567199c821fc39e13b6af7e78f247d hwmon: add Corsair PSU HID controller driver
date: 12 months ago
config: riscv-randconfig-s031-20211109 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d115b51e0e567199c821fc39e13b6af7e78f247d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash block/ drivers/hid/ drivers/hwmon/ drivers/i2c/busses/ drivers/message/fusion/ drivers/net/ethernet/ drivers/net/wireless/intel/iwlwifi/ drivers/pci/ drivers/remoteproc/ drivers/rtc/ drivers/staging/rts5208/ drivers/staging/vc04_services/ drivers/tty/serial/ drivers/vdpa/ drivers/video/fbdev/ net/qrtr/ net/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/corsair-psu.c:536:82: sparse: sparse: Using plain integer as NULL pointer
vim +536 drivers/hwmon/corsair-psu.c
490
491 static int corsairpsu_probe(struct hid_device *hdev, const struct hid_device_id *id)
492 {
493 struct corsairpsu_data *priv;
494 int ret;
495
496 priv = devm_kzalloc(&hdev->dev, sizeof(struct corsairpsu_data), GFP_KERNEL);
497 if (!priv)
498 return -ENOMEM;
499
500 priv->cmd_buffer = devm_kmalloc(&hdev->dev, CMD_BUFFER_SIZE, GFP_KERNEL);
501 if (!priv->cmd_buffer)
502 return -ENOMEM;
503
504 ret = hid_parse(hdev);
505 if (ret)
506 return ret;
507
508 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
509 if (ret)
510 return ret;
511
512 ret = hid_hw_open(hdev);
513 if (ret)
514 goto fail_and_stop;
515
516 priv->hdev = hdev;
517 hid_set_drvdata(hdev, priv);
518 mutex_init(&priv->lock);
519 init_completion(&priv->wait_completion);
520
521 hid_device_io_start(hdev);
522
523 ret = corsairpsu_init(priv);
524 if (ret < 0) {
525 dev_err(&hdev->dev, "unable to initialize device (%d)\n", ret);
526 goto fail_and_stop;
527 }
528
529 ret = corsairpsu_fwinfo(priv);
530 if (ret < 0) {
531 dev_err(&hdev->dev, "unable to query firmware (%d)\n", ret);
532 goto fail_and_stop;
533 }
534
535 priv->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsairpsu", priv,
> 536 &corsairpsu_chip_info, 0);
537
538 if (IS_ERR(priv->hwmon_dev)) {
539 ret = PTR_ERR(priv->hwmon_dev);
540 goto fail_and_close;
541 }
542
543 corsairpsu_debugfs_init(priv);
544
545 return 0;
546
547 fail_and_close:
548 hid_hw_close(hdev);
549 fail_and_stop:
550 hid_hw_stop(hdev);
551 return ret;
552 }
553
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week