[sashal-stable:pending-4.19 1/1] drivers/pinctrl/pinctrl-amd.c:966:2: error: implicit declaration of function 'acpi_register_wakeup_handler'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-4.19
head: a2dce07496954ec6f269d1ca5e1309e09c9283f5
commit: a2dce07496954ec6f269d1ca5e1309e09c9283f5 [1/1] pinctrl: amd: Fix wakeups when IRQ is shared with SCI
config: powerpc-buildonly-randconfig-r006-20211209 (https://download.01.org/0day-ci/archive/20211210/202112100029.YpS9DX4X-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/sashal/linux-stable.git/c...
git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-4.19
git checkout a2dce07496954ec6f269d1ca5e1309e09c9283f5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/pinctrl/
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/pinctrl/pinctrl-amd.c:966:2: error: implicit declaration of function 'acpi_register_wakeup_handler' [-Werror,-Wimplicit-function-declaration]
acpi_register_wakeup_handler(gpio_dev->irq, amd_gpio_check_wake, gpio_dev);
^
drivers/pinctrl/pinctrl-amd.c:966:41: error: no member named 'irq' in 'struct amd_gpio'
acpi_register_wakeup_handler(gpio_dev->irq, amd_gpio_check_wake, gpio_dev);
~~~~~~~~ ^
>> drivers/pinctrl/pinctrl-amd.c:984:2: error: implicit declaration of function 'acpi_unregister_wakeup_handler' [-Werror,-Wimplicit-function-declaration]
acpi_unregister_wakeup_handler(amd_gpio_check_wake, gpio_dev);
^
3 errors generated.
vim +/acpi_register_wakeup_handler +966 drivers/pinctrl/pinctrl-amd.c
925
926 gpio_dev->hwbank_num = gpio_dev->gc.ngpio / 64;
927 gpio_dev->groups = kerncz_groups;
928 gpio_dev->ngroups = ARRAY_SIZE(kerncz_groups);
929
930 amd_pinctrl_desc.name = dev_name(&pdev->dev);
931 gpio_dev->pctrl = devm_pinctrl_register(&pdev->dev, &amd_pinctrl_desc,
932 gpio_dev);
933 if (IS_ERR(gpio_dev->pctrl)) {
934 dev_err(&pdev->dev, "Couldn't register pinctrl driver\n");
935 return PTR_ERR(gpio_dev->pctrl);
936 }
937
938 ret = gpiochip_add_data(&gpio_dev->gc, gpio_dev);
939 if (ret)
940 return ret;
941
942 ret = gpiochip_add_pin_range(&gpio_dev->gc, dev_name(&pdev->dev),
943 0, 0, gpio_dev->gc.ngpio);
944 if (ret) {
945 dev_err(&pdev->dev, "Failed to add pin range\n");
946 goto out2;
947 }
948
949 ret = gpiochip_irqchip_add(&gpio_dev->gc,
950 &amd_gpio_irqchip,
951 0,
952 handle_simple_irq,
953 IRQ_TYPE_NONE);
954 if (ret) {
955 dev_err(&pdev->dev, "could not add irqchip\n");
956 ret = -ENODEV;
957 goto out2;
958 }
959
960 ret = devm_request_irq(&pdev->dev, irq_base, amd_gpio_irq_handler, 0,
961 KBUILD_MODNAME, gpio_dev);
962 if (ret)
963 goto out2;
964
965 platform_set_drvdata(pdev, gpio_dev);
> 966 acpi_register_wakeup_handler(gpio_dev->irq, amd_gpio_check_wake, gpio_dev);
967
968 dev_dbg(&pdev->dev, "amd gpio driver loaded\n");
969 return ret;
970
971 out2:
972 gpiochip_remove(&gpio_dev->gc);
973
974 return ret;
975 }
976
977 static int amd_gpio_remove(struct platform_device *pdev)
978 {
979 struct amd_gpio *gpio_dev;
980
981 gpio_dev = platform_get_drvdata(pdev);
982
983 gpiochip_remove(&gpio_dev->gc);
> 984 acpi_unregister_wakeup_handler(amd_gpio_check_wake, gpio_dev);
985
986 return 0;
987 }
988
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[asahilinux:asahi 4/56] drivers/net/ethernet/pensando/ionic/ionic_main.c:479:9: warning: 'strncpy' output truncated before terminating nul copying 31 bytes from a string of the same length
by kernel test robot
tree: https://github.com/AsahiLinux/linux asahi
head: 139e005bda0da795d21b4afeae8b184b1792b2c6
commit: ef80b406fd9a4660e91461290596f5c86de9cf15 [4/56] Makefile: Add -asahi EXTRAVERSION
config: alpha-buildonly-randconfig-r003-20211209 (https://download.01.org/0day-ci/archive/20211209/202112092344.BejBo4J7-lk...)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/ef80b406fd9a4660e91461290596f5...
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux asahi
git checkout ef80b406fd9a4660e91461290596f5c86de9cf15
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/net/ethernet/pensando/ionic/
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/pensando/ionic/ionic_main.c: In function 'ionic_identify':
>> drivers/net/ethernet/pensando/ionic/ionic_main.c:479:9: warning: 'strncpy' output truncated before terminating nul copying 31 bytes from a string of the same length [-Wstringop-truncation]
479 | strncpy(ident->drv.driver_ver_str, UTS_RELEASE,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
480 | sizeof(ident->drv.driver_ver_str) - 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +479 drivers/net/ethernet/pensando/ionic/ionic_main.c
fbfb8031533c92 Shannon Nelson 2019-09-03 468
fbfb8031533c92 Shannon Nelson 2019-09-03 469 int ionic_identify(struct ionic *ionic)
fbfb8031533c92 Shannon Nelson 2019-09-03 470 {
fbfb8031533c92 Shannon Nelson 2019-09-03 471 struct ionic_identity *ident = &ionic->ident;
fbfb8031533c92 Shannon Nelson 2019-09-03 472 struct ionic_dev *idev = &ionic->idev;
fbfb8031533c92 Shannon Nelson 2019-09-03 473 size_t sz;
fbfb8031533c92 Shannon Nelson 2019-09-03 474 int err;
fbfb8031533c92 Shannon Nelson 2019-09-03 475
fbfb8031533c92 Shannon Nelson 2019-09-03 476 memset(ident, 0, sizeof(*ident));
fbfb8031533c92 Shannon Nelson 2019-09-03 477
fbfb8031533c92 Shannon Nelson 2019-09-03 478 ident->drv.os_type = cpu_to_le32(IONIC_OS_TYPE_LINUX);
1fcbebf115d9ce Shannon Nelson 2020-03-06 @479 strncpy(ident->drv.driver_ver_str, UTS_RELEASE,
fbfb8031533c92 Shannon Nelson 2019-09-03 480 sizeof(ident->drv.driver_ver_str) - 1);
fbfb8031533c92 Shannon Nelson 2019-09-03 481
fbfb8031533c92 Shannon Nelson 2019-09-03 482 mutex_lock(&ionic->dev_cmd_lock);
fbfb8031533c92 Shannon Nelson 2019-09-03 483
fbfb8031533c92 Shannon Nelson 2019-09-03 484 sz = min(sizeof(ident->drv), sizeof(idev->dev_cmd_regs->data));
fbfb8031533c92 Shannon Nelson 2019-09-03 485 memcpy_toio(&idev->dev_cmd_regs->data, &ident->drv, sz);
fbfb8031533c92 Shannon Nelson 2019-09-03 486
fbfb8031533c92 Shannon Nelson 2019-09-03 487 ionic_dev_cmd_identify(idev, IONIC_IDENTITY_VERSION_1);
fbfb8031533c92 Shannon Nelson 2019-09-03 488 err = ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
fbfb8031533c92 Shannon Nelson 2019-09-03 489 if (!err) {
fbfb8031533c92 Shannon Nelson 2019-09-03 490 sz = min(sizeof(ident->dev), sizeof(idev->dev_cmd_regs->data));
fbfb8031533c92 Shannon Nelson 2019-09-03 491 memcpy_fromio(&ident->dev, &idev->dev_cmd_regs->data, sz);
fbfb8031533c92 Shannon Nelson 2019-09-03 492 }
fbfb8031533c92 Shannon Nelson 2019-09-03 493 mutex_unlock(&ionic->dev_cmd_lock);
fbfb8031533c92 Shannon Nelson 2019-09-03 494
a21b5d49e77a2e Shannon Nelson 2020-10-01 495 if (err) {
36b20b7fb1c3cb Shannon Nelson 2021-10-01 496 dev_err(ionic->dev, "Cannot identify ionic: %d\n", err);
a21b5d49e77a2e Shannon Nelson 2020-10-01 497 goto err_out;
a21b5d49e77a2e Shannon Nelson 2020-10-01 498 }
fbfb8031533c92 Shannon Nelson 2019-09-03 499
36b20b7fb1c3cb Shannon Nelson 2021-10-01 500 if (isprint(idev->dev_info.fw_version[0]) &&
36b20b7fb1c3cb Shannon Nelson 2021-10-01 501 isascii(idev->dev_info.fw_version[0]))
36b20b7fb1c3cb Shannon Nelson 2021-10-01 502 dev_info(ionic->dev, "FW: %.*s\n",
36b20b7fb1c3cb Shannon Nelson 2021-10-01 503 (int)(sizeof(idev->dev_info.fw_version) - 1),
36b20b7fb1c3cb Shannon Nelson 2021-10-01 504 idev->dev_info.fw_version);
36b20b7fb1c3cb Shannon Nelson 2021-10-01 505 else
36b20b7fb1c3cb Shannon Nelson 2021-10-01 506 dev_info(ionic->dev, "FW: (invalid string) 0x%02x 0x%02x 0x%02x 0x%02x ...\n",
36b20b7fb1c3cb Shannon Nelson 2021-10-01 507 (u8)idev->dev_info.fw_version[0],
36b20b7fb1c3cb Shannon Nelson 2021-10-01 508 (u8)idev->dev_info.fw_version[1],
36b20b7fb1c3cb Shannon Nelson 2021-10-01 509 (u8)idev->dev_info.fw_version[2],
36b20b7fb1c3cb Shannon Nelson 2021-10-01 510 (u8)idev->dev_info.fw_version[3]);
36b20b7fb1c3cb Shannon Nelson 2021-10-01 511
a21b5d49e77a2e Shannon Nelson 2020-10-01 512 err = ionic_lif_identify(ionic, IONIC_LIF_TYPE_CLASSIC,
a21b5d49e77a2e Shannon Nelson 2020-10-01 513 &ionic->ident.lif);
a21b5d49e77a2e Shannon Nelson 2020-10-01 514 if (err) {
a21b5d49e77a2e Shannon Nelson 2020-10-01 515 dev_err(ionic->dev, "Cannot identify LIFs: %d\n", err);
a21b5d49e77a2e Shannon Nelson 2020-10-01 516 goto err_out;
a21b5d49e77a2e Shannon Nelson 2020-10-01 517 }
fbfb8031533c92 Shannon Nelson 2019-09-03 518
fbfb8031533c92 Shannon Nelson 2019-09-03 519 return 0;
fbfb8031533c92 Shannon Nelson 2019-09-03 520
a21b5d49e77a2e Shannon Nelson 2020-10-01 521 err_out:
fbfb8031533c92 Shannon Nelson 2019-09-03 522 return err;
fbfb8031533c92 Shannon Nelson 2019-09-03 523 }
fbfb8031533c92 Shannon Nelson 2019-09-03 524
:::::: The code at line 479 was first introduced by commit
:::::: 1fcbebf115d9ce077c2ba5ecfb521cc1eedcb467 ionic: drop ethtool driver version
:::::: TO: Shannon Nelson <snelson(a)pensando.io>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[intel-lts:5.10/preempt-rt 13577/19290] riscv64-linux-ld: drm_fb_helper.c:undefined reference to `framebuffer_release'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/preempt-rt
head: e26ab22c63212fce82e8cfaa481936c1afdb0f31
commit: 12182849145da0f4aae71431f33acb9e2008625e [13577/19290] drm: Avoid circular dependencies for CONFIG_FB
config: riscv-randconfig-r024-20211208 (https://download.01.org/0day-ci/archive/20211209/202112092307.zfm0XU5p-lk...)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/linux-intel-lts/commit/12182849145da0f4aae71431f...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/preempt-rt
git checkout 12182849145da0f4aae71431f33acb9e2008625e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend':
drm_fb_helper.c:(.text+0x534): undefined reference to `fb_set_suspend'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_resume_worker':
drm_fb_helper.c:(.text+0x594): undefined reference to `fb_set_suspend'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_unregister_fbi':
drm_fb_helper.c:(.text+0x884): undefined reference to `unregister_framebuffer'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L92':
drm_fb_helper.c:(.text+0x95c): undefined reference to `framebuffer_release'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L89':
drm_fb_helper.c:(.text+0xad8): undefined reference to `fb_dealloc_cmap'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_read':
drm_fb_helper.c:(.text+0xb5c): undefined reference to `fb_sys_read'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `__drm_fb_helper_initial_config_and_unlock':
drm_fb_helper.c:(.text+0x22e0): undefined reference to `register_framebuffer'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L478':
drm_fb_helper.c:(.text+0x2f20): undefined reference to `framebuffer_alloc'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L481':
drm_fb_helper.c:(.text+0x2f54): undefined reference to `fb_alloc_cmap'
>> riscv64-linux-ld: drm_fb_helper.c:(.text+0x2f74): undefined reference to `framebuffer_release'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L487':
drm_fb_helper.c:(.text+0x3080): undefined reference to `fb_dealloc_cmap'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_set_suspend_unlocked':
drm_fb_helper.c:(.text+0x31ac): undefined reference to `fb_set_suspend'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L616':
drm_fb_helper.c:(.text+0x3e50): undefined reference to `fb_deferred_io_init'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_deferred_io':
drm_fb_helper.c:(.text+0x4524): undefined reference to `fb_sys_write'
>> riscv64-linux-ld: drm_fb_helper.c:(.text+0x45c8): undefined reference to `sys_fillrect'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_write':
drm_fb_helper.c:(.text+0x4630): undefined reference to `sys_copyarea'
>> riscv64-linux-ld: drm_fb_helper.c:(.text+0x4698): undefined reference to `sys_imageblit'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_fillrect':
drm_fb_helper.c:(.text+0x4700): undefined reference to `cfb_fillrect'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_copyarea':
drm_fb_helper.c:(.text+0x4768): undefined reference to `cfb_copyarea'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_sys_imageblit':
drm_fb_helper.c:(.text+0x47d0): undefined reference to `cfb_imageblit'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_fillrect':
drm_fb_helper.c:(.text+0x4858): undefined reference to `cfb_fillrect'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_copyarea':
drm_fb_helper.c:(.text+0x48a0): undefined reference to `sys_fillrect'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fb_helper_cfb_imageblit':
drm_fb_helper.c:(.text+0x4900): undefined reference to `cfb_copyarea'
>> riscv64-linux-ld: drm_fb_helper.c:(.text+0x4948): undefined reference to `sys_copyarea'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `drm_fbdev_fb_fillrect':
drm_fb_helper.c:(.text+0x49a8): undefined reference to `cfb_imageblit'
riscv64-linux-ld: drm_fb_helper.c:(.text+0x49f0): undefined reference to `sys_imageblit'
riscv64-linux-ld: drivers/gpu/drm/drm_fb_helper.o: in function `.L709':
drm_fb_helper.c:(.text+0x4c34): undefined reference to `fb_deferred_io_cleanup'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
arch/arm/kernel/traps.c:775:6: warning: no previous prototype for function 'abort'
by kernel test robot
Hi Ard,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2a987e65025e2b79c6d453b78cb5985ac6e5eb26
commit: 4d576cab16f57e1f87978f6997a725179398341e ARM: 9028/1: disable KASAN in call stack capturing routines
date: 1 year ago
config: arm-randconfig-c002-20211209 (https://download.01.org/0day-ci/archive/20211209/202112092330.MRS9Xygy-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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 4d576cab16f57e1f87978f6997a725179398341e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/kernel/ drivers/media/platform/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/kernel/traps.c:82:6: warning: no previous prototype for function 'dump_backtrace_stm' [-Wmissing-prototypes]
void dump_backtrace_stm(u32 *stack, u32 instruction, const char *loglvl)
^
arch/arm/kernel/traps.c:82:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dump_backtrace_stm(u32 *stack, u32 instruction, const char *loglvl)
^
static
arch/arm/kernel/traps.c:445:17: warning: no previous prototype for function 'do_undefinstr' [-Wmissing-prototypes]
asmlinkage void do_undefinstr(struct pt_regs *regs)
^
arch/arm/kernel/traps.c:445:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void do_undefinstr(struct pt_regs *regs)
^
static
arch/arm/kernel/traps.c:510:39: warning: no previous prototype for function 'handle_fiq_as_nmi' [-Wmissing-prototypes]
asmlinkage void __exception_irq_entry handle_fiq_as_nmi(struct pt_regs *regs)
^
arch/arm/kernel/traps.c:510:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void __exception_irq_entry handle_fiq_as_nmi(struct pt_regs *regs)
^
static
arch/arm/kernel/traps.c:529:17: warning: no previous prototype for function 'bad_mode' [-Wmissing-prototypes]
asmlinkage void bad_mode(struct pt_regs *regs, int reason)
^
arch/arm/kernel/traps.c:529:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void bad_mode(struct pt_regs *regs, int reason)
^
static
arch/arm/kernel/traps.c:602:16: warning: no previous prototype for function 'arm_syscall' [-Wmissing-prototypes]
asmlinkage int arm_syscall(int no, struct pt_regs *regs)
^
arch/arm/kernel/traps.c:602:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage int arm_syscall(int no, struct pt_regs *regs)
^
static
arch/arm/kernel/traps.c:728:1: warning: no previous prototype for function 'baddataabort' [-Wmissing-prototypes]
baddataabort(int code, unsigned long instr, struct pt_regs *regs)
^
arch/arm/kernel/traps.c:727:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void
^
static
arch/arm/kernel/traps.c:768:17: warning: no previous prototype for function '__div0' [-Wmissing-prototypes]
asmlinkage void __div0(void)
^
arch/arm/kernel/traps.c:768:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void __div0(void)
^
static
>> arch/arm/kernel/traps.c:775:6: warning: no previous prototype for function 'abort' [-Wmissing-prototypes]
void abort(void)
^
arch/arm/kernel/traps.c:775:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void abort(void)
^
static
arch/arm/kernel/traps.c:783:13: warning: no previous prototype for function 'trap_init' [-Wmissing-prototypes]
void __init trap_init(void)
^
arch/arm/kernel/traps.c:783:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init trap_init(void)
^
static
9 warnings generated.
vim +/abort +775 arch/arm/kernel/traps.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 767
^1da177e4c3f41 Linus Torvalds 2005-04-16 @768 asmlinkage void __div0(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 769 {
4ed89f22280614 Russell King 2014-10-28 770 pr_err("Division by zero in kernel.\n");
^1da177e4c3f41 Linus Torvalds 2005-04-16 771 dump_stack();
^1da177e4c3f41 Linus Torvalds 2005-04-16 772 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 773 EXPORT_SYMBOL(__div0);
^1da177e4c3f41 Linus Torvalds 2005-04-16 774
^1da177e4c3f41 Linus Torvalds 2005-04-16 @775 void abort(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 776 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 777 BUG();
^1da177e4c3f41 Linus Torvalds 2005-04-16 778
^1da177e4c3f41 Linus Torvalds 2005-04-16 779 /* if that doesn't kill us, halt */
^1da177e4c3f41 Linus Torvalds 2005-04-16 780 panic("Oops failed to kill thread");
^1da177e4c3f41 Linus Torvalds 2005-04-16 781 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 782
:::::: The code at line 775 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
Re: [PATCH v3 11/18] tcp: ipv4: Add AO signing for skb-less replies
by kernel test robot
Hi Leonard,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 1fe5b01262844be03de98afdd56d1d393df04d7e]
url: https://github.com/0day-ci/linux/commits/Leonard-Crestez/tcp-Initial-supp...
base: 1fe5b01262844be03de98afdd56d1d393df04d7e
config: m68k-randconfig-s031-20211209 (https://download.01.org/0day-ci/archive/20211209/202112092244.UyUWpjLG-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/8d4bf3a9b770cb44bf4e37e794e63f7db...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Leonard-Crestez/tcp-Initial-support-for-RFC5925-auth-option/20211208-194125
git checkout 8d4bf3a9b770cb44bf4e37e794e63f7db7a08cb6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash net/ipv4/
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 >>)
>> net/ipv4/tcp_ipv4.c:666:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_authopt_info *[assigned] info @@ got struct tcp_authopt_info [noderef] __rcu *authopt_info @@
net/ipv4/tcp_ipv4.c:666:22: sparse: expected struct tcp_authopt_info *[assigned] info
net/ipv4/tcp_ipv4.c:666:22: sparse: got struct tcp_authopt_info [noderef] __rcu *authopt_info
net/ipv4/tcp_ipv4.c:3219:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *data @@ got struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control @@
net/ipv4/tcp_ipv4.c:3219:41: sparse: expected void const *data
net/ipv4/tcp_ipv4.c:3219:41: sparse: got struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control
net/ipv4/tcp_ipv4.c:3327:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *data @@ got struct tcp_congestion_ops const [noderef] __rcu *extern [addressable] [toplevel] tcp_congestion_control @@
net/ipv4/tcp_ipv4.c:3327:45: sparse: expected void const *data
net/ipv4/tcp_ipv4.c:3327:45: sparse: got struct tcp_congestion_ops const [noderef] __rcu *extern [addressable] [toplevel] tcp_congestion_control
net/ipv4/tcp_ipv4.c:3331:50: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control @@ got struct tcp_congestion_ops * @@
net/ipv4/tcp_ipv4.c:3331:50: sparse: expected struct tcp_congestion_ops const [noderef] __rcu *tcp_congestion_control
net/ipv4/tcp_ipv4.c:3331:50: sparse: got struct tcp_congestion_ops *
net/ipv4/tcp_ipv4.c:1715:25: sparse: sparse: context imbalance in 'tcp_v4_syn_recv_sock' - unexpected unlock
net/ipv4/tcp_ipv4.c:1988:17: sparse: sparse: context imbalance in 'tcp_add_backlog' - unexpected unlock
net/ipv4/tcp_ipv4.c:2258:21: sparse: sparse: context imbalance in 'tcp_v4_rcv' - different lock contexts for basic block
net/ipv4/tcp_ipv4.c:3220:41: sparse: sparse: dereference of noderef expression
net/ipv4/tcp_ipv4.c:3220:41: sparse: sparse: dereference of noderef expression
net/ipv4/tcp_ipv4.c:3328:45: sparse: sparse: dereference of noderef expression
net/ipv4/tcp_ipv4.c:3328:45: sparse: sparse: dereference of noderef expression
vim +666 net/ipv4/tcp_ipv4.c
648
649 #ifdef CONFIG_TCP_AUTHOPT
650 /** tcp_v4_authopt_handle_reply - Insert TCPOPT_AUTHOPT if required
651 *
652 * returns number of bytes (always aligned to 4) or zero
653 */
654 static int tcp_v4_authopt_handle_reply(const struct sock *sk,
655 struct sk_buff *skb,
656 __be32 *optptr,
657 struct tcphdr *th)
658 {
659 struct tcp_authopt_info *info;
660 struct tcp_authopt_key_info *key_info;
661 u8 rnextkeyid;
662
663 if (sk->sk_state == TCP_TIME_WAIT)
664 info = tcp_twsk(sk)->tw_authopt_info;
665 else
> 666 info = tcp_sk(sk)->authopt_info;
667 if (!info)
668 return 0;
669 key_info = __tcp_authopt_select_key(sk, info, sk, &rnextkeyid);
670 if (!key_info)
671 return 0;
672 *optptr = htonl((TCPOPT_AUTHOPT << 24) |
673 (TCPOLEN_AUTHOPT_OUTPUT << 16) |
674 (key_info->send_id << 8) |
675 (rnextkeyid));
676 /* must update doff before signature computation */
677 th->doff += TCPOLEN_AUTHOPT_OUTPUT / 4;
678 tcp_v4_authopt_hash_reply((char *)(optptr + 1),
679 info,
680 key_info,
681 ip_hdr(skb)->daddr,
682 ip_hdr(skb)->saddr,
683 th);
684
685 return TCPOLEN_AUTHOPT_OUTPUT;
686 }
687 #endif
688
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[norov:bm-new 13/15] drivers/leds/trigger/ledtrig-cpu.c:42:17: error: redefinition of 'num_active_cpus' as different kind of symbol
by kernel test robot
tree: https://github.com/norov/linux bm-new
head: b529d6ec834c582d88d8f1286490bb69ee4bedb2
commit: d9365a115ddda67b4bbe080adf3919f32b9a36c4 [13/15] kernel/cpu: add num_active_cpu counter
config: arm64-randconfig-r005-20211208 (https://download.01.org/0day-ci/archive/20211209/202112092257.dQgv78Nx-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# https://github.com/norov/linux/commit/d9365a115ddda67b4bbe080adf3919f32b9...
git remote add norov https://github.com/norov/linux
git fetch --no-tags norov bm-new
git checkout d9365a115ddda67b4bbe080adf3919f32b9a36c4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the norov/bm-new HEAD b529d6ec834c582d88d8f1286490bb69ee4bedb2 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> drivers/leds/trigger/ledtrig-cpu.c:42:17: error: redefinition of 'num_active_cpus' as different kind of symbol
static atomic_t num_active_cpus = ATOMIC_INIT(0);
^
include/linux/cpumask.h:979:28: note: previous definition is here
static inline unsigned int num_active_cpus(void)
^
>> drivers/leds/trigger/ledtrig-cpu.c:82:34: error: incompatible pointer types passing 'unsigned int (*)(void)' to parameter of type 'atomic_t *' [-Werror,-Wincompatible-pointer-types]
atomic_add(is_active ? 1 : -1, &num_active_cpus);
^~~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:54:29: note: passing argument to parameter 'v' here
atomic_add(int i, atomic_t *v)
^
>> drivers/leds/trigger/ledtrig-cpu.c:83:29: error: incompatible pointer types passing 'unsigned int (*)(void)' to parameter of type 'const atomic_t *' [-Werror,-Wincompatible-pointer-types]
active_cpus = atomic_read(&num_active_cpus);
^~~~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:25:29: note: passing argument to parameter 'v' here
atomic_read(const atomic_t *v)
^
3 errors generated.
vim +/num_active_cpus +42 drivers/leds/trigger/ledtrig-cpu.c
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 40
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 41 static struct led_trigger *trig_cpu_all;
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 @42 static atomic_t num_active_cpus = ATOMIC_INIT(0);
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 43
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 44 /**
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 45 * ledtrig_cpu - emit a CPU event as a trigger
c10074a1e5809e drivers/leds/trigger/ledtrig-cpu.c Lee Jones 2021-05-28 46 * @ledevt: CPU event to be emitted
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 47 *
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 48 * Emit a CPU event on a CPU core, which will trigger a
e602fda1a358a0 drivers/leds/trigger/ledtrig-cpu.c Pavel Machek 2016-10-03 49 * bound LED to turn on or turn off.
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 50 */
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 51 void ledtrig_cpu(enum cpu_led_event ledevt)
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 52 {
24c9301ffd2135 drivers/leds/trigger/ledtrig-cpu.c Christoph Lameter 2014-05-05 53 struct led_trigger_cpu *trig = this_cpu_ptr(&cpu_trig);
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 54 bool is_active = trig->is_active;
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 55
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 56 /* Locate the correct CPU LED */
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 57 switch (ledevt) {
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 58 case CPU_LED_IDLE_END:
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 59 case CPU_LED_START:
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 60 /* Will turn the LED on, max brightness */
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 61 is_active = true;
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 62 break;
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 63
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 64 case CPU_LED_IDLE_START:
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 65 case CPU_LED_STOP:
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 66 case CPU_LED_HALTED:
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 67 /* Will turn the LED off */
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 68 is_active = false;
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 69 break;
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 70
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 71 default:
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 72 /* Will leave the LED as it is */
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 73 break;
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 74 }
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 75
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 76 if (is_active != trig->is_active) {
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 77 unsigned int active_cpus;
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 78 unsigned int total_cpus;
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 79
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 80 /* Update trigger state */
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 81 trig->is_active = is_active;
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 @82 atomic_add(is_active ? 1 : -1, &num_active_cpus);
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 @83 active_cpus = atomic_read(&num_active_cpus);
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 84 total_cpus = num_present_cpus();
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 85
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 86 led_trigger_event(trig->_trig,
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 87 is_active ? LED_FULL : LED_OFF);
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 88
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 89
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 90 led_trigger_event(trig_cpu_all,
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 91 DIV_ROUND_UP(LED_FULL * active_cpus, total_cpus));
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 92
0b88b71c7762a4 drivers/leds/trigger/ledtrig-cpu.c Paulo Costa 2017-02-09 93 }
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 94 }
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 95 EXPORT_SYMBOL(ledtrig_cpu);
8f88731d052d2b drivers/leds/ledtrig-cpu.c Bryan Wu 2011-06-25 96
:::::: The code at line 42 was first introduced by commit
:::::: 0b88b71c7762a406ff99c625935474dc42a25003 leds/trigger/cpu: Add LED trigger for all CPUs aggregated
:::::: TO: Paulo Costa <me(a)paulo.costa.nom.br>
:::::: CC: Jacek Anaszewski <jacek.anaszewski(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks
[kbuild] Re: [PATCH] Bluetooth: btqca: sequential validation
by Dan Carpenter
Hi Sai,
url: https://github.com/0day-ci/linux/commits/Sai-Teja-Aluvala/Bluetooth-btqca...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: arc-randconfig-m031-20211207 (https://download.01.org/0day-ci/archive/20211209/202112090340.ohuHwTLx-lk... )
compiler: arceb-elf-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/bluetooth/btqca.c:180 qca_send_patch_config_cmd() error: use kfree_skb() here instead of kfree(skb)
vim +180 drivers/bluetooth/btqca.c
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 144 int qca_send_patch_config_cmd(struct hci_dev *hdev, enum qca_btsoc_type soc_type)
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 145 {
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 146 struct sk_buff *skb;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 147 int err = 0;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 148 u8 cmd[5] = {EDL_PATCH_CONFIG_CMD, 0x01, 0, 0, 0};
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 149 u8 rlen = 0x02;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 150 struct edl_event_hdr *edl;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 151 u8 rtype = EDL_PATCH_CONFIG_CMD;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 152
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 153 bt_dev_dbg(hdev, "QCA Patch config");
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 154
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 155 skb = __hci_cmd_sync_ev(hdev, EDL_PATCH_CMD_OPCODE, EDL_PATCH_CONFIG_CMD_LEN,
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 156 cmd, HCI_EV_VENDOR, HCI_INIT_TIMEOUT);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 157 if (IS_ERR(skb)) {
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 158 err = PTR_ERR(skb);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 159 bt_dev_err(hdev, "Sending QCA Patch config failed (%d)", err);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 160 return err;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 161 }
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 162 if (skb->len != rlen) {
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 163 bt_dev_err(hdev, "QCA Patch config cmd size mismatch len %d", skb->len);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 164 err = -EILSEQ;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 165 goto out;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 166 }
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 167 edl = (struct edl_event_hdr *)(skb->data);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 168 if (!edl) {
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 169 bt_dev_err(hdev, "QCA Patch config with no header");
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 170 err = -EILSEQ;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 171 goto out;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 172 }
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 173 if (edl->cresp != EDL_PATCH_CONFIG_RES_EVT || edl->rtype != rtype) {
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 174 bt_dev_err(hdev, "QCA Wrong packet received %d %d", edl->cresp,
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 175 edl->rtype);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 176 err = -EIO;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 177 goto out;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 178 }
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 179 out:
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 @180 kfree(skb);
^^^^^^^^^^
kfree_skb(skb);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 181 if (err)
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 182 bt_dev_err(hdev, "QCA Patch config cmd failed (%d)", err);
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 183
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 184 return err;
1d58d86c5374c4 Sai Teja Aluvala 2021-12-08 185 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
9 months, 2 weeks
Re: [PATCH v5 01/16] ima: Add IMA namespace support
by kernel test robot
Hi Stefan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on zohar-integrity/next-integrity]
[also build test WARNING on linux/master linus/master v5.16-rc4 next-20211208]
[cannot apply to jmorris-security/next-testing]
[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/Stefan-Berger/ima-Namespace-IMA-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity
config: i386-randconfig-s031-20211207 (https://download.01.org/0day-ci/archive/20211209/202112092123.r0jOHT8e-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/0e5d16c2da02e9c61692836edf0b6f7f2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Stefan-Berger/ima-Namespace-IMA-with-audit-support-in-IMA-ns/20211209-062017
git checkout 0e5d16c2da02e9c61692836edf0b6f7f227e1867
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/md/dm-ioctl.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
--
fs/open.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
fs/open.c:1011:21: sparse: sparse: restricted fmode_t degrades to integer
--
fs/file_table.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
--
fs/namei.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
fs/namei.c:680:17: sparse: sparse: context imbalance in 'terminate_walk' - unexpected unlock
fs/namei.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...):
include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'try_to_unlazy' - unexpected unlock
include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'try_to_unlazy_next' - unexpected unlock
fs/namei.c:2318:19: sparse: sparse: context imbalance in 'path_init' - different lock contexts for basic block
--
fs/attr.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
--
security/security.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
security/security.c:358:25: sparse: sparse: cast removes address space '__rcu' of expression
--
security/keys/key.c: note: in included file:
>> include/linux/ima.h:263:5: sparse: sparse: undefined preprocessor identifier 'CONFIG_IMA'
security/keys/key.c:123:17: sparse: sparse: context imbalance in 'key_user_put' - unexpected unlock
vim +/CONFIG_IMA +263 include/linux/ima.h
260
261 static inline int create_ima_ns(struct user_namespace *user_ns)
262 {
> 263 #if CONFIG_IMA
264 user_ns->ima_ns = get_ima_ns(&init_ima_ns);
265 #endif
266 return 0;
267 }
268
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 2 weeks