All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH 3/7] compiler.h: Add __if_constexpr(expr, if_const, if_not_const)
Date: Fri, 26 Jul 2024 04:45:19 +0800	[thread overview]
Message-ID: <202407260423.iffnNEQE-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <9751d18defea406fa698630637d8e7db@AcuMS.aculab.com>
References: <9751d18defea406fa698630637d8e7db@AcuMS.aculab.com>
TO: David Laight <David.Laight@ACULAB.COM>
TO: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
TO: "'Linus Torvalds'" <torvalds@linuxfoundation.org>
CC: "'Matthew Wilcox (Oracle)'" <willy@infradead.org>
CC: "'Christoph Hellwig'" <hch@infradead.org>
CC: "'Andrew Morton'" <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
CC: "'Andy Shevchenko'" <andriy.shevchenko@linux.intel.com>
CC: "'Dan Carpenter'" <dan.carpenter@linaro.org>
CC: "'Arnd Bergmann'" <arnd@kernel.org>
CC: "'Jason@zx2c4.com'" <Jason@zx2c4.com>
CC: "'pedro.falcato@gmail.com'" <pedro.falcato@gmail.com>
CC: "'Mateusz Guzik'" <mjguzik@gmail.com>

Hi David,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v6.10 next-20240725]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/David-Laight/minmax-Put-all-the-clamp-definitions-together/20240724-224832
base:   linux/master
patch link:    https://lore.kernel.org/r/9751d18defea406fa698630637d8e7db%40AcuMS.aculab.com
patch subject: [PATCH 3/7] compiler.h: Add __if_constexpr(expr, if_const, if_not_const)
:::::: branch date: 30 hours ago
:::::: commit date: 30 hours ago
config: x86_64-randconfig-161-20240725 (https://download.01.org/0day-ci/archive/20240726/202407260423.iffnNEQE-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202407260423.iffnNEQE-lkp@intel.com/

New smatch warnings:
drivers/platform/x86/thinkpad_acpi.c:11519 set_ibm_param() error: strcpy() 'val' too large for 'ibms_init[i]->param' (1010102 vs 32)
fs/f2fs/super.c:1157 parse_options() error: strcpy() 'name' too large for 'ext[ext_cnt]' (1010102 vs 8)
fs/f2fs/super.c:1186 parse_options() error: strcpy() 'name' too large for 'noext[noext_cnt]' (1010102 vs 8)

Old smatch warnings:
drivers/platform/x86/thinkpad_acpi.c:1205 tpacpi_new_rfkill() warn: 'atp_rfk->rfkill' is an error pointer or valid
drivers/platform/x86/thinkpad_acpi.c:2642 hotkey_inputdev_close() warn: bitwise AND condition is false here
drivers/platform/x86/thinkpad_acpi.c:3642 hotkey_notify_hotkey() warn: bitwise AND condition is false here

vim +11519 drivers/platform/x86/thinkpad_acpi.c

a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11502  
e4dca7b7aa08b22 drivers/platform/x86/thinkpad_acpi.c Kees Cook                   2017-10-17  11503  static int __init set_ibm_param(const char *val, const struct kernel_param *kp)
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11504  {
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11505  	unsigned int i;
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11506  	struct ibm_struct *ibm;
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11507  
59f91ff11e59491 drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-11-18  11508  	if (!kp || !kp->name || !val)
59f91ff11e59491 drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-11-18  11509  		return -EINVAL;
59f91ff11e59491 drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-11-18  11510  
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11511  	for (i = 0; i < ARRAY_SIZE(ibms_init); i++) {
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11512  		ibm = ibms_init[i].data;
59f91ff11e59491 drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-11-18  11513  		if (!ibm || !ibm->name)
59f91ff11e59491 drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-11-18  11514  			continue;
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11515  
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11516  		if (strcmp(ibm->name, kp->name) == 0 && ibm->write) {
be51bd4585728ba drivers/platform/x86/thinkpad_acpi.c Andy Shevchenko             2020-05-11  11517  			if (strlen(val) > sizeof(ibms_init[i].param) - 1)
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11518  				return -ENOSPC;
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21 @11519  			strcpy(ibms_init[i].param, val);
78f81cc4355c31c drivers/acpi/ibm_acpi.c              Borislav Deianov            2005-08-17  11520  			return 0;
78f81cc4355c31c drivers/acpi/ibm_acpi.c              Borislav Deianov            2005-08-17  11521  		}
a5763f2223ce3fd drivers/misc/thinkpad_acpi.c         Henrique de Moraes Holschuh 2007-04-21  11522  	}
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11523  
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11524  	return -EINVAL;
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11525  }
^1da177e4c3f415 drivers/acpi/ibm_acpi.c              Linus Torvalds              2005-04-16  11526  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2024-07-25 20:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 20:45 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-25 14:37 [PATCH 3/7] compiler.h: Add __if_constexpr(expr, if_const, if_not_const) kernel test robot
2024-07-24 14:26 [PATCH 0/7] minmax: reduce compilation time David Laight
2024-07-24 14:29 ` [PATCH 3/7] compiler.h: Add __if_constexpr(expr, if_const, if_not_const) David Laight
2024-07-24 17:32   ` Arnd Bergmann
2024-07-25  9:12     ` David Laight
2024-07-24 19:48   ` Linus Torvalds
2024-07-25  8:45     ` David Laight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202407260423.iffnNEQE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.