[hid:for-5.9/core 4/4] drivers/hid/intel-ish-hid/ipc/ipc.c:12:10: fatal error: client.h: No such file or directory
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-5.9/core
head: 470376737e88dc8e453f3d2739447c130f8ebeb6
commit: 470376737e88dc8e453f3d2739447c130f8ebeb6 [4/4] HID: allow building hid.ko as an external module
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.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
git checkout 470376737e88dc8e453f3d2739447c130f8ebeb6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>):
>> drivers/hid/intel-ish-hid/ipc/ipc.c:12:10: fatal error: client.h: No such file or directory
12 | #include "client.h"
| ^~~~~~~~~~
compilation terminated.
--
>> drivers/hid/intel-ish-hid/ipc/pci-ish.c:22:10: fatal error: ishtp-dev.h: No such file or directory
22 | #include "ishtp-dev.h"
| ^~~~~~~~~~~~~
compilation terminated.
vim +12 drivers/hid/intel-ish-hid/ipc/ipc.c
ae02e5d40d5f829 Srinivas Pandruvada 2016-08-07 @12 #include "client.h"
ae02e5d40d5f829 Srinivas Pandruvada 2016-08-07 13 #include "hw-ish.h"
ae02e5d40d5f829 Srinivas Pandruvada 2016-08-07 14 #include "hbm.h"
ae02e5d40d5f829 Srinivas Pandruvada 2016-08-07 15
:::::: The code at line 12 was first introduced by commit
:::::: ae02e5d40d5f829c589412c6253f925e35cf7a22 HID: intel-ish-hid: ipc layer
:::::: TO: Srinivas Pandruvada <srinivas.pandruvada(a)linux.intel.com>
:::::: CC: Jiri Kosina <jkosina(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[RFC PATCH] printk: _printk_rb_static_dict can be static
by kernel test robot
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
printk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 7642ef634956f..d812ada06735f 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -434,7 +434,7 @@ static u32 log_buf_len = __LOG_BUF_LEN;
*/
#define PRB_AVGBITS 5 /* 32 character average length */
-_DECLARE_PRINTKRB(printk_rb_static, CONFIG_LOG_BUF_SHIFT - PRB_AVGBITS,
+static _DECLARE_PRINTKRB(printk_rb_static, CONFIG_LOG_BUF_SHIFT - PRB_AVGBITS,
PRB_AVGBITS, PRB_AVGBITS, &__log_buf[0]);
static struct printk_ringbuffer printk_rb_dynamic;
2 years, 3 months
Re: [PATCH v2] Introduce MEN 16Z192-00 CAN controller driver
by kernel test robot
Hi Abhijeet,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.8-rc1 next-20200618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Abhijeet-Badurkar/Introduce-MEN-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5e857ce6eae7ca21b2055cca4885545e29228fe2
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
# 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 >>, old ones prefixed by <<):
>> drivers/net/can/men_z192_can.c:704:6: warning: no previous prototype for function 'men_z192_set_can_state' [-Wmissing-prototypes]
void men_z192_set_can_state(struct net_device *ndev)
^
drivers/net/can/men_z192_can.c:704:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void men_z192_set_can_state(struct net_device *ndev)
^
static
1 warning generated.
vim +/men_z192_set_can_state +704 drivers/net/can/men_z192_can.c
703
> 704 void men_z192_set_can_state(struct net_device *ndev)
705 {
706 struct men_z192 *priv = netdev_priv(ndev);
707 struct men_z192_regs __iomem *regs = priv->regs;
708 enum can_state rx_state, tx_state;
709 u32 status;
710
711 status = readl(®s->rx_tx_sts);
712
713 rx_state = bus_state_map[MEN_Z192_GET_RSTATE(status)];
714 tx_state = bus_state_map[MEN_Z192_GET_TSTATE(status)];
715
716 can_change_state(ndev, NULL, tx_state, rx_state);
717 }
718
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.14 30/32] drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:732:2: warning: variable 'ret' is used uninitialized whenever switch default is taken
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.14
head: 0b385b22ca067383979d97c42cd1fd33976d95d4
commit: cb7668073b2c57128b6909c93a571a02a448997c [30/32] BACKPORT: iio: cros_ec: Use Hertz as unit for sampling frequency
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
git checkout cb7668073b2c57128b6909c93a571a02a448997c
# 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 >>, old ones prefixed by <<):
>> drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:732:2: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:736:9: note: uninitialized use occurs here
return ret;
^~~
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:715:9: note: initialize the variable 'ret' to silence this warning
int ret, frequency;
^
= 0
1 warning generated.
vim +/ret +732 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 710
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 711 int cros_ec_sensors_core_read(struct cros_ec_sensors_core_state *st,
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 712 struct iio_chan_spec const *chan,
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 713 int *val, int *val2, long mask)
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 714 {
cb7668073b2c571 Gwendal Grignou 2020-03-27 715 int ret, frequency;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 716
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 717 switch (mask) {
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 718 case IIO_CHAN_INFO_SAMP_FREQ:
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 719 st->param.cmd = MOTIONSENSE_CMD_SENSOR_ODR;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 720 st->param.sensor_odr.data =
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 721 EC_MOTION_SENSE_NO_VALUE;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 722
cb7668073b2c571 Gwendal Grignou 2020-03-27 723 ret = cros_ec_motion_send_host_cmd(st, 0);
cb7668073b2c571 Gwendal Grignou 2020-03-27 724 if (ret)
cb7668073b2c571 Gwendal Grignou 2020-03-27 725 break;
cb7668073b2c571 Gwendal Grignou 2020-03-27 726
cb7668073b2c571 Gwendal Grignou 2020-03-27 727 frequency = st->resp->sensor_odr.ret;
cb7668073b2c571 Gwendal Grignou 2020-03-27 728 *val = frequency / 1000;
cb7668073b2c571 Gwendal Grignou 2020-03-27 729 *val2 = (frequency % 1000) * 1000;
cb7668073b2c571 Gwendal Grignou 2020-03-27 730 ret = IIO_VAL_INT_PLUS_MICRO;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 731 break;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 @732 default:
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 733 break;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 734 }
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 735
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 736 return ret;
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 737 }
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 738 EXPORT_SYMBOL_GPL(cros_ec_sensors_core_read);
974e6f02e27e1b4 Enric Balletbo i Serra 2016-08-01 739
:::::: The code at line 732 was first introduced by commit
:::::: 974e6f02e27e1b46c6c5e600e70ced25079f73eb iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.
:::::: TO: Enric Balletbo i Serra <enric.balletbo(a)collabora.com>
:::::: CC: Jonathan Cameron <jic23(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
ERROR: modpost: "__mulsi3" undefined!
by kernel test robot
Hi Jessica,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5e857ce6eae7ca21b2055cca4885545e29228fe2
commit: 93c95e526a4ef00eb3d5a1e0920ba5a22f32e40d modpost: rework and consolidate logging interface
date: 3 months ago
config: nios2-randconfig-c003-20200619 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
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 >>, old ones prefixed by <<):
>> ERROR: modpost: "__mulsi3" [net/sunrpc/auth_gss/auth_rpcgss.ko] undefined!
ERROR: modpost: "__mulsi3" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__mulsi3" [fs/nfs/nfsv4.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[morimoto-linux:fw-cleanup-2020-06-19-v1 82/146] drivers/sh/clk/cpg.c:49:9: error: assignment to 'unsigned int void from incompatible pointer type 'unsigned int
by kernel test robot
tree: https://github.com/morimoto/linux fw-cleanup-2020-06-19-v1
head: 050c38d477a06cdc6262ffe066cebd2d9d4dcd55
commit: 5ee13295d2c82cc8c4fedc7a2f67004c117d6ea4 [82/146] sh: clkfwk: remove r8/r16/r32
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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
git checkout 5ee13295d2c82cc8c4fedc7a2f67004c117d6ea4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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/sh/clk/cpg.c: In function 'sh_clk_mstp_enable':
>> drivers/sh/clk/cpg.c:49:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)' [-Werror=incompatible-pointer-types]
49 | read = ioread8;
| ^
drivers/sh/clk/cpg.c:51:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)' [-Werror=incompatible-pointer-types]
51 | read = ioread16;
| ^
drivers/sh/clk/cpg.c:53:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)' [-Werror=incompatible-pointer-types]
53 | read = ioread32;
| ^
cc1: some warnings being treated as errors
vim +49 drivers/sh/clk/cpg.c
38
39 static int sh_clk_mstp_enable(struct clk *clk)
40 {
41 sh_clk_write(sh_clk_read(clk) & ~(1 << clk->enable_bit), clk);
42 if (clk->status_reg) {
43 unsigned int (*read)(const void __iomem *addr);
44 int i;
45 void __iomem *mapped_status = (phys_addr_t)clk->status_reg -
46 (phys_addr_t)clk->enable_reg + clk->mapped_reg;
47
48 if (clk->flags & CLK_ENABLE_REG_8BIT)
> 49 read = ioread8;
50 else if (clk->flags & CLK_ENABLE_REG_16BIT)
51 read = ioread16;
52 else
53 read = ioread32;
54
55 for (i = 1000;
56 (read(mapped_status) & (1 << clk->enable_bit)) && i;
57 i--)
58 cpu_relax();
59 if (!i) {
60 pr_err("cpg: failed to enable %p[%d]\n",
61 clk->enable_reg, clk->enable_bit);
62 return -ETIMEDOUT;
63 }
64 }
65 return 0;
66 }
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v2] Introduce MEN 16Z192-00 CAN controller driver
by kernel test robot
Hi Abhijeet,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.8-rc1 next-20200618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Abhijeet-Badurkar/Introduce-MEN-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5e857ce6eae7ca21b2055cca4885545e29228fe2
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/net/can/men_z192_can.c:704:6: warning: no previous prototype for 'men_z192_set_can_state' [-Wmissing-prototypes]
704 | void men_z192_set_can_state(struct net_device *ndev)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/men_z192_set_can_state +704 drivers/net/can/men_z192_can.c
703
> 704 void men_z192_set_can_state(struct net_device *ndev)
705 {
706 struct men_z192 *priv = netdev_priv(ndev);
707 struct men_z192_regs __iomem *regs = priv->regs;
708 enum can_state rx_state, tx_state;
709 u32 status;
710
711 status = readl(®s->rx_tx_sts);
712
713 rx_state = bus_state_map[MEN_Z192_GET_RSTATE(status)];
714 tx_state = bus_state_map[MEN_Z192_GET_TSTATE(status)];
715
716 can_change_state(ndev, NULL, tx_state, rx_state);
717 }
718
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [RFC PATCH] net/sched: add indirect call wrapper hint.
by kernel test robot
Hi Paolo,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net/master]
[also build test ERROR on net-next/master linus/master v5.8-rc1 next-20200618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Paolo-Abeni/net-sched-add-indire...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git ef7232da6bcd4294cbb2d424bc35885721570f01
config: x86_64-randconfig-a001-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
# 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 error/warnings (new ones prefixed by >>):
In file included from net/sched/sch_codel.c:54:
>> include/net/sch_hint.h:39:43: error: conflicting types for 'codel_dequeue'
INDIRECT_CALLABLE_DECLARE(struct sk_buff *NET_SCHED_DEQUEUE(struct Qdisc *q));
^
include/net/sch_hint.h:27:27: note: expanded from macro 'NET_SCHED_DEQUEUE'
#define NET_SCHED_DEQUEUE codel_dequeue
^
include/net/codel_impl.h:142:24: note: previous definition is here
static struct sk_buff *codel_dequeue(void *ctx,
^
>> net/sched/sch_codel.c:93:29: warning: no previous prototype for function 'codel_qdisc_dequeue' [-Wmissing-prototypes]
CODEL_SCOPE struct sk_buff *codel_qdisc_dequeue(struct Qdisc *sch)
^
net/sched/sch_codel.c:93:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
CODEL_SCOPE struct sk_buff *codel_qdisc_dequeue(struct Qdisc *sch)
^
static
>> net/sched/sch_codel.c:115:17: warning: no previous prototype for function 'codel_qdisc_enqueue' [-Wmissing-prototypes]
CODEL_SCOPE int codel_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch,
^
net/sched/sch_codel.c:115:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
CODEL_SCOPE int codel_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch,
^
static
2 warnings and 1 error generated.
--
In file included from net/sched/sch_fq_codel.c:25:
>> include/net/sch_hint.h:39:43: error: conflicting types for 'codel_dequeue'
INDIRECT_CALLABLE_DECLARE(struct sk_buff *NET_SCHED_DEQUEUE(struct Qdisc *q));
^
include/net/sch_hint.h:27:27: note: expanded from macro 'NET_SCHED_DEQUEUE'
#define NET_SCHED_DEQUEUE codel_dequeue
^
include/net/codel_impl.h:142:24: note: previous definition is here
static struct sk_buff *codel_dequeue(void *ctx,
^
1 error generated.
vim +/codel_dequeue +39 include/net/sch_hint.h
34
35 #if defined(NET_SCHED_DEQUEUE)
36 INDIRECT_CALLABLE_DECLARE(int NET_SCHED_ENQUEUE(struct sk_buff *skb,
37 struct Qdisc *qdisc,
38 struct sk_buff **to_free));
> 39 INDIRECT_CALLABLE_DECLARE(struct sk_buff *NET_SCHED_DEQUEUE(struct Qdisc *q));
40
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
warning: some functions compiled with BTI and some compiled without BTI
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5e857ce6eae7ca21b2055cca4885545e29228fe2
commit: 97fed779f2a68937d9590fbbe8ed31d6ebbce5a5 arm64: bti: Provide Kconfig for kernel mode BTI
date: 6 weeks ago
config: arm64-randconfig-r031-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout 97fed779f2a68937d9590fbbe8ed31d6ebbce5a5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>, old ones prefixed by <<):
lib/lzo/lzo1x_compress.c:291:5: warning: no previous prototype for function 'lzogeneric1x_1_compress' [-Wmissing-prototypes]
int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len,
^
lib/lzo/lzo1x_compress.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
--
lib/decompress_inflate.c:42:17: warning: no previous prototype for function '__gunzip' [-Wmissing-prototypes]
STATIC int INIT __gunzip(unsigned char *buf, long len,
^
lib/decompress_inflate.c:42:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
STATIC int INIT __gunzip(unsigned char *buf, long len,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/decompress_unxz.c:251:17: warning: no previous prototype for function 'unxz' [-Wmissing-prototypes]
STATIC int INIT unxz(unsigned char *in, long in_size,
^
lib/decompress_unxz.c:251:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
STATIC int INIT unxz(unsigned char *in, long in_size,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/radix-tree.c:291:6: warning: no previous prototype for function 'radix_tree_node_rcu_free' [-Wmissing-prototypes]
void radix_tree_node_rcu_free(struct rcu_head *head)
^
lib/radix-tree.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void radix_tree_node_rcu_free(struct rcu_head *head)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/compat_audit.c:31:5: warning: no previous prototype for function 'audit_classify_compat_syscall' [-Wmissing-prototypes]
int audit_classify_compat_syscall(int abi, unsigned syscall)
^
lib/compat_audit.c:31:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int audit_classify_compat_syscall(int abi, unsigned syscall)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/errname.c:172:2: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
E(EDEADLK), /* EDEADLOCK */
^~~~~~~~~~
lib/errname.c:15:67: note: expanded from macro 'E'
#define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err
^~~~~~~~
lib/errname.c:41:2: note: previous initialization is here
E(EDEADLOCK),
^~~~~~~~~~~~
lib/errname.c:15:67: note: expanded from macro 'E'
#define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err
^~~~~~~~
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/kunit/debugfs.c:28:6: warning: no previous prototype for function 'kunit_debugfs_cleanup' [-Wmissing-prototypes]
void kunit_debugfs_cleanup(void)
^
lib/kunit/debugfs.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_cleanup(void)
^
static
lib/kunit/debugfs.c:33:6: warning: no previous prototype for function 'kunit_debugfs_init' [-Wmissing-prototypes]
void kunit_debugfs_init(void)
^
lib/kunit/debugfs.c:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_init(void)
^
static
lib/kunit/debugfs.c:92:6: warning: no previous prototype for function 'kunit_debugfs_create_suite' [-Wmissing-prototypes]
void kunit_debugfs_create_suite(struct kunit_suite *suite)
^
lib/kunit/debugfs.c:92:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_create_suite(struct kunit_suite *suite)
^
static
lib/kunit/debugfs.c:108:6: warning: no previous prototype for function 'kunit_debugfs_destroy_suite' [-Wmissing-prototypes]
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
^
lib/kunit/debugfs.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
4 warnings generated.
--
lib/lz4/lz4_decompress.c:477:5: warning: no previous prototype for function 'LZ4_decompress_safe_withPrefix64k' [-Wmissing-prototypes]
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
lib/lz4/lz4_decompress.c:477:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
static
lib/lz4/lz4_decompress.c:499:5: warning: no previous prototype for function 'LZ4_decompress_safe_forceExtDict' [-Wmissing-prototypes]
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
lib/lz4/lz4_decompress.c:499:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
2 warnings generated.
--
lib/zlib_inflate/inffast.c:31:1: warning: unused function 'get_unaligned16' [-Wunused-function]
get_unaligned16(const unsigned short *p)
^
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
--
lib/zstd/fse_compress.c:477:8: warning: no previous prototype for function 'FSE_sizeof_CTable' [-Wmissing-prototypes]
size_t FSE_sizeof_CTable(unsigned maxSymbolValue, unsigned tableLog)
^
lib/zstd/fse_compress.c:477:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
size_t FSE_sizeof_CTable(unsigned maxSymbolValue, unsigned tableLog)
^
static
>> warning: some functions compiled with BTI and some compiled without BTI
>> warning: not setting BTI in feature flags
1 warning generated.
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[omap-audio:peter/ti-linux-5.4.y/wip 5998/9999] drivers/pci/endpoint/functions/pci-epf-ntb.c:296:18: warning: variable 'epc' set but not used
by kernel test robot
tree: https://github.com/omap-audio/linux-audio peter/ti-linux-5.4.y/wip
head: d4ea716deb5cae567d7ffb483c1cc6a18ca0d3ba
commit: e931ab2e52fa70488b568ee9e88873206e3b1118 [5998/9999] PCI: endpoint: Add EP function driver to provide NTB functionality
config: alpha-randconfig-r006-20200619 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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
git checkout e931ab2e52fa70488b568ee9e88873206e3b1118
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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 >>, old ones prefixed by <<):
drivers/pci/endpoint/functions/pci-epf-ntb.c: In function 'epf_ntb_peer_spad_bar_set':
>> drivers/pci/endpoint/functions/pci-epf-ntb.c:296:18: warning: variable 'epc' set but not used [-Wunused-but-set-variable]
296 | struct pci_epc *epc;
| ^~~
drivers/pci/endpoint/functions/pci-epf-ntb.c: In function 'epf_ntb_config_spad_bar_alloc_interface':
drivers/pci/endpoint/functions/pci-epf-ntb.c:403:18: warning: variable 'epc' set but not used [-Wunused-but-set-variable]
403 | struct pci_epc *epc;
| ^~~
>> drivers/pci/endpoint/functions/pci-epf-ntb.c:398:17: warning: variable 'peer_barno' set but not used [-Wunused-but-set-variable]
398 | enum pci_barno peer_barno;
| ^~~~~~~~~~
vim +/epc +296 drivers/pci/endpoint/functions/pci-epf-ntb.c
284
285 static int
286 epf_ntb_peer_spad_bar_set(struct epf_ntb *ntb, enum pci_epc_interface_type type)
287 {
288 struct epf_ntb_epc *peer_ntb_epc;
289 struct pci_epf_bar *peer_epf_bar;
290 struct epf_ntb_epc *ntb_epc;
291 struct pci_epf_bar *epf_bar;
292 enum pci_barno peer_barno;
293 u32 peer_spad_offset;
294 enum pci_barno barno;
295 u8 vfunc_no, func_no;
> 296 struct pci_epc *epc;
297 struct device *dev;
298 int ret;
299
300 dev = &ntb->epf->dev;
301
302 peer_ntb_epc = ntb->epc[!type];
303 peer_barno = peer_ntb_epc->epf_ntb_bar[BAR_CONFIG];
304 peer_epf_bar = &peer_ntb_epc->epf_bar[peer_barno];
305
306 ntb_epc = ntb->epc[type];
307 barno = ntb_epc->epf_ntb_bar[BAR_PEER_SPAD];
308 epf_bar = &ntb_epc->epf_bar[barno];
309 func_no = ntb_epc->func_no;
310 vfunc_no = ntb_epc->vfunc_no;
311 epc = ntb_epc->epc;
312
313 peer_spad_offset = peer_ntb_epc->reg->spad_offset;
314 epf_bar->phys_addr = peer_epf_bar->phys_addr + peer_spad_offset;
315 epf_bar->size = peer_ntb_epc->spad_size;
316 epf_bar->barno = barno;
317 epf_bar->flags = PCI_BASE_ADDRESS_MEM_TYPE_32;
318
319 ret = pci_epc_set_bar(ntb_epc->epc, func_no, vfunc_no, epf_bar);
320 if (ret) {
321 dev_err(dev, "%s intf: peer SPAD BAR set failed\n",
322 pci_epc_interface_string(type));
323 return ret;
324 }
325
326 return 0;
327 }
328
329 static void epf_ntb_config_sspad_bar_clear(struct epf_ntb_epc *ntb_epc)
330 {
331 struct pci_epf_bar *epf_bar;
332 u8 vfunc_no, func_no;
333 enum pci_barno barno;
334 struct pci_epc *epc;
335
336 epc = ntb_epc->epc;
337 func_no = ntb_epc->func_no;
338 vfunc_no = ntb_epc->vfunc_no;
339 barno = ntb_epc->epf_ntb_bar[BAR_CONFIG];
340 epf_bar = &ntb_epc->epf_bar[barno];
341 pci_epc_clear_bar(epc, func_no, vfunc_no, epf_bar);
342 }
343
344 static int epf_ntb_config_sspad_bar_set(struct epf_ntb_epc *ntb_epc)
345 {
346 struct pci_epf_bar *epf_bar;
347 enum pci_barno barno;
348 u8 vfunc_no, func_no;
349 struct epf_ntb *ntb;
350 struct pci_epc *epc;
351 struct device *dev;
352 int ret;
353
354 ntb = ntb_epc->epf_ntb;
355 dev = &ntb->epf->dev;
356
357 epc = ntb_epc->epc;
358 func_no = ntb_epc->func_no;
359 vfunc_no = ntb_epc->vfunc_no;
360 barno = ntb_epc->epf_ntb_bar[BAR_CONFIG];
361 epf_bar = &ntb_epc->epf_bar[barno];
362
363 ret = pci_epc_set_bar(epc, func_no, vfunc_no, epf_bar);
364 if (ret) {
365 dev_err(dev, "%s inft: Config/Status/SPAD BAR set failed\n",
366 pci_epc_interface_string(ntb_epc->type));
367 return ret;
368 }
369
370 return 0;
371 }
372
373 static void epf_ntb_config_spad_bar_free(struct epf_ntb *ntb)
374 {
375 enum pci_epc_interface_type type;
376 struct epf_ntb_epc *ntb_epc;
377 enum pci_barno barno;
378 struct pci_epf *epf;
379
380 epf = ntb->epf;
381 for (type = PRIMARY_INTERFACE; type <= SECONDARY_INTERFACE; type++) {
382 ntb_epc = ntb->epc[type];
383 barno = ntb_epc->epf_ntb_bar[BAR_CONFIG];
384 if (ntb_epc->reg)
385 pci_epf_free_space(epf, ntb_epc->reg, barno, type);
386 }
387 }
388
389 static int
390 epf_ntb_config_spad_bar_alloc_interface(struct epf_ntb *ntb,
391 enum pci_epc_interface_type type)
392 {
393 const struct pci_epc_features *peer_epc_features;
394 const struct pci_epc_features *epc_features;
395 struct epf_ntb_epc *peer_ntb_epc;
396 struct epf_ntb_epc *ntb_epc;
397 struct epf_ntb_ctrl *ctrl;
> 398 enum pci_barno peer_barno;
399 struct device_node *node;
400 u32 spad_size, ctrl_size;
401 enum pci_barno barno;
402 u64 size, peer_size;
403 struct pci_epc *epc;
404 struct pci_epf *epf;
405 struct device *dev;
406 u32 spad_count;
407 size_t align;
408 void *base;
409
410 epf = ntb->epf;
411 node = epf->node;
412 dev = &epf->dev;
413 ntb_epc = ntb->epc[type];
414 epc = ntb_epc->epc;
415
416 epc_features = ntb_epc->epc_features;
417 barno = ntb_epc->epf_ntb_bar[BAR_CONFIG];
418 size = epc_features->bar_fixed_size[barno];
419 align = epc_features->align;
420
421 peer_ntb_epc = ntb->epc[!type];
422 peer_epc_features = peer_ntb_epc->epc_features;
423 peer_barno = ntb_epc->epf_ntb_bar[BAR_PEER_SPAD];
424 peer_size = peer_epc_features->bar_fixed_size[barno];
425
426 /* Check if epc_features is populated incorrectly */
427 if ((!IS_ALIGNED(size, align)))
428 return -EINVAL;
429
430 spad_count = SPAD_COUNT;
431 of_property_read_u32(node, "spad-count", &spad_count);
432
433 ctrl_size = sizeof(struct epf_ntb_ctrl);
434 spad_size = spad_count * 4;
435
436 if (!align) {
437 ctrl_size = roundup_pow_of_two(ctrl_size);
438 spad_size = roundup_pow_of_two(spad_size);
439 } else {
440 ctrl_size = ALIGN(ctrl_size, align);
441 spad_size = ALIGN(spad_size, align);
442 }
443
444 if (peer_size) {
445 if (peer_size < spad_size)
446 spad_count = peer_size / 4;
447 spad_size = peer_size;
448 }
449
450 /*
451 * In order to make sure SPAD offset is aligned to its size,
452 * expand control region size to the size of SPAD if SPAD size
453 * is greater than control region size.
454 */
455 if (spad_size > ctrl_size)
456 ctrl_size = spad_size;
457
458 if (!size)
459 size = ctrl_size + spad_size;
460 else if (size < ctrl_size + spad_size)
461 return -EINVAL;
462
463 base = pci_epf_alloc_space(epf, size, barno, align, type);
464 if (!base) {
465 dev_err(dev, "%s intf: Config/Status/SPAD alloc region fail\n",
466 pci_epc_interface_string(type));
467 return -ENOMEM;
468 }
469
470 ntb_epc->reg = base;
471
472 ctrl = ntb_epc->reg;
473 ctrl->spad_offset = ctrl_size;
474 ctrl->spad_count = spad_count;
475 ctrl->num_mws = ntb->num_mws;
476 ctrl->db_entry_size = align ? align : 4;
477 ntb_epc->spad_size = spad_size;
478
479 return 0;
480 }
481
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months