Re: [PATCH] add support for battery charging threshold, mute. correctly save ac/dc brightness to hardware registers
by kernel test robot
Hi Kenneth,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.9-rc1 next-20200818]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Kenneth-Chan/add-support-for-bat...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git bcf876870b95592b52519ed4aafcf9d95999bc9c
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/platform/x86/panasonic-laptop.c: In function 'eco_mode_store':
>> drivers/platform/x86/panasonic-laptop.c:602:11: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
602 | int err, rc, state;
| ^~
# https://github.com/0day-ci/linux/commit/1f9eb2351cf22424f1ca39f5068c51fe7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kenneth-Chan/add-support-for-battery-charging-threshold-mute-correctly-save-ac-dc-brightness-to-hardware-registers/20200819-020600
git checkout 1f9eb2351cf22424f1ca39f5068c51fe74189aba
vim +/rc +602 drivers/platform/x86/panasonic-laptop.c
596
597 static ssize_t eco_mode_store(struct device *dev, struct device_attribute *attr,
598 const char *buf, size_t count)
599 {
600 struct acpi_device *acpi = to_acpi_device(dev);
601 struct pcc_acpi *pcc = acpi_driver_data(acpi);
> 602 int err, rc, state;
603
604 union acpi_object param[2];
605 struct acpi_object_list input;
606 acpi_status status;
607
608 param[0].type = ACPI_TYPE_INTEGER;
609 param[0].integer.value = 0x15;
610 param[1].type = ACPI_TYPE_INTEGER;
611 input.count = 2;
612 input.pointer = param;
613
614 err = kstrtoint(buf, 0, &state);
615 if (err)
616 return err;
617
618 switch (state) {
619 case 0:
620 param[1].integer.value = ECO_MODE_OFF;
621 pcc->sinf[SINF_ECO_MODE] = 0;
622 pcc->eco_mode = 0;
623 break;
624 case 1:
625 param[1].integer.value = ECO_MODE_ON;
626 pcc->sinf[SINF_ECO_MODE] = 1;
627 pcc->eco_mode = 1;
628 break;
629 default:
630 /* nothing to do */
631 rc = -EIO;
632 break;
633 }
634
635 status = acpi_evaluate_object(NULL, METHOD_ECWR,
636 &input, NULL);
637 if (ACPI_FAILURE(status)) {
638 pr_err("%s evaluation failed\n", METHOD_ECWR);
639 return -EINVAL;
640 }
641
642 return count;
643 }
644
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[linux-review:UPDATE-20200819-003212/Tong-Zhang/tty-serial-fix-earlycon-dependency/20200818-012524 1/1] drivers/tty/serial/Kconfig:12: syntax error
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200819-003212/Tong-Zhan...
head: 759d17f5a000b4795da8e96124ddf756c63c65f7
commit: 759d17f5a000b4795da8e96124ddf756c63c65f7 [1/1] tty: serial: earlycon dependency
config: nios2-randconfig-p001-20200818
compiler: nios2-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 759d17f5a000b4795da8e96124ddf756c63c65f7
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 randconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
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/tty/serial/Kconfig:12: syntax error
drivers/tty/serial/Kconfig:11: invalid statement
drivers/tty/serial/Kconfig:12: invalid statement
drivers/tty/serial/Kconfig:13:warning: ignoring unsupported character '.'
drivers/tty/serial/Kconfig:13: unknown statement "Support"
drivers/tty/serial/Kconfig:14:warning: ignoring unsupported character '.'
drivers/tty/serial/Kconfig:14: unknown statement "the"
drivers/tty/serial/Kconfig:15:warning: ignoring unsupported character '.'
drivers/tty/serial/Kconfig:15: unknown statement "enabled"
make[2]: *** [scripts/kconfig/Makefile:71: oldconfig] Error 1
make[1]: *** [Makefile:608: oldconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'oldconfig' not remade because of errors.
--
>> drivers/tty/serial/Kconfig:12: syntax error
drivers/tty/serial/Kconfig:11: invalid statement
drivers/tty/serial/Kconfig:12: invalid statement
drivers/tty/serial/Kconfig:13:warning: ignoring unsupported character '.'
drivers/tty/serial/Kconfig:13: unknown statement "Support"
drivers/tty/serial/Kconfig:14:warning: ignoring unsupported character '.'
drivers/tty/serial/Kconfig:14: unknown statement "the"
drivers/tty/serial/Kconfig:15:warning: ignoring unsupported character '.'
drivers/tty/serial/Kconfig:15: unknown statement "enabled"
make[2]: *** [scripts/kconfig/Makefile:71: olddefconfig] Error 1
make[1]: *** [Makefile:608: olddefconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
# https://github.com/0day-ci/linux/commit/759d17f5a000b4795da8e96124ddf756c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20200819-003212/Tong-Zhang/tty-serial-fix-earlycon-dependency/20200818-012524
git checkout 759d17f5a000b4795da8e96124ddf756c63c65f7
vim +12 drivers/tty/serial/Kconfig
^1da177e4c3f41 drivers/serial/Kconfig Linus Torvalds 2005-04-16 5
^1da177e4c3f41 drivers/serial/Kconfig Linus Torvalds 2005-04-16 6 menu "Serial drivers"
0244ad004a54e3 drivers/tty/serial/Kconfig Martin Schwidefsky 2013-08-30 7 depends on HAS_IOMEM
^1da177e4c3f41 drivers/serial/Kconfig Linus Torvalds 2005-04-16 8
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 9 config SERIAL_EARLYCON
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 10 bool
759d17f5a000b4 drivers/tty/serial/Kconfig Tong Zhang 2020-08-18 11 depends SERIAL_CORE
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 @12 help
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 13 Support for early consoles with the earlycon parameter. This enables
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 14 the console before standard serial driver is probed. The console is
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 15 enabled when early_param is processed.
9aac5887595b76 drivers/tty/serial/Kconfig Rob Herring 2014-04-18 16
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[kraxel:drm-qemu-next 6/8] ERROR: modpost: "dma_buf_export" undefined!
by kernel test robot
tree: git://git.kraxel.org/linux drm-qemu-next
head: c84adb304c100cb9555f64f49c1d84a01fac3616
commit: a0308938ec81cd0dca9d75833ec0dd1b8708917e [6/8] virtio: add dma-buf support for exported objects
config: microblaze-randconfig-r021-20200818 (attached as .config)
compiler: microblaze-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 a0308938ec81cd0dca9d75833ec0dd1b8708917e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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 <<):
WARNING: modpost: missing MODULE_LICENSE() in drivers/virtio/virtio_dma_buf.o
ERROR: modpost: "min_low_pfn" [net/9p/9pnet_virtio.ko] undefined!
ERROR: modpost: "min_low_pfn" [net/sunrpc/xprtrdma/rpcrdma.ko] undefined!
ERROR: modpost: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined!
>> ERROR: modpost: "dma_buf_export" [drivers/virtio/virtio_dma_buf.ko] undefined!
ERROR: modpost: "min_low_pfn" [drivers/tty/serial/fsl_lpuart.ko] undefined!
ERROR: modpost: "min_low_pfn" [crypto/ccm.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [RFC PATCH v2 2/3] mikroBUS driver for add-on boards on mikrobus ports
by kernel test robot
Hi Vaishnav,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linux/master robh/for-next soc/for-next linus/master v5.9-rc1 next-20200818]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Vaishnav-M-A/mikroBUS-driver-for...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
config: alpha-allyesconfig (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
# 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 >>):
drivers/misc/mikrobus/mikrobus_manifest.c: In function 'mikrobus_manifest_parse_devices':
drivers/misc/mikrobus/mikrobus_manifest.c:363:6: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
363 | int retval;
| ^~~~~~
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from drivers/misc/mikrobus/mikrobus_core.h:12,
from drivers/misc/mikrobus/mikrobus_manifest.h:15,
from drivers/misc/mikrobus/mikrobus_manifest.c:18:
drivers/misc/mikrobus/mikrobus_manifest.c: In function 'mikrobus_manifest_parse':
>> include/linux/kern_levels.h:5:18: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:339:9: note: in expansion of macro 'KERN_ERR'
339 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/misc/mikrobus/mikrobus_manifest.c:396:3: note: in expansion of macro 'pr_err'
396 | pr_err("invalid manifest size(%zu < %zu)", size, manifest_size);
| ^~~~~~
drivers/misc/mikrobus/mikrobus_manifest.c:396:41: note: format string is defined here
396 | pr_err("invalid manifest size(%zu < %zu)", size, manifest_size);
| ~~^
| |
| long unsigned int
| %u
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from drivers/misc/mikrobus/mikrobus_core.h:12,
from drivers/misc/mikrobus/mikrobus_manifest.h:15,
from drivers/misc/mikrobus/mikrobus_manifest.c:18:
include/linux/kern_levels.h:5:18: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:339:9: note: in expansion of macro 'KERN_ERR'
339 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/misc/mikrobus/mikrobus_manifest.c:412:4: note: in expansion of macro 'pr_err'
412 | pr_err("invalid manifest descriptor, size: %zu", desc_size);
| ^~~~~~
drivers/misc/mikrobus/mikrobus_manifest.c:412:49: note: format string is defined here
412 | pr_err("invalid manifest descriptor, size: %zu", desc_size);
| ~~^
| |
| long unsigned int
| %u
# https://github.com/0day-ci/linux/commit/c988bea7af28a40a4c0a835b6765a2c4f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vaishnav-M-A/mikroBUS-driver-for-add-on-boards/20200818-205058
git checkout c988bea7af28a40a4c0a835b6765a2c4fe154c04
vim +5 include/linux/kern_levels.h
314ba3520e513a7 Joe Perches 2012-07-30 4
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3ac Joe Perches 2012-07-30 7
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH] scsi: libfc: Fix passing zero to 'PTR_ERR' warning
by kernel test robot
Hi YueHaibing,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on scsi/for-next v5.9-rc1 next-20200818]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/YueHaibing/scsi-libfc-Fix-passin...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: x86_64-randconfig-a002-20200818 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 790878f291fa5dc58a1c560cb6cc76fd1bfd1c5a)
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 >>):
>> drivers/scsi/libfc/fc_disc.c:365:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (lport->tt.elsct_send(lport, 0, fp,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_disc.c:371:30: note: uninitialized use occurs here
fc_disc_error(disc, ERR_PTR(err));
^~~
drivers/scsi/libfc/fc_disc.c:365:2: note: remove the 'if' if its condition is always true
if (lport->tt.elsct_send(lport, 0, fp,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/libfc/fc_disc.c:346:9: note: initialize the variable 'err' to silence this warning
int err;
^
= 0
1 warning generated.
# https://github.com/0day-ci/linux/commit/c22a185df6f9701ac244e7f2ec1ba38e2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review YueHaibing/scsi-libfc-Fix-passing-zero-to-PTR_ERR-warning/20200818-194521
git checkout c22a185df6f9701ac244e7f2ec1ba38e27177aec
vim +365 drivers/scsi/libfc/fc_disc.c
42e9a92fe6a909 Robert Love 2008-12-09 337
42e9a92fe6a909 Robert Love 2008-12-09 338 /**
34f42a070fc98f Robert Love 2009-02-27 339 * fc_disc_gpn_ft_req() - Send Get Port Names by FC-4 type (GPN_FT) request
b1987c884585a6 Lee Jones 2020-07-07 340 * @disc: The discovery context
42e9a92fe6a909 Robert Love 2008-12-09 341 */
42e9a92fe6a909 Robert Love 2008-12-09 342 static void fc_disc_gpn_ft_req(struct fc_disc *disc)
42e9a92fe6a909 Robert Love 2008-12-09 343 {
42e9a92fe6a909 Robert Love 2008-12-09 344 struct fc_frame *fp;
0685230c59b548 Joe Eykholt 2010-07-20 345 struct fc_lport *lport = fc_disc_lport(disc);
c22a185df6f970 YueHaibing 2020-08-18 346 int err;
42e9a92fe6a909 Robert Love 2008-12-09 347
ee35624e1e4e4e Hannes Reinecke 2018-07-04 348 lockdep_assert_held(&disc->disc_mutex);
ee35624e1e4e4e Hannes Reinecke 2018-07-04 349
42e9a92fe6a909 Robert Love 2008-12-09 350 WARN_ON(!fc_lport_test_ready(lport));
42e9a92fe6a909 Robert Love 2008-12-09 351
42e9a92fe6a909 Robert Love 2008-12-09 352 disc->pending = 1;
42e9a92fe6a909 Robert Love 2008-12-09 353 disc->requested = 0;
42e9a92fe6a909 Robert Love 2008-12-09 354
42e9a92fe6a909 Robert Love 2008-12-09 355 disc->buf_len = 0;
42e9a92fe6a909 Robert Love 2008-12-09 356 disc->seq_count = 0;
42e9a92fe6a909 Robert Love 2008-12-09 357 fp = fc_frame_alloc(lport,
42e9a92fe6a909 Robert Love 2008-12-09 358 sizeof(struct fc_ct_hdr) +
42e9a92fe6a909 Robert Love 2008-12-09 359 sizeof(struct fc_ns_gid_ft));
c22a185df6f970 YueHaibing 2020-08-18 360 if (!fp) {
c22a185df6f970 YueHaibing 2020-08-18 361 err = -ENOMEM;
42e9a92fe6a909 Robert Love 2008-12-09 362 goto err;
c22a185df6f970 YueHaibing 2020-08-18 363 }
42e9a92fe6a909 Robert Love 2008-12-09 364
a46f327aa5caf2 Joe Eykholt 2009-08-25 @365 if (lport->tt.elsct_send(lport, 0, fp,
42e9a92fe6a909 Robert Love 2008-12-09 366 FC_NS_GPN_FT,
42e9a92fe6a909 Robert Love 2008-12-09 367 fc_disc_gpn_ft_resp,
b94f8951bf2566 Joe Eykholt 2009-11-03 368 disc, 3 * lport->r_a_tov))
42e9a92fe6a909 Robert Love 2008-12-09 369 return;
42e9a92fe6a909 Robert Love 2008-12-09 370 err:
c22a185df6f970 YueHaibing 2020-08-18 371 fc_disc_error(disc, ERR_PTR(err));
42e9a92fe6a909 Robert Love 2008-12-09 372 }
42e9a92fe6a909 Robert Love 2008-12-09 373
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
arch/mips/include/asm/mach-loongson64/topology.h:7:27: error: implicit declaration of function 'cpu_logical_map'
by kernel test robot
Hi Paul,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 02fce139fd14d3b0126f0a72e8c0a83b5b01f9f5 Merge tag 'mips_fixes_5.4_3' into mips-next
date: 10 months ago
config: mips-randconfig-r033-20200818 (attached as .config)
compiler: mips64el-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 02fce139fd14d3b0126f0a72e8c0a83b5b01f9f5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/mips/include/asm/topology.h:11,
from include/linux/topology.h:36,
from include/linux/gfp.h:9,
from include/linux/slab.h:15,
from include/linux/crypto.h:19,
from include/crypto/hash.h:11,
from include/linux/uio.h:10,
from include/linux/socket.h:8,
from include/linux/compat.h:15,
from arch/mips/kernel/asm-offsets.c:12:
include/linux/topology.h: In function 'numa_node_id':
>> arch/mips/include/asm/mach-loongson64/topology.h:7:27: error: implicit declaration of function 'cpu_logical_map' [-Werror=implicit-function-declaration]
7 | #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
| ^~~~~~~~~~~~~~~
include/linux/topology.h:119:9: note: in expansion of macro 'cpu_to_node'
119 | return cpu_to_node(raw_smp_processor_id());
| ^~~~~~~~~~~
arch/mips/kernel/asm-offsets.c: At top level:
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
26 | void output_ptreg_defines(void)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
78 | void output_task_defines(void)
| ^~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
93 | void output_thread_info_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
110 | void output_thread_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes]
138 | void output_thread_fpu_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes]
181 | void output_mm_defines(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:242:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes]
242 | void output_sc_defines(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes]
255 | void output_signal_defined(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:322:6: warning: no previous prototype for 'output_pbe_defines' [-Wmissing-prototypes]
322 | void output_pbe_defines(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:348:6: warning: no previous prototype for 'output_kvm_defines' [-Wmissing-prototypes]
348 | void output_kvm_defines(void)
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:99: arch/mips/kernel/asm-offsets.s] Error 1
make[2]: Target 'missing-syscalls' not remade because of errors.
make[1]: *** [arch/mips/Makefile:418: archprepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
# 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 02fce139fd14d3b0126f0a72e8c0a83b5b01f9f5
vim +/cpu_logical_map +7 arch/mips/include/asm/mach-loongson64/topology.h
c46173183657bb arch/mips/include/asm/mach-loongson/topology.h Huacai Chen 2014-06-26 6
ec0f8d3fbb7ea1 arch/mips/include/asm/mach-loongson/topology.h Huacai Chen 2014-11-04 @7 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
1bdb7b76705a38 arch/mips/include/asm/mach-loongson64/topology.h Jiaxun Yang 2019-10-20 8
:::::: The code at line 7 was first introduced by commit
:::::: ec0f8d3fbb7ea12cfd10083e340381b96e7c34f8 MIPS: Loongson: Allow booting from any core
:::::: TO: Huacai Chen <chenhc(a)lemote.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
2 years, 1 month
Re: [RFC PATCH v2 2/3] mikroBUS driver for add-on boards on mikrobus ports
by kernel test robot
Hi Vaishnav,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linux/master robh/for-next soc/for-next linus/master v5.9-rc1 next-20200818]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Vaishnav-M-A/mikroBUS-driver-for...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
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
# 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 warnings (new ones prefixed by >>):
drivers/misc/mikrobus/mikrobus_manifest.c: In function 'mikrobus_manifest_parse_devices':
>> drivers/misc/mikrobus/mikrobus_manifest.c:363:6: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
363 | int retval;
| ^~~~~~
# https://github.com/0day-ci/linux/commit/c988bea7af28a40a4c0a835b6765a2c4f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vaishnav-M-A/mikroBUS-driver-for-add-on-boards/20200818-205058
git checkout c988bea7af28a40a4c0a835b6765a2c4fe154c04
vim +/retval +363 drivers/misc/mikrobus/mikrobus_manifest.c
358
359 static int mikrobus_manifest_parse_devices(struct addon_board_info *board)
360 {
361 struct greybus_descriptor_device *desc_device;
362 struct manifest_desc *desc, *next;
> 363 int retval;
364 int devcount = 0;
365
366 list_for_each_entry_safe(desc, next, &board->manifest_descs, links) {
367 if (desc->type != GREYBUS_TYPE_DEVICE)
368 continue;
369 desc_device = desc->data;
370 retval = mikrobus_manifest_attach_device(board, desc_device);
371 devcount++;
372 }
373 return devcount;
374 }
375
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: a66cbdd6573db8515735d37793c22605432c346d mt76: mt7615: introduce mt7663s support
date: 4 weeks ago
config: nios2-randconfig-s031-20200818 (attached as .config)
compiler: nios2-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.2-183-gaa6ede3b-dirty
git checkout a66cbdd6573db8515735d37793c22605432c346d
# 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=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:78:62: sparse: sparse: Using plain integer as NULL pointer
drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c:110:62: sparse: sparse: Using plain integer as NULL pointer
--
>> drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c:243:58: sparse: sparse: Using plain integer as NULL pointer
drivers/net/wireless/mediatek/mt76/mt7615/sdio_txrx.c:270:58: sparse: sparse: Using plain integer as NULL pointer
# 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 a66cbdd6573db8515735d37793c22605432c346d
vim +78 drivers/net/wireless/mediatek/mt76/mt7615/sdio_mcu.c
65
66 int mt7663s_driver_own(struct mt7615_dev *dev)
67 {
68 struct sdio_func *func = dev->mt76.sdio.func;
69 struct mt76_phy *mphy = &dev->mt76.phy;
70 u32 status;
71 int ret;
72
73 if (!test_and_clear_bit(MT76_STATE_PM, &mphy->state))
74 goto out;
75
76 sdio_claim_host(func);
77
> 78 sdio_writel(func, WHLPCR_FW_OWN_REQ_CLR, MCR_WHLPCR, 0);
79
80 ret = readx_poll_timeout(mt7663s_read_pcr, dev, status,
81 status & WHLPCR_IS_DRIVER_OWN, 2000, 1000000);
82 if (ret < 0) {
83 dev_err(dev->mt76.dev, "Cannot get ownership from device");
84 set_bit(MT76_STATE_PM, &mphy->state);
85 sdio_release_host(func);
86
87 return ret;
88 }
89
90 sdio_release_host(func);
91
92 out:
93 dev->pm.last_activity = jiffies;
94
95 return 0;
96 }
97
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month