[frank-w-bpi-r2-4.14:5.16-r2pro 51/65] drivers/net/phy/rtk/rtl8367c/l2.c:2248:9: error: variable 'pmask' is used uninitialized whenever switch default is taken
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro
head: 1952281ac3c335bf68742f52c06de02891690f43
commit: c6b9364c37cb5869d5c094186d57322c85bc677c [51/65] rtl8367: fix includes
config: i386-buildonly-randconfig-r001-20211230 (https://download.01.org/0day-ci/archive/20211231/202112310756.qwjVEhdF-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b7ac0615afc6e0f1a30da2777e361de27a3)
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/c6b9364c37cb5869d5c094186d5...
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.16-r2pro
git checkout c6b9364c37cb5869d5c094186d57322c85bc677c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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/net/phy/rtk/rtl8367c/l2.c:2248:9: error: variable 'pmask' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
default:
^~~~~~~
drivers/net/phy/rtk/rtl8367c/l2.c:2253:47: note: uninitialized use occurs here
if ((retVal = rtk_switch_portmask_P2L_get(pmask, pFlood_portmask))!=RT_ERR_OK)
^~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/net/phy/rtk/rtl8367c/l2.c:2223:21: note: initialize the variable 'pmask' to silence this warning
rtk_uint32 pmask;
^
= 0
1 error generated.
--
>> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if (AUTO_PROBE || defined(FORCE_PROBE_RTL8367C))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:22: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
>> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:56: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
>> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:90: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
>> drivers/net/phy/rtk/rtl8367c/rtk_switch.c:43:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:124: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if (AUTO_PROBE || defined(FORCE_PROBE_RTL8370B))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:22: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:56: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:90: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:112:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:124: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if (AUTO_PROBE || defined(FORCE_PROBE_RTL8364B))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:22: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:56: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:90: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:181:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:124: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if (AUTO_PROBE || defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:22: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:56: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:90: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:250:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
drivers/net/phy/rtk/rtl8367c/rtk_switch.c:41:124: note: expanded from macro 'AUTO_PROBE'
#define AUTO_PROBE (!defined(FORCE_PROBE_RTL8367C) && !defined(FORCE_PROBE_RTL8370B) && !defined(FORCE_PROBE_RTL8364B) && !defined(FORCE_PROBE_RTL8363SC_VB))
^
16 errors generated.
--
>> drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:14: error: variable 'sec_h' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
}else if(port == 9){
^~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:730:26: note: uninitialized use occurs here
timeStamp->second = (sec_h<<16) | sec_l;
^~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:11: note: remove the 'if' if its condition is always true
}else if(port == 9){
^~~~~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:654:21: note: initialize the variable 'sec_h' to silence this warning
rtk_uint32 sec_h, sec_l, nsec8_h, nsec8_l;
^
= 0
>> drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:14: error: variable 'sec_l' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
}else if(port == 9){
^~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:730:39: note: uninitialized use occurs here
timeStamp->second = (sec_h<<16) | sec_l;
^~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:11: note: remove the 'if' if its condition is always true
}else if(port == 9){
^~~~~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:654:28: note: initialize the variable 'sec_l' to silence this warning
rtk_uint32 sec_h, sec_l, nsec8_h, nsec8_l;
^
= 0
>> drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:14: error: variable 'nsec8_h' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
}else if(port == 9){
^~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:731:22: note: uninitialized use occurs here
nano_second_8 = (nsec8_h<<16) | nsec8_l;
^~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:11: note: remove the 'if' if its condition is always true
}else if(port == 9){
^~~~~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:654:37: note: initialize the variable 'nsec8_h' to silence this warning
rtk_uint32 sec_h, sec_l, nsec8_h, nsec8_l;
^
= 0
>> drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:14: error: variable 'nsec8_l' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
}else if(port == 9){
^~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:731:37: note: uninitialized use occurs here
nano_second_8 = (nsec8_h<<16) | nsec8_l;
^~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:717:11: note: remove the 'if' if its condition is always true
}else if(port == 9){
^~~~~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_eav.c:654:46: note: initialize the variable 'nsec8_l' to silence this warning
rtk_uint32 sec_h, sec_l, nsec8_h, nsec8_l;
^
= 0
4 errors generated.
--
>> drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:500:10: error: variable 'regAddr' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
else if(index == 63)
^~~~~~~~~~~~~~~
include/linux/compiler.h:56:28: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:30: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:503:34: note: uninitialized use occurs here
retVal = rtl8367c_setAsicReg(regAddr, regData);
^~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:500:10: note: remove the 'if' if its condition is always true
else if(index == 63)
^~~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:474:23: note: initialize the variable 'regAddr' to silence this warning
rtk_uint32 regAddr, regData;
^
= 0
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:554:10: error: variable 'regAddr' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
else if(index == 63)
^~~~~~~~~~~~~~~
include/linux/compiler.h:56:28: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:30: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:557:34: note: uninitialized use occurs here
retVal = rtl8367c_getAsicReg(regAddr, ®Data);
^~~~~~~
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:554:10: note: remove the 'if' if its condition is always true
else if(index == 63)
^~~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^
drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_svlan.c:529:23: note: initialize the variable 'regAddr' to silence this warning
rtk_uint32 regAddr,regData;
^
= 0
2 errors generated.
--
>> drivers/net/phy/rtk/rtl8367c/stat.c:143:50: error: implicit conversion from enumeration type 'rtk_stat_global_type_t' (aka 'enum rtk_stat_global_type_e') to different enumeration type 'RTL8367C_MIBCOUNTER' (aka 'enum RTL8367C_MIBCOUNTER_E') [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_getAsicMIBsCounter(0, cntr_idx, pCntr)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
>> drivers/net/phy/rtk/rtl8367c/stat.c:143:50: error: implicit conversion from enumeration type 'rtk_stat_global_type_t' (aka 'enum rtk_stat_global_type_e') to different enumeration type 'RTL8367C_MIBCOUNTER' (aka 'enum RTL8367C_MIBCOUNTER_E') [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_getAsicMIBsCounter(0, cntr_idx, pCntr)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/net/phy/rtk/rtl8367c/stat.c:143:50: error: implicit conversion from enumeration type 'rtk_stat_global_type_t' (aka 'enum rtk_stat_global_type_e') to different enumeration type 'RTL8367C_MIBCOUNTER' (aka 'enum RTL8367C_MIBCOUNTER_E') [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_getAsicMIBsCounter(0, cntr_idx, pCntr)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/net/phy/rtk/rtl8367c/stat.c:175:49: error: implicit conversion from enumeration type 'enum rtk_stat_global_type_e' to different enumeration type 'RTL8367C_MIBCOUNTER' (aka 'enum RTL8367C_MIBCOUNTER_E') [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_getAsicMIBsCounter(0,DOT1D_TP_LEARNED_ENTRY_DISCARDS_INDEX, &pGlobal_cntrs->dot1dTpLearnedEntryDiscards)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
>> drivers/net/phy/rtk/rtl8367c/stat.c:175:49: error: implicit conversion from enumeration type 'enum rtk_stat_global_type_e' to different enumeration type 'RTL8367C_MIBCOUNTER' (aka 'enum RTL8367C_MIBCOUNTER_E') [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_getAsicMIBsCounter(0,DOT1D_TP_LEARNED_ENTRY_DISCARDS_INDEX, &pGlobal_cntrs->dot1dTpLearnedEntryDiscards)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/net/phy/rtk/rtl8367c/stat.c:175:49: error: implicit conversion from enumeration type 'enum rtk_stat_global_type_e' to different enumeration type 'RTL8367C_MIBCOUNTER' (aka 'enum RTL8367C_MIBCOUNTER_E') [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_getAsicMIBsCounter(0,DOT1D_TP_LEARNED_ENTRY_DISCARDS_INDEX, &pGlobal_cntrs->dot1dTpLearnedEntryDiscards)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
6 errors generated.
--
>> drivers/net/phy/rtk/rtl8367c/vlan.c:953:22: error: implicit conversion from enumeration type 'rtk_vlan_protoVlan_frameType_t' (aka 'enum rtk_vlan_protoVlan_frameType_e') to different enumeration type 'rtl8367c_provlan_frametype' [-Werror,-Wenum-conversion]
tmp = pInfo->frame_type;
~ ~~~~~~~^~~~~~~~~~
drivers/net/phy/rtk/rtl8367c/vlan.c:979:41: error: implicit conversion from enumeration type 'rtk_vlan_protoVlan_frameType_t' (aka 'enum rtk_vlan_protoVlan_frameType_e') to different enumeration type 'rtl8367c_provlan_frametype' [-Werror,-Wenum-conversion]
ppb_data_cfg.frameType = pInfo->frame_type;
~ ~~~~~~~^~~~~~~~~~
>> drivers/net/phy/rtk/rtl8367c/vlan.c:1270:84: error: implicit conversion from enumeration type 'rtk_vlan_tagMode_t' (aka 'enum rtk_vlan_tagMode_e') to different enumeration type 'rtl8367c_egtagmode' [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_setAsicVlanEgressTagMode(rtk_switch_port_L2P_get(port), tag_mode)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
>> drivers/net/phy/rtk/rtl8367c/vlan.c:1270:84: error: implicit conversion from enumeration type 'rtk_vlan_tagMode_t' (aka 'enum rtk_vlan_tagMode_e') to different enumeration type 'rtl8367c_egtagmode' [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_setAsicVlanEgressTagMode(rtk_switch_port_L2P_get(port), tag_mode)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/net/phy/rtk/rtl8367c/vlan.c:1270:84: error: implicit conversion from enumeration type 'rtk_vlan_tagMode_t' (aka 'enum rtk_vlan_tagMode_e') to different enumeration type 'rtl8367c_egtagmode' [-Werror,-Wenum-conversion]
if ((retVal = rtl8367c_setAsicVlanEgressTagMode(rtk_switch_port_L2P_get(port), tag_mode)) != RT_ERR_OK)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
5 errors generated.
vim +/pmask +2248 drivers/net/phy/rtk/rtl8367c/l2.c
9e69038811fbd1 Frank Wunderlich 2021-12-28 @2248 default:
:::::: The code at line 2248 was first introduced by commit
:::::: 9e69038811fbd1a4c478ccda3817426a3f4af504 rtl8367: add phy-driver from vendor
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
[linux-next:master 511/9897] fs/dlm/midcomms.c:913:22: sparse: sparse: restricted __le32 degrades to integer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ea586a076e8aa606c59b66d86660590f18354b11
commit: 658bd576f95ed597e519cdadf1c86ac87c17aea5 [511/9897] fs: dlm: move version conversion to compile time
config: ia64-randconfig-s031-20211123 (https://download.01.org/0day-ci/archive/20211231/202112310735.HxchgVSl-lk...)
compiler: ia64-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/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 658bd576f95ed597e519cdadf1c86ac87c17aea5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash fs/dlm/
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 >>)
fs/dlm/midcomms.c:570:25: sparse: sparse: cast to restricted __le32
fs/dlm/midcomms.c:678:19: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:680:16: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:718:27: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:737:25: sparse: sparse: cast to restricted __le32
fs/dlm/midcomms.c:747:25: sparse: sparse: cast to restricted __le32
fs/dlm/midcomms.c:756:23: sparse: sparse: cast to restricted __le32
fs/dlm/midcomms.c:766:42: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:769:26: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:804:23: sparse: sparse: cast to restricted __le32
fs/dlm/midcomms.c:838:27: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:898:26: sparse: sparse: cast to restricted __le16
fs/dlm/midcomms.c:920:25: sparse: sparse: cast to restricted __le32
>> fs/dlm/midcomms.c:913:22: sparse: sparse: restricted __le32 degrades to integer
fs/dlm/midcomms.c:916:22: sparse: sparse: restricted __le32 degrades to integer
fs/dlm/midcomms.c:1056:20: sparse: sparse: context imbalance in 'dlm_midcomms_get_mhandle' - wrong count at exit
fs/dlm/midcomms.c: note: in included file (through include/linux/notifier.h, include/linux/memory_hotplug.h, include/linux/mmzone.h, ...):
include/linux/srcu.h:188:9: sparse: sparse: context imbalance in 'dlm_midcomms_commit_mhandle' - unexpected unlock
vim +913 fs/dlm/midcomms.c
871
872 /*
873 * Called from the low-level comms layer to process a buffer of
874 * commands.
875 */
876
877 int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int len)
878 {
879 const unsigned char *ptr = buf;
880 const struct dlm_header *hd;
881 uint16_t msglen;
882 int ret = 0;
883
884 while (len >= sizeof(struct dlm_header)) {
885 hd = (struct dlm_header *)ptr;
886
887 /* no message should be more than DLM_MAX_SOCKET_BUFSIZE or
888 * less than dlm_header size.
889 *
890 * Some messages does not have a 8 byte length boundary yet
891 * which can occur in a unaligned memory access of some dlm
892 * messages. However this problem need to be fixed at the
893 * sending side, for now it seems nobody run into architecture
894 * related issues yet but it slows down some processing.
895 * Fixing this issue should be scheduled in future by doing
896 * the next major version bump.
897 */
898 msglen = le16_to_cpu(hd->h_length);
899 if (msglen > DLM_MAX_SOCKET_BUFSIZE ||
900 msglen < sizeof(struct dlm_header)) {
901 log_print("received invalid length header: %u from node %d, will abort message parsing",
902 msglen, nodeid);
903 return -EBADMSG;
904 }
905
906 /* caller will take care that leftover
907 * will be parsed next call with more data
908 */
909 if (msglen > len)
910 break;
911
912 switch (hd->h_version) {
> 913 case cpu_to_le32(DLM_VERSION_3_1):
914 dlm_midcomms_receive_buffer_3_1((union dlm_packet *)ptr, nodeid);
915 break;
916 case cpu_to_le32(DLM_VERSION_3_2):
917 dlm_midcomms_receive_buffer_3_2((union dlm_packet *)ptr, nodeid);
918 break;
919 default:
920 log_print("received invalid version header: %u from node %d, will skip this message",
921 le32_to_cpu(hd->h_version), nodeid);
922 break;
923 }
924
925 ret += msglen;
926 len -= msglen;
927 ptr += msglen;
928 }
929
930 return ret;
931 }
932
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
[avpatel:riscv_kvm_aia_v1 41/42] arch/riscv/kvm/aia_aplic.c:254:6: warning: variable 'inject' is used uninitialized whenever 'if' condition is true
by kernel test robot
tree: https://github.com/avpatel/linux.git riscv_kvm_aia_v1
head: 39b04982423339e2b116ac84de98458b8cb7c4d4
commit: ac2d0396c236254b8f364b738d983d754ba1bbe5 [41/42] RISC-V: KVM: Add in-kernel emulation of AIA APLIC
config: riscv-randconfig-r035-20211230 (https://download.01.org/0day-ci/archive/20211231/202112310702.5K1jsmj4-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b7ac0615afc6e0f1a30da2777e361de27a3)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/avpatel/linux/commit/ac2d0396c236254b8f364b738d983d754...
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_kvm_aia_v1
git checkout ac2d0396c236254b8f364b738d983d754ba1bbe5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
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 >>):
>> arch/riscv/kvm/aia_aplic.c:254:6: warning: variable 'inject' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (irqd->sourcecfg & APLIC_SOURCECFG_D)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kvm/aia_aplic.c:293:6: note: uninitialized use occurs here
if (inject)
^~~~~~
arch/riscv/kvm/aia_aplic.c:254:2: note: remove the 'if' if its condition is always false
if (irqd->sourcecfg & APLIC_SOURCECFG_D)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kvm/aia_aplic.c:242:13: note: initialize the variable 'inject' to silence this warning
bool inject, ie;
^
= 0
1 warning generated.
vim +254 arch/riscv/kvm/aia_aplic.c
238
239 int kvm_riscv_aia_aplic_inject(struct kvm *kvm, u32 source, bool level)
240 {
241 u32 target;
242 bool inject, ie;
243 unsigned long flags;
244 struct aplic_irq *irqd;
245 struct aplic *aplic = kvm->arch.aia.aplic_state;
246
247 if (!aplic || !source || (aplic->nr_irqs <= source))
248 return -ENODEV;
249 irqd = &aplic->irqs[source];
250 ie = (aplic->domaincfg & APLIC_DOMAINCFG_IE) ? true : false;
251
252 raw_spin_lock_irqsave(&irqd->lock, flags);
253
> 254 if (irqd->sourcecfg & APLIC_SOURCECFG_D)
255 goto skip_unlock;
256
257 switch (irqd->sourcecfg & APLIC_SOURCECFG_SM_MASK) {
258 case APLIC_SOURCECFG_SM_EDGE_RISE:
259 if (level && !(irqd->state & APLIC_IRQ_STATE_INPUT) &&
260 !(irqd->state & APLIC_IRQ_STATE_PENDING))
261 irqd->state |= APLIC_IRQ_STATE_PENDING;
262 break;
263 case APLIC_SOURCECFG_SM_EDGE_FALL:
264 if (!level && (irqd->state & APLIC_IRQ_STATE_INPUT) &&
265 !(irqd->state & APLIC_IRQ_STATE_PENDING))
266 irqd->state |= APLIC_IRQ_STATE_PENDING;
267 break;
268 case APLIC_SOURCECFG_SM_LEVEL_HIGH:
269 if (level && !(irqd->state & APLIC_IRQ_STATE_PENDING))
270 irqd->state |= APLIC_IRQ_STATE_PENDING;
271 break;
272 case APLIC_SOURCECFG_SM_LEVEL_LOW:
273 if (!level && !(irqd->state & APLIC_IRQ_STATE_PENDING))
274 irqd->state |= APLIC_IRQ_STATE_PENDING;
275 break;
276 }
277
278 if (level)
279 irqd->state |= APLIC_IRQ_STATE_INPUT;
280 else
281 irqd->state &= ~APLIC_IRQ_STATE_INPUT;
282
283 inject = false;
284 target = irqd->target;
285 if (ie && (irqd->state & APLIC_IRQ_STATE_ENPEND)) {
286 irqd->state &= ~APLIC_IRQ_STATE_PENDING;
287 inject = true;
288 }
289
290 skip_unlock:
291 raw_spin_unlock_irqrestore(&irqd->lock, flags);
292
293 if (inject)
294 aplic_inject_msi(kvm, source, target);
295
296 return 0;
297 }
298
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
[ardb:xor-restrict 1/2] arch/powerpc/lib/xor_vmx.c:52:6: error: conflicting types for '__xor_altivec_2'; have 'void(long unsigned int, long unsigned int *, long unsigned int *)'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git xor-restrict
head: d2950492157a7e6af397c6d68c6e212a4844be64
commit: e754a2be51e5330e138271067808681b4a13ade2 [1/2] lib/xor: make xor prototypes more friendely to compiler vectorization
config: powerpc-g5_defconfig (https://download.01.org/0day-ci/archive/20211231/202112310646.kuh2pXiG-lk...)
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://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id...
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb xor-restrict
git checkout e754a2be51e5330e138271067808681b4a13ade2
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
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 >>):
>> arch/powerpc/lib/xor_vmx.c:52:6: error: conflicting types for '__xor_altivec_2'; have 'void(long unsigned int, long unsigned int *, long unsigned int *)'
52 | void __xor_altivec_2(unsigned long bytes, unsigned long *v1_in,
| ^~~~~~~~~~~~~~~
In file included from arch/powerpc/lib/xor_vmx.c:20:
arch/powerpc/lib/xor_vmx.h:9:6: note: previous declaration of '__xor_altivec_2' with type 'void(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__)'
9 | void __xor_altivec_2(unsigned long bytes, unsigned long * __restrict p1,
| ^~~~~~~~~~~~~~~
>> arch/powerpc/lib/xor_vmx.c:70:6: error: conflicting types for '__xor_altivec_3'; have 'void(long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *)'
70 | void __xor_altivec_3(unsigned long bytes, unsigned long *v1_in,
| ^~~~~~~~~~~~~~~
In file included from arch/powerpc/lib/xor_vmx.c:20:
arch/powerpc/lib/xor_vmx.h:11:6: note: previous declaration of '__xor_altivec_3' with type 'void(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__)'
11 | void __xor_altivec_3(unsigned long bytes, unsigned long * __restrict p1,
| ^~~~~~~~~~~~~~~
>> arch/powerpc/lib/xor_vmx.c:92:6: error: conflicting types for '__xor_altivec_4'; have 'void(long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *)'
92 | void __xor_altivec_4(unsigned long bytes, unsigned long *v1_in,
| ^~~~~~~~~~~~~~~
In file included from arch/powerpc/lib/xor_vmx.c:20:
arch/powerpc/lib/xor_vmx.h:14:6: note: previous declaration of '__xor_altivec_4' with type 'void(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__)'
14 | void __xor_altivec_4(unsigned long bytes, unsigned long * __restrict p1,
| ^~~~~~~~~~~~~~~
>> arch/powerpc/lib/xor_vmx.c:119:6: error: conflicting types for '__xor_altivec_5'; have 'void(long unsigned int, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *, long unsigned int *)'
119 | void __xor_altivec_5(unsigned long bytes, unsigned long *v1_in,
| ^~~~~~~~~~~~~~~
In file included from arch/powerpc/lib/xor_vmx.c:20:
arch/powerpc/lib/xor_vmx.h:18:6: note: previous declaration of '__xor_altivec_5' with type 'void(long unsigned int, long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__, const long unsigned int * __restrict__)'
18 | void __xor_altivec_5(unsigned long bytes, unsigned long * __restrict p1,
| ^~~~~~~~~~~~~~~
vim +52 arch/powerpc/lib/xor_vmx.c
ef1313deafb7ba Anton Blanchard 2013-10-14 23
ef1313deafb7ba Anton Blanchard 2013-10-14 24 #define DEFINE(V) \
ef1313deafb7ba Anton Blanchard 2013-10-14 25 unative_t *V = (unative_t *)V##_in; \
ef1313deafb7ba Anton Blanchard 2013-10-14 26 unative_t V##_0, V##_1, V##_2, V##_3
ef1313deafb7ba Anton Blanchard 2013-10-14 27
ef1313deafb7ba Anton Blanchard 2013-10-14 28 #define LOAD(V) \
ef1313deafb7ba Anton Blanchard 2013-10-14 29 do { \
ef1313deafb7ba Anton Blanchard 2013-10-14 30 V##_0 = V[0]; \
ef1313deafb7ba Anton Blanchard 2013-10-14 31 V##_1 = V[1]; \
ef1313deafb7ba Anton Blanchard 2013-10-14 32 V##_2 = V[2]; \
ef1313deafb7ba Anton Blanchard 2013-10-14 33 V##_3 = V[3]; \
ef1313deafb7ba Anton Blanchard 2013-10-14 34 } while (0)
ef1313deafb7ba Anton Blanchard 2013-10-14 35
ef1313deafb7ba Anton Blanchard 2013-10-14 36 #define STORE(V) \
ef1313deafb7ba Anton Blanchard 2013-10-14 37 do { \
ef1313deafb7ba Anton Blanchard 2013-10-14 38 V[0] = V##_0; \
ef1313deafb7ba Anton Blanchard 2013-10-14 39 V[1] = V##_1; \
ef1313deafb7ba Anton Blanchard 2013-10-14 40 V[2] = V##_2; \
ef1313deafb7ba Anton Blanchard 2013-10-14 41 V[3] = V##_3; \
ef1313deafb7ba Anton Blanchard 2013-10-14 42 } while (0)
ef1313deafb7ba Anton Blanchard 2013-10-14 43
ef1313deafb7ba Anton Blanchard 2013-10-14 44 #define XOR(V1, V2) \
ef1313deafb7ba Anton Blanchard 2013-10-14 45 do { \
ef1313deafb7ba Anton Blanchard 2013-10-14 46 V1##_0 = vec_xor(V1##_0, V2##_0); \
ef1313deafb7ba Anton Blanchard 2013-10-14 47 V1##_1 = vec_xor(V1##_1, V2##_1); \
ef1313deafb7ba Anton Blanchard 2013-10-14 48 V1##_2 = vec_xor(V1##_2, V2##_2); \
ef1313deafb7ba Anton Blanchard 2013-10-14 49 V1##_3 = vec_xor(V1##_3, V2##_3); \
ef1313deafb7ba Anton Blanchard 2013-10-14 50 } while (0)
ef1313deafb7ba Anton Blanchard 2013-10-14 51
f718d426d7e42e Matt Brown 2017-05-24 @52 void __xor_altivec_2(unsigned long bytes, unsigned long *v1_in,
ef1313deafb7ba Anton Blanchard 2013-10-14 53 unsigned long *v2_in)
ef1313deafb7ba Anton Blanchard 2013-10-14 54 {
ef1313deafb7ba Anton Blanchard 2013-10-14 55 DEFINE(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 56 DEFINE(v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 57 unsigned long lines = bytes / (sizeof(unative_t)) / 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 58
ef1313deafb7ba Anton Blanchard 2013-10-14 59 do {
ef1313deafb7ba Anton Blanchard 2013-10-14 60 LOAD(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 61 LOAD(v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 62 XOR(v1, v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 63 STORE(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 64
ef1313deafb7ba Anton Blanchard 2013-10-14 65 v1 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 66 v2 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 67 } while (--lines > 0);
ef1313deafb7ba Anton Blanchard 2013-10-14 68 }
ef1313deafb7ba Anton Blanchard 2013-10-14 69
f718d426d7e42e Matt Brown 2017-05-24 @70 void __xor_altivec_3(unsigned long bytes, unsigned long *v1_in,
ef1313deafb7ba Anton Blanchard 2013-10-14 71 unsigned long *v2_in, unsigned long *v3_in)
ef1313deafb7ba Anton Blanchard 2013-10-14 72 {
ef1313deafb7ba Anton Blanchard 2013-10-14 73 DEFINE(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 74 DEFINE(v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 75 DEFINE(v3);
ef1313deafb7ba Anton Blanchard 2013-10-14 76 unsigned long lines = bytes / (sizeof(unative_t)) / 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 77
ef1313deafb7ba Anton Blanchard 2013-10-14 78 do {
ef1313deafb7ba Anton Blanchard 2013-10-14 79 LOAD(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 80 LOAD(v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 81 LOAD(v3);
ef1313deafb7ba Anton Blanchard 2013-10-14 82 XOR(v1, v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 83 XOR(v1, v3);
ef1313deafb7ba Anton Blanchard 2013-10-14 84 STORE(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 85
ef1313deafb7ba Anton Blanchard 2013-10-14 86 v1 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 87 v2 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 88 v3 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 89 } while (--lines > 0);
ef1313deafb7ba Anton Blanchard 2013-10-14 90 }
ef1313deafb7ba Anton Blanchard 2013-10-14 91
f718d426d7e42e Matt Brown 2017-05-24 @92 void __xor_altivec_4(unsigned long bytes, unsigned long *v1_in,
ef1313deafb7ba Anton Blanchard 2013-10-14 93 unsigned long *v2_in, unsigned long *v3_in,
ef1313deafb7ba Anton Blanchard 2013-10-14 94 unsigned long *v4_in)
ef1313deafb7ba Anton Blanchard 2013-10-14 95 {
ef1313deafb7ba Anton Blanchard 2013-10-14 96 DEFINE(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 97 DEFINE(v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 98 DEFINE(v3);
ef1313deafb7ba Anton Blanchard 2013-10-14 99 DEFINE(v4);
ef1313deafb7ba Anton Blanchard 2013-10-14 100 unsigned long lines = bytes / (sizeof(unative_t)) / 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 101
ef1313deafb7ba Anton Blanchard 2013-10-14 102 do {
ef1313deafb7ba Anton Blanchard 2013-10-14 103 LOAD(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 104 LOAD(v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 105 LOAD(v3);
ef1313deafb7ba Anton Blanchard 2013-10-14 106 LOAD(v4);
ef1313deafb7ba Anton Blanchard 2013-10-14 107 XOR(v1, v2);
ef1313deafb7ba Anton Blanchard 2013-10-14 108 XOR(v3, v4);
ef1313deafb7ba Anton Blanchard 2013-10-14 109 XOR(v1, v3);
ef1313deafb7ba Anton Blanchard 2013-10-14 110 STORE(v1);
ef1313deafb7ba Anton Blanchard 2013-10-14 111
ef1313deafb7ba Anton Blanchard 2013-10-14 112 v1 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 113 v2 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 114 v3 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 115 v4 += 4;
ef1313deafb7ba Anton Blanchard 2013-10-14 116 } while (--lines > 0);
ef1313deafb7ba Anton Blanchard 2013-10-14 117 }
ef1313deafb7ba Anton Blanchard 2013-10-14 118
f718d426d7e42e Matt Brown 2017-05-24 @119 void __xor_altivec_5(unsigned long bytes, unsigned long *v1_in,
:::::: The code at line 52 was first introduced by commit
:::::: f718d426d7e42eec6e5d2932f52a51de23bd3b30 powerpc/lib/xor_vmx: Ensure no altivec code executes before enable_kernel_altivec()
:::::: TO: Matt Brown <matthew.brown.dev(a)gmail.com>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
[linux-stable-rc:queue/5.4 3030/9999] arch/powerpc/kernel/setup_64.c:913:6: error: no previous prototype for 'entry_flush_enable'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.4
head: 8119581dca11ec464922e85b5eaa28ed6558d619
commit: b65458b6be8032c5179d4f562038575d7b3a6be3 [3030/9999] powerpc/64s: flush L1D on kernel entry
config: powerpc64-randconfig-r011-20211230 (https://download.01.org/0day-ci/archive/20211231/202112310631.xDknJR1R-lk...)
compiler: powerpc64-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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc queue/5.4
git checkout b65458b6be8032c5179d4f562038575d7b3a6be3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-stable-rc/queue/5.4 HEAD 8119581dca11ec464922e85b5eaa28ed6558d619 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
arch/powerpc/kernel/setup_64.c:262:13: error: no previous prototype for 'record_spr_defaults' [-Werror=missing-prototypes]
262 | void __init record_spr_defaults(void)
| ^~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:287:32: error: no previous prototype for 'early_setup' [-Werror=missing-prototypes]
287 | void __init __nostackprotector early_setup(unsigned long dt_ptr)
| ^~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:399:6: error: no previous prototype for 'early_setup_secondary' [-Werror=missing-prototypes]
399 | void early_setup_secondary(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/setup_64.c:420:6: error: no previous prototype for 'panic_smp_self_stop' [-Werror=missing-prototypes]
420 | void panic_smp_self_stop(void)
| ^~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/setup_64.c: In function 'initialize_cache_info':
arch/powerpc/kernel/setup_64.c:599:70: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
599 | DBG("Argh, can't find dcache properties !\n");
| ^
arch/powerpc/kernel/setup_64.c:602:70: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
602 | DBG("Argh, can't find icache properties !\n");
| ^
arch/powerpc/kernel/setup_64.c: At top level:
>> arch/powerpc/kernel/setup_64.c:913:6: error: no previous prototype for 'entry_flush_enable' [-Werror=missing-prototypes]
913 | void entry_flush_enable(bool enable)
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/entry_flush_enable +913 arch/powerpc/kernel/setup_64.c
912
> 913 void entry_flush_enable(bool enable)
914 {
915 if (enable) {
916 do_entry_flush_fixups(enabled_flush_types);
917 on_each_cpu(do_nothing, NULL, 1);
918 } else {
919 do_entry_flush_fixups(L1D_FLUSH_NONE);
920 }
921
922 entry_flush = enable;
923 }
924
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
Re: [PATCH] arm: pxa: remove dead and obsolete IrDA initialization
by kernel test robot
Hi Lukas,
I love your patch! Yet something to improve:
[auto build test ERROR on soc/for-next]
[also build test ERROR on arm/for-next linus/master v5.16-rc7 next-20211224]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Lukas-Bulwahn/arm-pxa-remove-dea...
base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
config: arm-pxa_defconfig (https://download.01.org/0day-ci/archive/20211231/202112310355.45rFu4Q6-lk...)
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://github.com/0day-ci/linux/commit/6f71d3b32457eecd17d8e4abec5584d0c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lukas-Bulwahn/arm-pxa-remove-dead-and-obsolete-IrDA-initialization/20211230-025045
git checkout 6f71d3b32457eecd17d8e4abec5584d0c0c60ce4
# save the config file 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
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 >>):
arch/arm/mach-pxa/palmte2.c: In function 'palmte2_init':
>> arch/arm/mach-pxa/palmte2.c:358:9: error: implicit declaration of function 'pxa_set_ficp_info'; did you mean 'pxa_set_i2c_info'? [-Werror=implicit-function-declaration]
358 | pxa_set_ficp_info(&palmte2_ficp_platform_data);
| ^~~~~~~~~~~~~~~~~
| pxa_set_i2c_info
>> arch/arm/mach-pxa/palmte2.c:358:28: error: 'palmte2_ficp_platform_data' undeclared (first use in this function); did you mean 'palmte2_mci_platform_data'?
358 | pxa_set_ficp_info(&palmte2_ficp_platform_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| palmte2_mci_platform_data
arch/arm/mach-pxa/palmte2.c:358:28: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +358 arch/arm/mach-pxa/palmte2.c
8c8aa5fa3060ab Marek Vasut 2009-03-24 344
54088bf50f31e5 Marek Vasut 2009-03-24 345 static void __init palmte2_init(void)
54088bf50f31e5 Marek Vasut 2009-03-24 346 {
54088bf50f31e5 Marek Vasut 2009-03-24 347 pxa2xx_mfp_config(ARRAY_AND_SIZE(palmte2_pin_config));
54088bf50f31e5 Marek Vasut 2009-03-24 348
cc155c6f2cc705 Russell King 2009-11-09 349 pxa_set_ffuart_info(NULL);
cc155c6f2cc705 Russell King 2009-11-09 350 pxa_set_btuart_info(NULL);
cc155c6f2cc705 Russell King 2009-11-09 351 pxa_set_stuart_info(NULL);
cc155c6f2cc705 Russell King 2009-11-09 352
4321e1a12b811c Russell King - ARM Linux 2011-02-15 353 pxa_set_fb_info(NULL, &palmte2_lcd_screen);
32d1544880aa87 Linus Walleij 2018-12-02 354 gpiod_add_lookup_table(&palmte2_mci_gpio_table);
54088bf50f31e5 Marek Vasut 2009-03-24 355 pxa_set_mci_info(&palmte2_mci_platform_data);
8c8aa5fa3060ab Marek Vasut 2009-03-24 356 palmte2_udc_init();
241cf473114fed Marek Vasut 2010-06-04 357 pxa_set_ac97_info(&palmte2_ac97_pdata);
8c8aa5fa3060ab Marek Vasut 2009-03-24 @358 pxa_set_ficp_info(&palmte2_ficp_platform_data);
54088bf50f31e5 Marek Vasut 2009-03-24 359
f5a3b55287dd57 Thierry Reding 2015-10-05 360 pwm_add_table(palmte2_pwm_lookup, ARRAY_SIZE(palmte2_pwm_lookup));
fdabc466f335bc Linus Walleij 2020-01-23 361 gpiod_add_lookup_table(&palmte2_udc_gpiod_table);
54088bf50f31e5 Marek Vasut 2009-03-24 362 platform_add_devices(devices, ARRAY_SIZE(devices));
54088bf50f31e5 Marek Vasut 2009-03-24 363 }
54088bf50f31e5 Marek Vasut 2009-03-24 364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
xillybus_of.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
Hi Herbert,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: eec4df26e24e978e49ccf9bcf49ca0f2ccdaeffe
commit: a1315dcb7b6a7d3a78df848eed5b331a4b3ec28a hwrng: ks-sa - Add dependency on IOMEM and OF
date: 1 year, 1 month ago
config: s390-randconfig-r044-20211230 (https://download.01.org/0day-ci/archive/20211231/202112310309.OXZb8wIC-lk...)
compiler: s390-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://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 a1315dcb7b6a7d3a78df848eed5b331a4b3ec28a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash
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 >>):
s390-linux-ld: kernel/dma/coherent.o: in function `dma_init_coherent_memory':
coherent.c:(.text+0x4d4): undefined reference to `memremap'
s390-linux-ld: coherent.c:(.text+0x5ee): undefined reference to `memunmap'
s390-linux-ld: kernel/dma/coherent.o: in function `dma_declare_coherent_memory':
coherent.c:(.text+0x862): undefined reference to `memunmap'
s390-linux-ld: drivers/irqchip/irq-imx-intmux.o: in function `imx_intmux_probe':
irq-imx-intmux.c:(.text+0x3b8): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-mvebu-a3700-utmi.o: in function `mvebu_a3700_utmi_phy_probe':
phy-mvebu-a3700-utmi.c:(.text+0x14a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clk/clk-fixed-mmio.o: in function `fixed_mmio_clk_setup':
clk-fixed-mmio.c:(.text+0x86): undefined reference to `of_iomap'
s390-linux-ld: clk-fixed-mmio.c:(.text+0xaa): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_close':
dpaa2-console.c:(.text+0x7c): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_probe':
dpaa2-console.c:(.text+0xda): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_generic_console_open.constprop.0':
dpaa2-console.c:(.text+0x20e): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x25c): undefined reference to `iounmap'
s390-linux-ld: dpaa2-console.c:(.text+0x284): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x472): undefined reference to `iounmap'
s390-linux-ld: drivers/char/hw_random/exynos-trng.o: in function `exynos_trng_probe':
exynos-trng.c:(.text+0x398): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/meson-rng.o: in function `meson_rng_probe':
meson-rng.c:(.text+0xea): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/mtk-rng.o: in function `mtk_rng_probe':
mtk-rng.c:(.text+0x332): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/npcm-rng.o: in function `npcm_rng_probe':
npcm-rng.c:(.text+0x2c2): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
>> xillybus_of.c:(.text+0x1ec): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mfd/sun6i-prcm.o: in function `sun6i_prcm_probe':
sun6i-prcm.c:(.text+0xae): undefined reference to `mfd_add_devices'
s390-linux-ld: drivers/watchdog/sirfsoc_wdt.o: in function `sirfsoc_wdt_probe':
sirfsoc_wdt.c:(.text+0x19c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0xce): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x4ee): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x5ca): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-microchip-pit64b.o: in function `mchp_pit64b_dt_init_timer':
timer-microchip-pit64b.c:(.init.text+0x154): undefined reference to `of_iomap'
s390-linux-ld: timer-microchip-pit64b.c:(.init.text+0x66e): undefined reference to `iounmap'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MFD_SUN6I_PRCM
Depends on HAS_IOMEM && (ARCH_SUNXI || COMPILE_TEST
Selected by
- CLK_SUNXI_PRCM_SUN6I && COMMON_CLK && CLK_SUNXI
- CLK_SUNXI_PRCM_SUN8I && COMMON_CLK && CLK_SUNXI
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
[frank-w-bpi-r2-4.14:5.16-r2pro 5/65] drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:6: error: no previous prototype for 'mtk_wcn_consys_power_on'
by kernel test robot
Hi Frank,
FYI, the error/warning still remains.
tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro
head: 1952281ac3c335bf68742f52c06de02891690f43
commit: 8f3e42b3d0855dda8a76965487facfb915a4dd33 [5/65] mt6625l: add changes outside driver dir
config: arm-randconfig-r036-20211230 (https://download.01.org/0day-ci/archive/20211231/202112310230.QBL1P6bI-lk...)
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://github.com/frank-w/BPI-R2-4.14/commit/8f3e42b3d0855dda8a76965487f...
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.16-r2pro
git checkout 8f3e42b3d0855dda8a76965487facfb915a4dd33
# save the config file 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/misc/mediatek/connectivity/common/conn_soc/mt7623/
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/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:6: error: no previous prototype for 'mtk_wcn_consys_power_on' [-Werror=missing-prototypes]
191 | VOID mtk_wcn_consys_power_on(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:207:6: error: no previous prototype for 'mtk_wcn_consys_power_off' [-Werror=missing-prototypes]
207 | VOID mtk_wcn_consys_power_off(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:224:7: error: no previous prototype for 'mtk_wcn_consys_hw_reg_ctrl' [-Werror=missing-prototypes]
224 | INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:335:7: error: no previous prototype for 'mtk_wcn_consys_hw_gpio_ctrl' [-Werror=missing-prototypes]
335 | INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:539:7: error: no previous prototype for 'mtk_wcn_consys_hw_restore' [-Werror=missing-prototypes]
539 | INT32 mtk_wcn_consys_hw_restore(struct device *device)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:592:5: error: no previous prototype for 'reserve_memory_consys_fn' [-Werror=missing-prototypes]
592 | int reserve_memory_consys_fn(struct reserved_mem *rmem)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c: In function 'mtk_wcn_consys_get_pinctrl':
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:713:17: error: old-style function definition [-Werror=old-style-definition]
713 | struct pinctrl *mtk_wcn_consys_get_pinctrl()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/mtk_wcn_consys_power_on +191 drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 190
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @191 VOID mtk_wcn_consys_power_on(VOID)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 192 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 193 INT32 iRet = -1;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 194 iRet = pm_runtime_get_sync(&my_pdev->dev);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 195 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 196 WMT_PLAT_ERR_FUNC("pm_runtime_get_sync() fail(%d)\n", iRet);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 197 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 198 WMT_PLAT_INFO_FUNC("pm_runtime_get_sync() CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 199
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 200 iRet = device_init_wakeup(&my_pdev->dev, true);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 201 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 202 WMT_PLAT_ERR_FUNC("device_init_wakeup(true) fail.\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 203 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 204 WMT_PLAT_INFO_FUNC("device_init_wakeup(true) CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 205 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 206
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @207 VOID mtk_wcn_consys_power_off(VOID)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 208 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 209 INT32 iRet = -1;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 210
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 211 iRet = pm_runtime_put_sync(&my_pdev->dev);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 212 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 213 WMT_PLAT_ERR_FUNC("pm_runtime_put_sync() fail.\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 214 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 215 WMT_PLAT_INFO_FUNC("pm_runtime_put_sync() CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 216
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 217 iRet = device_init_wakeup(&my_pdev->dev, false);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 218 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 219 WMT_PLAT_ERR_FUNC("device_init_wakeup(false) fail.\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 220 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 221 WMT_PLAT_INFO_FUNC("device_init_wakeup(false) CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 222 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 223
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @224 INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 225 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 226 UINT32 retry = 10;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 227 UINT32 consysHwChipId = 0;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 228
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 229 WMT_PLAT_DBG_FUNC("CONSYS-HW-REG-CTRL(0x%08x),start\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 230 if (on) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 231 WMT_PLAT_DBG_FUNC("++\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 232 /*need PMIC driver provide new API protocol */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 233 /*1.AP power on VCN_1V8 LDO (with PMIC_WRAP API) VCN_1V8 */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 234 regulator_set_mode(reg_VCN18, REGULATOR_MODE_STANDBY);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 235 /* VOL_DEFAULT, VOL_1200, VOL_1300, VOL_1500, VOL_1800... */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 236 if (reg_VCN18) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 237 regulator_set_voltage(reg_VCN18, 1800000, 1800000);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 238 if (regulator_enable(reg_VCN18))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 239 WMT_PLAT_ERR_FUNC("enable VCN18 fail\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 240 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 241 WMT_PLAT_DBG_FUNC("enable VCN18 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 242 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 243 udelay(150);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 244 if (co_clock_type) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 245 /*step0,clk buf ctrl */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 246 WMT_PLAT_INFO_FUNC("co clock type(%d),turn on clk buf\n", co_clock_type);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 247 #if CONSYS_CLOCK_BUF_CTRL
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 248 clk_buf_ctrl(CLK_BUF_CONN, 1);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 249 #endif
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 250 /*if co-clock mode: */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 251 /*2.set VCN28 to SW control mode (with PMIC_WRAP API) */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 252 /*turn on VCN28 LDO only when FMSYS is activated" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 253 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x0 << 14);/*V28*/
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 254 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 255 /*if NOT co-clock: */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 256 /*2.1.switch VCN28 to HW control mode (with PMIC_WRAP API) */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 257 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x1 << 14);/*V28*/
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 258 /*2.2.turn on VCN28 LDO (with PMIC_WRAP API)" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 259 /*fix vcn28 not balance warning */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 260 if (reg_VCN28) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 261 regulator_set_voltage(reg_VCN28, 2800000, 2800000);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 262 if (regulator_enable(reg_VCN28))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 263 WMT_PLAT_ERR_FUNC("enable VCN_2V8 fail!\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 264 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 265 WMT_PLAT_DBG_FUNC("enable VCN_2V8 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 266 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 267 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 268
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 269 /*3.assert CONNSYS CPU SW reset 0x10007018 "[12]=1'b1 [31:24]=8'h88 (key)" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 270 reset_control_reset(rstc);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 271 mtk_wcn_consys_power_on();
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 272 /*11.26M is ready now, delay 10us for mem_pd de-assert */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 273 udelay(10);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 274 /*enable AP bus clock : connmcu_bus_pd API: enable_clock() ++?? */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 275 clk_prepare_enable(clk_infra_conn_main);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 276 WMT_PLAT_DBG_FUNC("[CCF]enable clk_infra_conn_main\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 277 /*12.poll CONNSYS CHIP ID until chipid is returned 0x18070008 */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 278 while (retry-- > 0) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 279 consysHwChipId = CONSYS_REG_READ(conn_reg.mcu_base + CONSYS_CHIP_ID_OFFSET) - 0xf6d;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 280
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 281 if ((consysHwChipId == 0x0321) || (consysHwChipId == 0x0335) || (consysHwChipId == 0x0337)) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 282 WMT_PLAT_INFO_FUNC("retry(%d)consys chipId(0x%08x)\n", retry, consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 283 break;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 284 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 285 if ((consysHwChipId == 0x8163) || (consysHwChipId == 0x8127) || (consysHwChipId == 0x7623)) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 286 WMT_PLAT_INFO_FUNC("retry(%d)consys chipId(0x%08x)\n", retry, consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 287 break;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 288 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 289
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 290 WMT_PLAT_ERR_FUNC("Read CONSYS chipId(0x%08x)", consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 291 msleep(20);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 292 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 293
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 294 if ((0 == retry) || (0 == consysHwChipId))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 295 WMT_PLAT_ERR_FUNC("Maybe has a consys power on issue,(0x%08x)\n", consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 296
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 297 msleep(40);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 298
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 299 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 300
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 301 clk_disable_unprepare(clk_infra_conn_main);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 302 WMT_PLAT_DBG_FUNC("[CCF] clk_disable_unprepare(clk_infra_conn_main) calling\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 303 mtk_wcn_consys_power_off();
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 304
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 305 if (co_clock_type) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 306 /*VCN28 has been turned off by GPS OR FM */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 307 #if CONSYS_CLOCK_BUF_CTRL
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 308 clk_buf_ctrl(CLK_BUF_CONN, 0);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 309 #endif
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 310 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 311 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x0 << 14);/*V28*/
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 312 /*turn off VCN28 LDO (with PMIC_WRAP API)" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 313 if (reg_VCN28) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 314 if (regulator_disable(reg_VCN28))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 315 WMT_PLAT_ERR_FUNC("disable VCN_2V8 fail!\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 316 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 317 WMT_PLAT_DBG_FUNC("disable VCN_2V8 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 318 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 319 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 320
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 321 /*AP power off MT6625L VCN_1V8 LDO */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 322 regulator_set_mode(reg_VCN18, REGULATOR_MODE_STANDBY);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 323 if (reg_VCN18) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 324 if (regulator_disable(reg_VCN18))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 325 WMT_PLAT_ERR_FUNC("disable VCN_1V8 fail!\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 326 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 327 WMT_PLAT_DBG_FUNC("disable VCN_1V8 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 328 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 329
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 330 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 331 WMT_PLAT_DBG_FUNC("CONSYS-HW-REG-CTRL(0x%08x),finish\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 332 return 0;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 333 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 334
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @335 INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 336 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 337 INT32 iRet = 0;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 338
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 339 WMT_PLAT_DBG_FUNC("CONSYS-HW-GPIO-CTRL(0x%08x), start\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 340
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 341 if (on) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 342
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 343 /* TODO: [FixMe][GeorgeKuo] double check if BGF_INT is implemented ok */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 344 /* iRet += wmt_plat_gpio_ctrl(PIN_BGF_EINT, PIN_STA_MUX); */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 345 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_INIT);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 346 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_EINT_DIS);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 347 WMT_PLAT_DBG_FUNC("CONSYS-HW, BGF IRQ registered and disabled\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 348
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 349 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 350
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 351 /* set bgf eint/all eint to deinit state, namely input low state */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 352 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_EINT_DIS);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 353 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_DEINIT);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 354 WMT_PLAT_DBG_FUNC("CONSYS-HW, BGF IRQ unregistered and disabled\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 355 /* iRet += wmt_plat_gpio_ctrl(PIN_BGF_EINT, PIN_STA_DEINIT); */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 356 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 357 WMT_PLAT_DBG_FUNC("CONSYS-HW-GPIO-CTRL(0x%08x), finish\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 358 return iRet;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 359
:::::: The code at line 191 was first introduced by commit
:::::: d03a149ef0a8e6180c7c086fc189dedb7ecb8af5 mt6625l: add driver folder from 5.14
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months
include/linux/compiler_types.h:338:45: error: call to '__compiletime_assert_268' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
by kernel test robot
Hi Will,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: eec4df26e24e978e49ccf9bcf49ca0f2ccdaeffe
commit: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
date: 1 year, 5 months ago
config: mips-randconfig-r002-20211124 (https://download.01.org/0day-ci/archive/20211231/202112310155.JyoyeRR2-lk...)
compiler: mips-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://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 eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/
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 >>):
arch/mips/mm/init.c:61:6: warning: no previous prototype for 'setup_zero_pages' [-Wmissing-prototypes]
61 | void setup_zero_pages(void)
| ^~~~~~~~~~~~~~~~
In file included from <command-line>:
arch/mips/mm/init.c: In function 'mem_init':
>> include/linux/compiler_types.h:338:45: error: call to '__compiletime_assert_268' declared with attribute error: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:25: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:9: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
arch/mips/mm/init.c:458:9: note: in expansion of macro 'BUILD_BUG_ON'
458 | BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT));
| ^~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:555: Error: found '(', expected: ')'
{standard input}:555: Error: found '(', expected: ')'
{standard input}:555: Error: non-constant expression in ".if" statement
{standard input}:555: Error: junk at end of line, first unrecognized character is `('
vim +/__compiletime_assert_268 +338 include/linux/compiler_types.h
324
325 #define _compiletime_assert(condition, msg, prefix, suffix) \
326 __compiletime_assert(condition, msg, prefix, suffix)
327
328 /**
329 * compiletime_assert - break build and emit msg if condition is false
330 * @condition: a compile-time constant condition to check
331 * @msg: a message to emit if condition is false
332 *
333 * In tradition of POSIX assert, this macro will break the build if the
334 * supplied condition is *false*, emitting the supplied error message if the
335 * compiler has support to do so.
336 */
337 #define compiletime_assert(condition, msg) \
> 338 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
339
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months