Re: [PATCH v8 09/14] soc: mediatek: Add multiple step bus protection control

From: kbuild test robot
Date: Tue Oct 29 2019 - 21:37:47 EST


Hi Weiyi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.4-rc5 next-20191029]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Weiyi-Lu/Mediatek-MT8183-scpsys-support/20191030-060526
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 23fdb198ae81f47a574296dab5167c5e136a02ba
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

In file included from <command-line>:0:0:
>> include/linux/soc/mediatek/scpsys-ext.h:26:2: error: unknown type name 'u32'
u32 set_ofs;
^~~
include/linux/soc/mediatek/scpsys-ext.h:27:2: error: unknown type name 'u32'
u32 clr_ofs;
^~~
include/linux/soc/mediatek/scpsys-ext.h:28:2: error: unknown type name 'u32'
u32 en_ofs;
^~~
include/linux/soc/mediatek/scpsys-ext.h:29:2: error: unknown type name 'u32'
u32 sta_ofs;
^~~
include/linux/soc/mediatek/scpsys-ext.h:30:2: error: unknown type name 'u32'
u32 mask;
^~~
include/linux/soc/mediatek/scpsys-ext.h:31:2: error: unknown type name 'u32'
u32 clr_ack_mask;
^~~
>> include/linux/soc/mediatek/scpsys-ext.h:35:9: warning: 'struct regmap' declared inside parameter list will not be visible outside of this definition or declaration
struct regmap *infracfg, struct regmap *smi_common);
^~~~~~
include/linux/soc/mediatek/scpsys-ext.h:37:9: warning: 'struct regmap' declared inside parameter list will not be visible outside of this definition or declaration
struct regmap *infracfg, struct regmap *smi_common);
^~~~~~

vim +/u32 +26 include/linux/soc/mediatek/scpsys-ext.h

23
24 struct bus_prot {
25 enum regmap_type type;
> 26 u32 set_ofs;
27 u32 clr_ofs;
28 u32 en_ofs;
> 29 u32 sta_ofs;
30 u32 mask;
31 u32 clr_ack_mask;
32 };
33
34 int mtk_scpsys_ext_set_bus_protection(const struct bus_prot *bp_table,
> 35 struct regmap *infracfg, struct regmap *smi_common);
36 int mtk_scpsys_ext_clear_bus_protection(const struct bus_prot *bp_table,
37 struct regmap *infracfg, struct regmap *smi_common);
38

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip