drivers/opp/of.c:959:12: warning: stack frame size of 2064 bytes in function '_of_add_table_indexed'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3fb6d0e00efc958d01c2f109c8453033a2d96796
commit: 406e47652161d4f0d9bc4cd6237b36c51497ec75 opp: Create _of_add_table_indexed() to reduce code duplication
date: 4 weeks ago
config: powerpc64-randconfig-r002-20210227 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 83bc7815c4235786111aa2abf7193292e4a602f5)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# 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 406e47652161d4f0d9bc4cd6237b36c51497ec75
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 >>):
>> drivers/opp/of.c:959:12: warning: stack frame size of 2064 bytes in function '_of_add_table_indexed' [-Wframe-larger-than=]
static int _of_add_table_indexed(struct device *dev, int index)
^
1 warning generated.
vim +/_of_add_table_indexed +959 drivers/opp/of.c
958
> 959 static int _of_add_table_indexed(struct device *dev, int index)
960 {
961 struct opp_table *opp_table;
962 int ret, count;
963
964 if (index) {
965 /*
966 * If only one phandle is present, then the same OPP table
967 * applies for all index requests.
968 */
969 count = of_count_phandle_with_args(dev->of_node,
970 "operating-points-v2", NULL);
971 if (count == 1)
972 index = 0;
973 }
974
975 opp_table = _add_opp_table_indexed(dev, index);
976 if (IS_ERR(opp_table))
977 return PTR_ERR(opp_table);
978
979 /*
980 * OPPs have two version of bindings now. Also try the old (v1)
981 * bindings for backward compatibility with older dtbs.
982 */
983 if (opp_table->np)
984 ret = _of_add_opp_table_v2(dev, opp_table);
985 else
986 ret = _of_add_opp_table_v1(dev, opp_table);
987
988 if (ret)
989 dev_pm_opp_put_opp_table(opp_table);
990
991 return ret;
992 }
993
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init'
by kernel test robot
Hi Vlad,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06d5d309a3f17e32cd59926f391db1e1ea652184
commit: 34ca65352ddf2aaa094f4016369103c4c7b98958 net/mlx5: E-Switch, Indirect table infrastructure
date: 3 weeks ago
config: x86_64-randconfig-a001-20210301 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b077d82b00d81934c7c27ac89dd8b0e7f448bded)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 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 34ca65352ddf2aaa094f4016369103c4c7b98958
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/ethernet/mellanox/mlx5/core/eswitch_offloads.c:41:
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init' [-Wmissing-prototypes]
mlx5_esw_indir_table_init(void)
^
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct mlx5_esw_indir_table *
^
static
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:40:1: warning: no previous prototype for function 'mlx5_esw_indir_table_destroy' [-Wmissing-prototypes]
mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
^
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:39:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:61:1: warning: no previous prototype for function 'mlx5_esw_indir_table_needed' [-Wmissing-prototypes]
mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
^
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:60:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool
^
static
3 warnings generated.
vim +/mlx5_esw_indir_table_init +34 drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h
30
31 #else
32 /* indir API stubs */
33 struct mlx5_esw_indir_table *
> 34 mlx5_esw_indir_table_init(void)
35 {
36 return NULL;
37 }
38
39 void
> 40 mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
41 {
42 }
43
44 static inline struct mlx5_flow_table *
45 mlx5_esw_indir_table_get(struct mlx5_eswitch *esw,
46 struct mlx5_flow_attr *attr,
47 struct mlx5_flow_spec *spec,
48 u16 vport, bool decap)
49 {
50 return ERR_PTR(-EOPNOTSUPP);
51 }
52
53 static inline void
54 mlx5_esw_indir_table_put(struct mlx5_eswitch *esw,
55 struct mlx5_flow_attr *attr,
56 u16 vport, bool decap)
57 {
58 }
59
60 bool
> 61 mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
62 struct mlx5_flow_attr *attr,
63 u16 vport_num,
64 struct mlx5_core_dev *dest_mdev)
65 {
66 return false;
67 }
68
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
arch/mips/pci/ops-loongson2.c:93:44: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
Hi Jiaxun,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: b13812ddea615b6507beef24f76540c0c1143c5c MIPS: Loongson2ef: Disable Loongson MMI instructions
date: 5 months ago
config: mips-randconfig-s031-20210301 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.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.3-241-geaceeafa-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 b13812ddea615b6507beef24f76540c0c1143c5c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips
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 >>)"
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
arch/mips/pci/ops-loongson2.c:93:24: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
arch/mips/pci/ops-loongson2.c:93:24: sparse: expected unsigned int [usertype] val
arch/mips/pci/ops-loongson2.c:93:24: sparse: got restricted __le32 [usertype]
>> arch/mips/pci/ops-loongson2.c:93:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void *[assigned] addrp @@
arch/mips/pci/ops-loongson2.c:93:44: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/pci/ops-loongson2.c:93:44: sparse: got void *[assigned] addrp
>> arch/mips/pci/ops-loongson2.c:95:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got void *[assigned] addrp @@
arch/mips/pci/ops-loongson2.c:95:25: sparse: expected void const volatile [noderef] __iomem *mem
arch/mips/pci/ops-loongson2.c:95:25: sparse: got void *[assigned] addrp
arch/mips/pci/ops-loongson2.c:95:25: sparse: sparse: cast to restricted __le32
--
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> arch/mips/loongson2ef/common/reset.c:24:17: sparse: sparse: cast removes address space '__iomem' of expression
--
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> arch/mips/loongson2ef/common/cs5536/cs5536_isa.c:84:6: sparse: sparse: symbol 'pci_isa_write_bar' was not declared. Should it be static?
>> arch/mips/loongson2ef/common/cs5536/cs5536_isa.c:110:5: sparse: sparse: symbol 'pci_isa_read_bar' was not declared. Should it be static?
vim +93 arch/mips/pci/ops-loongson2.c
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 30
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 31
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 32 static int loongson_pcibios_config_access(unsigned char access_type,
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 33 struct pci_bus *bus,
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 34 unsigned int devfn, int where,
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 35 u32 *data)
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 36 {
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 37 u32 busnum = bus->number;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 38 u32 addr, type;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 39 u32 dummy;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 40 void *addrp;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 41 int device = PCI_SLOT(devfn);
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 42 int function = PCI_FUNC(devfn);
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 43 int reg = where & ~3;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 44
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 45 if (busnum == 0) {
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 46 /* board-specific part,currently,only fuloong2f,yeeloong2f
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 47 * use CS5536, fuloong2e use via686b, gdium has no
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 48 * south bridge
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 49 */
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 50 #ifdef CONFIG_CS5536
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 51 /* cs5536_pci_conf_read4/write4() will call _rdmsr/_wrmsr() to
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 52 * access the regsters PCI_MSR_ADDR, PCI_MSR_DATA_LO,
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 53 * PCI_MSR_DATA_HI, which is bigger than PCI_MSR_CTRL, so, it
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 54 * will not go this branch, but the others. so, no calling dead
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 55 * loop here.
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 56 */
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 57 if ((PCI_IDSEL_CS5536 == device) && (reg < PCI_MSR_CTRL)) {
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 58 switch (access_type) {
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 59 case PCI_ACCESS_READ:
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 60 *data = cs5536_pci_conf_read4(function, reg);
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 61 break;
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 62 case PCI_ACCESS_WRITE:
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 63 cs5536_pci_conf_write4(function, reg, *data);
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 64 break;
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 65 }
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 66 return 0;
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 67 }
1032bce3ef81cb arch/mips/pci/ops-loongson2.c Wu Zhangjin 2009-11-10 68 #endif
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 69 /* Type 0 configuration for onboard PCI bus */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 70 if (device > MAX_DEV_NUM)
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 71 return -1;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 72
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 73 addr = (1 << (device + ID_SEL_BEGIN)) | (function << 8) | reg;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 74 type = 0;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 75 } else {
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 76 /* Type 1 configuration for offboard PCI bus */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 77 addr = (busnum << 16) | (device << 11) | (function << 8) | reg;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 78 type = 0x10000;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 79 }
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 80
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 81 /* Clear aborts */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 82 LOONGSON_PCICMD |= LOONGSON_PCICMD_MABORT_CLR | \
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 83 LOONGSON_PCICMD_MTABORT_CLR;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 84
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 85 LOONGSON_PCIMAP_CFG = (addr >> 16) | type;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 86
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 87 /* Flush Bonito register block */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 88 dummy = LOONGSON_PCIMAP_CFG;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 89 mmiowb();
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 90
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 91 addrp = CFG_SPACE_REG(addr & 0xffff);
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 92 if (access_type == PCI_ACCESS_WRITE)
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 @93 writel(cpu_to_le32(*data), addrp);
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 94 else
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 @95 *data = le32_to_cpu(readl(addrp));
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 96
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 97 /* Detect Master/Target abort */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 98 if (LOONGSON_PCICMD & (LOONGSON_PCICMD_MABORT_CLR |
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 99 LOONGSON_PCICMD_MTABORT_CLR)) {
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 100 /* Error occurred */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 101
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 102 /* Clear bits */
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 103 LOONGSON_PCICMD |= (LOONGSON_PCICMD_MABORT_CLR |
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 104 LOONGSON_PCICMD_MTABORT_CLR);
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 105
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 106 return -1;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 107 }
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 108
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 109 return 0;
e2fee5723bbda4 arch/mips/pci/ops-fuloong2e.c Wu Zhangjin 2009-10-16 110
:::::: The code at line 93 was first introduced by commit
:::::: e2fee5723bbda4a05c86f16a9d0f889a2c4ecede MIPS: Bonito64: Make Loongson independent from Bonito64 code.
:::::: TO: Wu Zhangjin <wuzhangjin(a)gmail.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[leon-rdma:rdma-next 12/29] drivers/pci/iov.c:497:3: error: use of undeclared identifier 'dev_attr_sriov_vf_total_msix'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: 5aa7b605908f33f6394d773031b3335eaaf06fe1
commit: f795e68dc20b9f64e285102d470657ee64b4ea3c [12/29] PCI: Add a sysfs file to change the MSI-X table size of SR-IOV VFs
config: x86_64-randconfig-a015-20210228 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b077d82b00d81934c7c27ac89dd8b0e7f448bded)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commi...
git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma rdma-next
git checkout f795e68dc20b9f64e285102d470657ee64b4ea3c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/pci/iov.c:497:3: error: use of undeclared identifier 'dev_attr_sriov_vf_total_msix'; did you mean 'dev_attr_sriov_totalvfs'?
&dev_attr_sriov_vf_total_msix.attr,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dev_attr_sriov_totalvfs
drivers/pci/iov.c:483:8: note: 'dev_attr_sriov_totalvfs' declared here
static DEVICE_ATTR_RO(sriov_totalvfs);
^
include/linux/device.h:135:26: note: expanded from macro 'DEVICE_ATTR_RO'
struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
^
<scratch space>:96:1: note: expanded from here
dev_attr_sriov_totalvfs
^
1 error generated.
vim +497 drivers/pci/iov.c
489
490 static struct attribute *sriov_pf_dev_attrs[] = {
491 &dev_attr_sriov_totalvfs.attr,
492 &dev_attr_sriov_numvfs.attr,
493 &dev_attr_sriov_offset.attr,
494 &dev_attr_sriov_stride.attr,
495 &dev_attr_sriov_vf_device.attr,
496 &dev_attr_sriov_drivers_autoprobe.attr,
> 497 &dev_attr_sriov_vf_total_msix.attr,
498 NULL,
499 };
500
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
hppa64-linux-ld: drivers/tty/serial/8250/8250_early.o(.init.text+0x16c): cannot reach $$divU
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: a30d8a39f0571425a459816ed8680e987a2ff279 usr: Add support for zstd compressed initramfs
date: 7 months ago
config: parisc-randconfig-s031-20210228 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.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.3-241-geaceeafa-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 a30d8a39f0571425a459816ed8680e987a2ff279
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc
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 >>):
hppa64-linux-ld: init/main.o(.init.text+0xdd8): cannot reach rest_init
init/main.o: in function `arch_call_rest_init':
(.init.text+0xdd8): relocation truncated to fit: R_PARISC_PCREL22F against symbol `rest_init' defined in .ref.text section in init/main.o
hppa64-linux-ld: init/main.o(.init.text+0x13d8): cannot reach build_all_zonelists
init/main.o: in function `start_kernel':
(.init.text+0x13d8): relocation truncated to fit: R_PARISC_PCREL22F against symbol `build_all_zonelists' defined in .ref.text section in mm/page_alloc.o
hppa64-linux-ld: init/main.o(.init.text+0x176c): cannot reach profile_init
(.init.text+0x176c): relocation truncated to fit: R_PARISC_PCREL22F against symbol `profile_init' defined in .ref.text section in kernel/profile.o
hppa64-linux-ld: init/main.o(.init.text+0x1ac0): cannot reach wait_for_completion
init/main.o: in function `kernel_init_freeable':
(.init.text+0x1ac0): relocation truncated to fit: R_PARISC_PCREL22F against symbol `wait_for_completion' defined in .sched.text section in kernel/sched/completion.o
hppa64-linux-ld: init/main.o(.ref.text+0x1c): cannot reach rcu_scheduler_starting
init/main.o: in function `rest_init':
(.ref.text+0x1c): relocation truncated to fit: R_PARISC_PCREL22F against symbol `rcu_scheduler_starting' defined in .init.text section in kernel/rcu/srcutiny.o
hppa64-linux-ld: init/main.o(.ref.text+0x17c): cannot reach unknown
init/main.o: in function `kernel_init':
(.ref.text+0x17c): relocation truncated to fit: R_PARISC_PCREL22F against `kernel_init_freeable'
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x78): cannot reach unknown
arch/parisc/mm/init.o: in function `free_initmem':
(.ref.text+0x78): relocation truncated to fit: R_PARISC_PCREL22F against `map_pages'
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xa0): cannot reach unknown
(.ref.text+0xa0): relocation truncated to fit: R_PARISC_PCREL22F against `map_pages'
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xc4): cannot reach unknown
(.ref.text+0xc4): relocation truncated to fit: R_PARISC_PCREL22F against `map_pages'
hppa64-linux-ld: kernel/printk/printk.o(.init.text+0x768): cannot reach _raw_spin_lock
kernel/printk/printk.o: in function `setup_log_buf':
(.init.text+0x768): relocation truncated to fit: R_PARISC_PCREL22F against symbol `_raw_spin_lock' defined in .spinlock.text section in kernel/locking/spinlock.o
hppa64-linux-ld: kernel/printk/printk.o(.init.text+0x7c4): cannot reach _raw_spin_unlock
(.init.text+0x7c4): additional relocation overflows omitted from the output
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x228): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x440): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x7a0): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x878): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xad4): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xafc): cannot reach mutex_unlock
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x56c): cannot reach __muldi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x590): cannot reach __udivdi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x5c0): cannot reach __muldi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x5e4): cannot reach __udivdi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x658): cannot reach __udivdi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x7d8): cannot reach _raw_spin_lock
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x804): cannot reach _raw_spin_unlock
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x1fb4): cannot reach __muldi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x1fd4): cannot reach __udivdi3
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x2020): cannot reach __udivdi3
hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x34): cannot reach unknown
hppa64-linux-ld: mm/hugetlb.o(.init.text+0x2b8): cannot reach _cond_resched
hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8b8): cannot reach _raw_spin_lock
hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8e4): cannot reach _raw_spin_unlock
hppa64-linux-ld: mm/hugetlb.o(.init.text+0x94c): cannot reach _cond_resched
hppa64-linux-ld: mm/slab.o(.init.text+0x450): cannot reach mutex_lock
hppa64-linux-ld: mm/slab.o(.init.text+0x4a8): cannot reach mutex_unlock
hppa64-linux-ld: lib/dynamic_debug.o(.init.text+0x4e0): cannot reach mutex_lock
hppa64-linux-ld: lib/dynamic_debug.o(.init.text+0x550): cannot reach mutex_unlock
hppa64-linux-ld: drivers/clk/clk.o(.init.text+0x250): cannot reach mutex_lock
hppa64-linux-ld: drivers/clk/clk.o(.init.text+0x2b4): cannot reach mutex_unlock
hppa64-linux-ld: mm/sparse.o(.ref.text+0x68): cannot reach memblock_alloc_try_nid
hppa64-linux-ld: mm/sparse.o(.init.text+0x128): cannot reach unknown
hppa64-linux-ld: kernel/resource.o(.init.text+0x32c): cannot reach _raw_write_lock
hppa64-linux-ld: kernel/resource.o(.init.text+0x4f8): cannot reach _raw_write_unlock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0x90): cannot reach mutex_lock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0xc4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0x1b8): cannot reach mutex_lock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0x208): cannot reach mutex_unlock
>> hppa64-linux-ld: drivers/tty/serial/8250/8250_early.o(.init.text+0x16c): cannot reach $$divU
hppa64-linux-ld: drivers/tty/serial/altera_uart.o(.init.text+0x200): cannot reach $$divU
>> hppa64-linux-ld: drivers/tty/serial/arc_uart.o(.init.text+0x2c): cannot reach $$divU
hppa64-linux-ld: kernel/workqueue.o(.init.text+0xa8): cannot reach mutex_lock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0x128): cannot reach mutex_unlock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0x354): cannot reach mutex_lock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0x388): cannot reach mutex_unlock
hppa64-linux-ld: lib/random32.o(.init.text+0x204): cannot reach _cond_resched
hppa64-linux-ld: kernel/user.o(.init.text+0x80): cannot reach _raw_spin_lock_irq
hppa64-linux-ld: kernel/user.o(.init.text+0xb8): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: mm/percpu.o(.init.text+0xc4): cannot reach __muldi3
hppa64-linux-ld: mm/percpu.o(.init.text+0x4a8): cannot reach __muldi3
hppa64-linux-ld: mm/percpu.o(.init.text+0xad8): cannot reach __muldi3
hppa64-linux-ld: mm/percpu.o(.init.text+0xc24): cannot reach __muldi3
hppa64-linux-ld: fs/eventpoll.o(.init.text+0x3c): cannot reach __udivdi3
hppa64-linux-ld: fs/eventpoll.o(.init.text+0x54): cannot reach __udivdi3
hppa64-linux-ld: kernel/time/timekeeping.o(.init.text+0x228): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/time/timekeeping.o(.init.text+0x320): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/time/sched_clock.o(.init.text+0x170): cannot reach __muldi3
hppa64-linux-ld: kernel/time/sched_clock.o(.init.text+0x214): cannot reach __udivdi3
hppa64-linux-ld: kernel/time/sched_clock.o(.init.text+0x240): cannot reach __udivdi3
hppa64-linux-ld: fs/filesystems.o(.init.text+0xb0): cannot reach _raw_read_lock
>> hppa64-linux-ld: fs/filesystems.o(.init.text+0x130): cannot reach _raw_read_unlock
>> hppa64-linux-ld: fs/xfs/xfs_super.o(.init.text+0x8ac): cannot reach wait_for_completion
>> hppa64-linux-ld: drivers/char/ipmi/ipmi_msghandler.o(.init.text+0x4c): cannot reach mutex_lock
>> hppa64-linux-ld: drivers/char/ipmi/ipmi_msghandler.o(.init.text+0x70): cannot reach mutex_unlock
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x2d4): cannot reach __muldi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x2ec): cannot reach __udivdi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x3d4): cannot reach __muldi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x3ec): cannot reach __udivdi3
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x3c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0xe8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x170): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x288): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x30c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x3d8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: mm/page_ext.o(.init.text+0x18c): cannot reach __muldi3
hppa64-linux-ld: mm/page_ext.o(.init.text+0x1d0): cannot reach _cond_resched
hppa64-linux-ld: fs/file_table.o(.init.text+0xbc): cannot reach __udivdi3
hppa64-linux-ld: fs/buffer.o(.init.text+0x68): cannot reach __udivdi3
hppa64-linux-ld: drivers/clk/bcm/clk-kona.o(.init.text+0x6c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: drivers/clk/bcm/clk-kona.o(.init.text+0x534): cannot reach _raw_spin_unlock_irqrestore
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tnguy-next-queue:dev-queue 93/106] drivers/net/ethernet/intel/iavf/iavf_fdir.c:340:5: warning: format specifies type 'unsigned short' but the argument has type 'int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 94c839566603f723f6914a6b23014a6110636ec8
commit: 81848f73834d8ebd01f558c9eef8cf002b4b0ae5 [93/106] iavf: Support IPv4 Flow Director filters
config: riscv-randconfig-r025-20210228 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b077d82b00d81934c7c27ac89dd8b0e7f448bded)
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://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/comm...
git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
git fetch --no-tags tnguy-next-queue dev-queue
git checkout 81848f73834d8ebd01f558c9eef8cf002b4b0ae5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
>> drivers/net/ethernet/intel/iavf/iavf_fdir.c:340:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
ntohs(fltr->ip_data.dst_port),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:118:33: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/byteorder/generic.h:142:18: note: expanded from macro 'ntohs'
#define ntohs(x) ___ntohs(x)
^~~~~~~~~~~
include/linux/byteorder/generic.h:137:21: note: expanded from macro '___ntohs'
#define ___ntohs(x) __be16_to_cpu(x)
^~~~~~~~~~~~~~~~
include/uapi/linux/byteorder/little_endian.h:42:26: note: expanded from macro '__be16_to_cpu'
#define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/uapi/linux/swab.h:105:2: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/iavf/iavf_fdir.c:341:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
ntohs(fltr->ip_data.src_port));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:118:33: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/byteorder/generic.h:142:18: note: expanded from macro 'ntohs'
#define ntohs(x) ___ntohs(x)
^~~~~~~~~~~
include/linux/byteorder/generic.h:137:21: note: expanded from macro '___ntohs'
#define ___ntohs(x) __be16_to_cpu(x)
^~~~~~~~~~~~~~~~
include/uapi/linux/byteorder/little_endian.h:42:26: note: expanded from macro '__be16_to_cpu'
#define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/uapi/linux/swab.h:105:2: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +340 drivers/net/ethernet/intel/iavf/iavf_fdir.c
316
317 /**
318 * iavf_print_fdir_fltr
319 * @adapter: adapter structure
320 * @fltr: Flow Director filter to print
321 *
322 * Print the Flow Director filter
323 **/
324 void iavf_print_fdir_fltr(struct iavf_adapter *adapter, struct iavf_fdir_fltr *fltr)
325 {
326 const char *proto = iavf_fdir_flow_proto_name(fltr->flow_type);
327
328 if (!proto)
329 return;
330
331 switch (fltr->flow_type) {
332 case IAVF_FDIR_FLOW_IPV4_TCP:
333 case IAVF_FDIR_FLOW_IPV4_UDP:
334 case IAVF_FDIR_FLOW_IPV4_SCTP:
335 dev_info(&adapter->pdev->dev, "Rule ID: %u dst_ip: %pI4 src_ip %pI4 %s: dst_port %hu src_port %hu\n",
336 fltr->loc,
337 &fltr->ip_data.v4_addrs.dst_ip,
338 &fltr->ip_data.v4_addrs.src_ip,
339 proto,
> 340 ntohs(fltr->ip_data.dst_port),
341 ntohs(fltr->ip_data.src_port));
342 break;
343 case IAVF_FDIR_FLOW_IPV4_AH:
344 case IAVF_FDIR_FLOW_IPV4_ESP:
345 dev_info(&adapter->pdev->dev, "Rule ID: %u dst_ip: %pI4 src_ip %pI4 %s: SPI %u\n",
346 fltr->loc,
347 &fltr->ip_data.v4_addrs.dst_ip,
348 &fltr->ip_data.v4_addrs.src_ip,
349 proto,
350 ntohl(fltr->ip_data.spi));
351 break;
352 case IAVF_FDIR_FLOW_IPV4_OTHER:
353 dev_info(&adapter->pdev->dev, "Rule ID: %u dst_ip: %pI4 src_ip %pI4 proto: %u L4_bytes: 0x%x\n",
354 fltr->loc,
355 &fltr->ip_data.v4_addrs.dst_ip,
356 &fltr->ip_data.v4_addrs.src_ip,
357 fltr->ip_data.proto,
358 ntohl(fltr->ip_data.l4_header));
359 break;
360 default:
361 break;
362 }
363 }
364
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[chanwoo:devfreq-testing 4/7] drivers/devfreq/devfreq.c:148:44: error: 'HZ_PER_KHZ' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head: 245be5c9be5382d16e12c6c7e466ccf22a7b0556
commit: 63aff4407c3050823d7680112129dc455477a578 [4/7] PM / devfreq: Use HZ macros
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git/commit/...
git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git
git fetch --no-tags chanwoo devfreq-testing
git checkout 63aff4407c3050823d7680112129dc455477a578
# 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 errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:14,
from drivers/devfreq/devfreq.c:10:
drivers/devfreq/devfreq.c: In function 'get_freq_range':
>> drivers/devfreq/devfreq.c:148:44: error: 'HZ_PER_KHZ' undeclared (first use in this function)
148 | *min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
| ^~~~~~~~~~
include/linux/minmax.h:18:39: note: in definition of macro '__typecheck'
18 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:42:24: note: in expansion of macro '__safe_cmp'
42 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:58:19: note: in expansion of macro '__careful_cmp'
58 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
drivers/devfreq/devfreq.c:148:14: note: in expansion of macro 'max'
148 | *min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
| ^~~
drivers/devfreq/devfreq.c:148:44: note: each undeclared identifier is reported only once for each function it appears in
148 | *min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
| ^~~~~~~~~~
include/linux/minmax.h:18:39: note: in definition of macro '__typecheck'
18 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:42:24: note: in expansion of macro '__safe_cmp'
42 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:58:19: note: in expansion of macro '__careful_cmp'
58 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
drivers/devfreq/devfreq.c:148:14: note: in expansion of macro 'max'
148 | *min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
| ^~~
>> include/linux/minmax.h:42:2: error: first argument to '__builtin_choose_expr' not a constant
42 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:58:19: note: in expansion of macro '__careful_cmp'
58 | #define max(x, y) __careful_cmp(x, y, >)
| ^~~~~~~~~~~~~
drivers/devfreq/devfreq.c:148:14: note: in expansion of macro 'max'
148 | *min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
| ^~~
>> include/linux/minmax.h:42:2: error: first argument to '__builtin_choose_expr' not a constant
42 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:51:19: note: in expansion of macro '__careful_cmp'
51 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
drivers/devfreq/devfreq.c:150:15: note: in expansion of macro 'min'
150 | *max_freq = min(*max_freq,
| ^~~
drivers/devfreq/devfreq.c: In function 'min_freq_store':
drivers/devfreq/devfreq.c:1532:14: error: 'HZ_PER_KHZ' undeclared (first use in this function)
1532 | value / HZ_PER_KHZ);
| ^~~~~~~~~~
In file included from include/vdso/const.h:5,
from include/linux/const.h:4,
from include/linux/bits.h:5,
from include/linux/bitops.h:6,
from include/linux/kernel.h:11,
from drivers/devfreq/devfreq.c:10:
drivers/devfreq/devfreq.c: In function 'max_freq_store':
drivers/devfreq/devfreq.c:1582:31: error: 'HZ_PER_KHZ' undeclared (first use in this function)
1582 | value = DIV_ROUND_UP(value, HZ_PER_KHZ);
| ^~~~~~~~~~
include/uapi/linux/const.h:34:46: note: in definition of macro '__KERNEL_DIV_ROUND_UP'
34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
| ^
drivers/devfreq/devfreq.c:1582:11: note: in expansion of macro 'DIV_ROUND_UP'
1582 | value = DIV_ROUND_UP(value, HZ_PER_KHZ);
| ^~~~~~~~~~~~
vim +/HZ_PER_KHZ +148 drivers/devfreq/devfreq.c
ab8f58ad72c4d1 Chanwoo Choi 2017-10-23 112
46cecc0bf095bb Leonard Crestez 2019-10-31 113 /**
46cecc0bf095bb Leonard Crestez 2019-10-31 114 * get_freq_range() - Get the current freq range
46cecc0bf095bb Leonard Crestez 2019-10-31 115 * @devfreq: the devfreq instance
46cecc0bf095bb Leonard Crestez 2019-10-31 116 * @min_freq: the min frequency
46cecc0bf095bb Leonard Crestez 2019-10-31 117 * @max_freq: the max frequency
46cecc0bf095bb Leonard Crestez 2019-10-31 118 *
46cecc0bf095bb Leonard Crestez 2019-10-31 119 * This takes into consideration all constraints.
46cecc0bf095bb Leonard Crestez 2019-10-31 120 */
46cecc0bf095bb Leonard Crestez 2019-10-31 121 static void get_freq_range(struct devfreq *devfreq,
46cecc0bf095bb Leonard Crestez 2019-10-31 122 unsigned long *min_freq,
46cecc0bf095bb Leonard Crestez 2019-10-31 123 unsigned long *max_freq)
46cecc0bf095bb Leonard Crestez 2019-10-31 124 {
46cecc0bf095bb Leonard Crestez 2019-10-31 125 unsigned long *freq_table = devfreq->profile->freq_table;
05d7ae15cfb18f Leonard Crestez 2019-12-05 126 s32 qos_min_freq, qos_max_freq;
46cecc0bf095bb Leonard Crestez 2019-10-31 127
46cecc0bf095bb Leonard Crestez 2019-10-31 128 lockdep_assert_held(&devfreq->lock);
46cecc0bf095bb Leonard Crestez 2019-10-31 129
46cecc0bf095bb Leonard Crestez 2019-10-31 130 /*
46cecc0bf095bb Leonard Crestez 2019-10-31 131 * Initialize minimum/maximum frequency from freq table.
46cecc0bf095bb Leonard Crestez 2019-10-31 132 * The devfreq drivers can initialize this in either ascending or
46cecc0bf095bb Leonard Crestez 2019-10-31 133 * descending order and devfreq core supports both.
46cecc0bf095bb Leonard Crestez 2019-10-31 134 */
46cecc0bf095bb Leonard Crestez 2019-10-31 135 if (freq_table[0] < freq_table[devfreq->profile->max_state - 1]) {
46cecc0bf095bb Leonard Crestez 2019-10-31 136 *min_freq = freq_table[0];
46cecc0bf095bb Leonard Crestez 2019-10-31 137 *max_freq = freq_table[devfreq->profile->max_state - 1];
46cecc0bf095bb Leonard Crestez 2019-10-31 138 } else {
46cecc0bf095bb Leonard Crestez 2019-10-31 139 *min_freq = freq_table[devfreq->profile->max_state - 1];
46cecc0bf095bb Leonard Crestez 2019-10-31 140 *max_freq = freq_table[0];
46cecc0bf095bb Leonard Crestez 2019-10-31 141 }
46cecc0bf095bb Leonard Crestez 2019-10-31 142
05d7ae15cfb18f Leonard Crestez 2019-12-05 143 /* Apply constraints from PM QoS */
05d7ae15cfb18f Leonard Crestez 2019-12-05 144 qos_min_freq = dev_pm_qos_read_value(devfreq->dev.parent,
05d7ae15cfb18f Leonard Crestez 2019-12-05 145 DEV_PM_QOS_MIN_FREQUENCY);
05d7ae15cfb18f Leonard Crestez 2019-12-05 146 qos_max_freq = dev_pm_qos_read_value(devfreq->dev.parent,
05d7ae15cfb18f Leonard Crestez 2019-12-05 147 DEV_PM_QOS_MAX_FREQUENCY);
05d7ae15cfb18f Leonard Crestez 2019-12-05 @148 *min_freq = max(*min_freq, (unsigned long)HZ_PER_KHZ * qos_min_freq);
05d7ae15cfb18f Leonard Crestez 2019-12-05 149 if (qos_max_freq != PM_QOS_MAX_FREQUENCY_DEFAULT_VALUE)
05d7ae15cfb18f Leonard Crestez 2019-12-05 150 *max_freq = min(*max_freq,
05d7ae15cfb18f Leonard Crestez 2019-12-05 151 (unsigned long)HZ_PER_KHZ * qos_max_freq);
05d7ae15cfb18f Leonard Crestez 2019-12-05 152
46cecc0bf095bb Leonard Crestez 2019-10-31 153 /* Apply constraints from OPP interface */
46cecc0bf095bb Leonard Crestez 2019-10-31 154 *min_freq = max(*min_freq, devfreq->scaling_min_freq);
46cecc0bf095bb Leonard Crestez 2019-10-31 155 *max_freq = min(*max_freq, devfreq->scaling_max_freq);
46cecc0bf095bb Leonard Crestez 2019-10-31 156
46cecc0bf095bb Leonard Crestez 2019-10-31 157 if (*min_freq > *max_freq)
46cecc0bf095bb Leonard Crestez 2019-10-31 158 *min_freq = *max_freq;
46cecc0bf095bb Leonard Crestez 2019-10-31 159 }
46cecc0bf095bb Leonard Crestez 2019-10-31 160
:::::: The code at line 148 was first introduced by commit
:::::: 05d7ae15cfb18f9ce55eef85bb6bcd62d31acc57 PM / devfreq: Add PM QoS support
:::::: TO: Leonard Crestez <leonard.crestez(a)nxp.com>
:::::: CC: Chanwoo Choi <cw00.choi(a)samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
net/ceph/messenger_v1.c:1355:5: warning: stack frame size of 1136 bytes in function 'ceph_con_v1_try_write'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: cd1a677cad994021b19665ed476aea63f5d54f31 libceph, ceph: implement msgr2.1 protocol (crc and secure modes)
date: 3 months ago
config: powerpc-randconfig-r026-20210228 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e0b1df924ae06d6d88582334087d2eacc6702e8f)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# 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 cd1a677cad994021b19665ed476aea63f5d54f31
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
__do_insb
^
arch/powerpc/include/asm/io.h:541:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v1.c:8:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:74:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v1.c:8:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:76:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v1.c:8:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:78:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v1.c:8:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:80:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v1.c:8:
In file included from include/net/sock.h:38:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:82:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> net/ceph/messenger_v1.c:1355:5: warning: stack frame size of 1136 bytes in function 'ceph_con_v1_try_write' [-Wframe-larger-than=]
int ceph_con_v1_try_write(struct ceph_connection *con)
^
7 warnings generated.
--
In file included from net/ceph/messenger_v2.c:17:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:106:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:541:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v2.c:17:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:108:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v2.c:17:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:110:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v2.c:17:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:112:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v2.c:17:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:114:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from net/ceph/messenger_v2.c:17:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:116:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> net/ceph/messenger_v2.c:2808:5: warning: stack frame size of 2288 bytes in function 'ceph_con_v2_try_read' [-Wframe-larger-than=]
int ceph_con_v2_try_read(struct ceph_connection *con)
^
7 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/ceph_con_v1_try_write +1355 net/ceph/messenger_v1.c
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1350
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1351 /*
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1352 * Write something to the socket. Called in a worker thread when the
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1353 * socket appears to be writeable and we have something ready to send.
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1354 */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 @1355 int ceph_con_v1_try_write(struct ceph_connection *con)
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1356 {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1357 int ret = 1;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1358
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1359 dout("try_write start %p state %d\n", con, con->state);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1360 if (con->state != CEPH_CON_S_PREOPEN &&
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1361 con->state != CEPH_CON_S_V1_BANNER &&
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1362 con->state != CEPH_CON_S_V1_CONNECT_MSG &&
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1363 con->state != CEPH_CON_S_OPEN)
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1364 return 0;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1365
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1366 /* open the socket first? */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1367 if (con->state == CEPH_CON_S_PREOPEN) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1368 BUG_ON(con->sock);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1369 con->state = CEPH_CON_S_V1_BANNER;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1370
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1371 con_out_kvec_reset(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1372 prepare_write_banner(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1373 prepare_read_banner(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1374
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1375 BUG_ON(con->in_msg);
a56dd9bf47220c Ilya Dryomov 2020-11-12 1376 con->v1.in_tag = CEPH_MSGR_TAG_READY;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1377 dout("try_write initiating connect on %p new state %d\n",
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1378 con, con->state);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1379 ret = ceph_tcp_connect(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1380 if (ret < 0) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1381 con->error_msg = "connect error";
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1382 goto out;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1383 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1384 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1385
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1386 more:
a56dd9bf47220c Ilya Dryomov 2020-11-12 1387 dout("try_write out_kvec_bytes %d\n", con->v1.out_kvec_bytes);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1388 BUG_ON(!con->sock);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1389
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1390 /* kvec data queued? */
a56dd9bf47220c Ilya Dryomov 2020-11-12 1391 if (con->v1.out_kvec_left) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1392 ret = write_partial_kvec(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1393 if (ret <= 0)
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1394 goto out;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1395 }
a56dd9bf47220c Ilya Dryomov 2020-11-12 1396 if (con->v1.out_skip) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1397 ret = write_partial_skip(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1398 if (ret <= 0)
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1399 goto out;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1400 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1401
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1402 /* msg pages? */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1403 if (con->out_msg) {
a56dd9bf47220c Ilya Dryomov 2020-11-12 1404 if (con->v1.out_msg_done) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1405 ceph_msg_put(con->out_msg);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1406 con->out_msg = NULL; /* we're done with this one */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1407 goto do_next;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1408 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1409
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1410 ret = write_partial_message_data(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1411 if (ret == 1)
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1412 goto more; /* we need to send the footer, too! */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1413 if (ret == 0)
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1414 goto out;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1415 if (ret < 0) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1416 dout("try_write write_partial_message_data err %d\n",
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1417 ret);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1418 goto out;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1419 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1420 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1421
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1422 do_next:
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1423 if (con->state == CEPH_CON_S_OPEN) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1424 if (ceph_con_flag_test_and_clear(con,
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1425 CEPH_CON_F_KEEPALIVE_PENDING)) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1426 prepare_write_keepalive(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1427 goto more;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1428 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1429 /* is anything else pending? */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1430 if (!list_empty(&con->out_queue)) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1431 prepare_write_message(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1432 goto more;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1433 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1434 if (con->in_seq > con->in_seq_acked) {
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1435 prepare_write_ack(con);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1436 goto more;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1437 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1438 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1439
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1440 /* Nothing to do! */
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1441 ceph_con_flag_clear(con, CEPH_CON_F_WRITE_PENDING);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1442 dout("try_write nothing else to write.\n");
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1443 ret = 0;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1444 out:
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1445 dout("try_write done on %p ret %d\n", con, ret);
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1446 return ret;
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1447 }
2f713615ddd9d8 Ilya Dryomov 2020-11-12 1448
:::::: The code at line 1355 was first introduced by commit
:::::: 2f713615ddd9d805b6c5e79c52e0e11af99d2bf1 libceph: move msgr1 protocol implementation to its own file
:::::: TO: Ilya Dryomov <idryomov(a)gmail.com>
:::::: CC: Ilya Dryomov <idryomov(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
hppa64-linux-ld: mm/slab.o(.init.text+0x450): cannot reach mutex_lock
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: c1cc4784ce6e8cceff1013709abd74bcbf7fbf24 Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/rcu
date: 7 months ago
config: parisc-randconfig-s031-20210228 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.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.3-241-geaceeafa-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 c1cc4784ce6e8cceff1013709abd74bcbf7fbf24
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=parisc
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 >>):
hppa64-linux-ld: init/main.o(.init.text+0xdd8): cannot reach rest_init
init/main.o: in function `arch_call_rest_init':
(.init.text+0xdd8): relocation truncated to fit: R_PARISC_PCREL22F against symbol `rest_init' defined in .ref.text section in init/main.o
hppa64-linux-ld: init/main.o(.init.text+0x13d8): cannot reach build_all_zonelists
init/main.o: in function `start_kernel':
(.init.text+0x13d8): relocation truncated to fit: R_PARISC_PCREL22F against symbol `build_all_zonelists' defined in .ref.text section in mm/page_alloc.o
hppa64-linux-ld: init/main.o(.init.text+0x176c): cannot reach profile_init
(.init.text+0x176c): relocation truncated to fit: R_PARISC_PCREL22F against symbol `profile_init' defined in .ref.text section in kernel/profile.o
hppa64-linux-ld: init/main.o(.init.text+0x1ac0): cannot reach wait_for_completion
init/main.o: in function `kernel_init_freeable':
(.init.text+0x1ac0): relocation truncated to fit: R_PARISC_PCREL22F against symbol `wait_for_completion' defined in .sched.text section in kernel/sched/completion.o
hppa64-linux-ld: init/main.o(.ref.text+0x1c): cannot reach rcu_scheduler_starting
init/main.o: in function `rest_init':
(.ref.text+0x1c): relocation truncated to fit: R_PARISC_PCREL22F against symbol `rcu_scheduler_starting' defined in .init.text section in kernel/rcu/srcutiny.o
hppa64-linux-ld: init/main.o(.ref.text+0x17c): cannot reach unknown
init/main.o: in function `kernel_init':
(.ref.text+0x17c): relocation truncated to fit: R_PARISC_PCREL22F against `kernel_init_freeable'
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0x78): cannot reach unknown
arch/parisc/mm/init.o: in function `free_initmem':
(.ref.text+0x78): relocation truncated to fit: R_PARISC_PCREL22F against `map_pages'
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xa0): cannot reach unknown
(.ref.text+0xa0): relocation truncated to fit: R_PARISC_PCREL22F against `map_pages'
hppa64-linux-ld: arch/parisc/mm/init.o(.ref.text+0xc4): cannot reach unknown
(.ref.text+0xc4): relocation truncated to fit: R_PARISC_PCREL22F against `map_pages'
hppa64-linux-ld: kernel/printk/printk.o(.init.text+0x768): cannot reach _raw_spin_lock
kernel/printk/printk.o: in function `setup_log_buf':
(.init.text+0x768): relocation truncated to fit: R_PARISC_PCREL22F against symbol `_raw_spin_lock' defined in .spinlock.text section in kernel/locking/spinlock.o
hppa64-linux-ld: kernel/printk/printk.o(.init.text+0x7c4): cannot reach _raw_spin_unlock
(.init.text+0x7c4): additional relocation overflows omitted from the output
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x228): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x440): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x7a0): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0x878): cannot reach mutex_unlock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xad4): cannot reach mutex_lock
hppa64-linux-ld: kernel/cgroup/cgroup.o(.init.text+0xafc): cannot reach mutex_unlock
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x7d8): cannot reach _raw_spin_lock
hppa64-linux-ld: mm/page_alloc.o(.init.text+0x804): cannot reach _raw_spin_unlock
hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x34): cannot reach unknown
hppa64-linux-ld: mm/hugetlb.o(.init.text+0x2b8): cannot reach _cond_resched
>> hppa64-linux-ld: mm/slab.o(.init.text+0x450): cannot reach mutex_lock
hppa64-linux-ld: kernel/resource.o(.init.text+0x32c): cannot reach _raw_write_lock
hppa64-linux-ld: kernel/resource.o(.init.text+0x4f8): cannot reach _raw_write_unlock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0x90): cannot reach mutex_lock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0xc4): cannot reach mutex_unlock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0x1b8): cannot reach mutex_lock
hppa64-linux-ld: kernel/time/clocksource.o(.init.text+0x208): cannot reach mutex_unlock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0xa8): cannot reach mutex_lock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0x128): cannot reach mutex_unlock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0x354): cannot reach mutex_lock
hppa64-linux-ld: kernel/workqueue.o(.init.text+0x388): cannot reach mutex_unlock
hppa64-linux-ld: kernel/user.o(.init.text+0x80): cannot reach _raw_spin_lock_irq
hppa64-linux-ld: kernel/user.o(.init.text+0xb8): cannot reach _raw_spin_unlock_irq
hppa64-linux-ld: mm/percpu.o(.init.text+0xc4): cannot reach __muldi3
hppa64-linux-ld: mm/percpu.o(.init.text+0x4a8): cannot reach __muldi3
hppa64-linux-ld: mm/percpu.o(.init.text+0xad8): cannot reach __muldi3
hppa64-linux-ld: mm/percpu.o(.init.text+0xc24): cannot reach __muldi3
hppa64-linux-ld: kernel/rcu/refscale.o(.init.text+0x228): cannot reach schedule_timeout_uninterruptible
hppa64-linux-ld: kernel/time/timekeeping.o(.init.text+0x228): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: kernel/time/timekeeping.o(.init.text+0x320): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: kernel/time/sched_clock.o(.init.text+0x170): cannot reach __muldi3
hppa64-linux-ld: kernel/time/sched_clock.o(.init.text+0x214): cannot reach __udivdi3
hppa64-linux-ld: kernel/time/sched_clock.o(.init.text+0x240): cannot reach __udivdi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x2d4): cannot reach __muldi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x2ec): cannot reach __udivdi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x3d4): cannot reach __muldi3
hppa64-linux-ld: arch/parisc/kernel/cache.o(.init.text+0x3ec): cannot reach __udivdi3
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x3c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0xe8): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x170): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x288): cannot reach _raw_spin_unlock_irqrestore
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x30c): cannot reach _raw_spin_lock_irqsave
hppa64-linux-ld: arch/parisc/kernel/firmware.o(.init.text+0x3d8): cannot reach _raw_spin_unlock_irqrestore
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months