From: kernel test robot <lkp@intel.com>
To: Rujra Bhatt <braker.noob.kernel@gmail.com>,
dpenkler@gmail.com, gregkh@linuxfoundation.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
outreachy@lists.linux.dev
Cc: oe-kbuild-all@lists.linux.dev, braker.noob.kernel@gmail.com
Subject: Re: [FIRST-PATCH] staging : gpib : agilent_82350b : agilent_82350b.c : fixes checks on the file
Date: Wed, 7 May 2025 20:19:06 +0800 [thread overview]
Message-ID: <202505071942.wmYV0pa2-lkp@intel.com> (raw)
In-Reply-To: <Z_-nR5Vt2A5kvbro@brak3rDesk>
Hi Rujra,
kernel test robot noticed the following build warnings:
[auto build test WARNING on staging/staging-testing]
[also build test WARNING on staging/staging-next staging/staging-linus linus/master v6.15-rc5 next-20250507]
[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/Rujra-Bhatt/staging-gpib-agilent_82350b-agilent_82350b-c-fixes-checks-on-the-file/20250416-205032
base: staging/staging-testing
patch link: https://lore.kernel.org/r/Z_-nR5Vt2A5kvbro%40brak3rDesk
patch subject: [FIRST-PATCH] staging : gpib : agilent_82350b : agilent_82350b.c : fixes checks on the file
config: x86_64-randconfig-002-20250424 (https://download.01.org/0day-ci/archive/20250507/202505071942.wmYV0pa2-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071942.wmYV0pa2-lkp@intel.com/reproduce)
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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505071942.wmYV0pa2-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/percpu.h:5,
from include/linux/radix-tree.h:16,
from include/linux/idr.h:15,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from drivers/staging/gpib/include/gpib_types.h:18,
from drivers/staging/gpib/include/gpibP.h:12,
from drivers/staging/gpib/agilent_82350b/agilent_82350b.h:7,
from drivers/staging/gpib/agilent_82350b/agilent_82350b.c:11:
drivers/staging/gpib/agilent_82350b/agilent_82350b.c: In function 'agilent_82350b_allocate_private':
drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:53: error: expected '{' before '*' token
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^
include/linux/alloc_tag.h:227:16: note: in definition of macro 'alloc_hooks_tag'
227 | typeof(_do_alloc) _res; \
| ^~~~~~~~~
include/linux/slab.h:1041:49: note: in expansion of macro 'alloc_hooks'
1041 | #define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:31: note: in expansion of macro 'kzalloc'
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^~~~~~~
drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:53: error: expected '{' before '*' token
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^
include/linux/alloc_tag.h:231:24: note: in definition of macro 'alloc_hooks_tag'
231 | _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:1041:49: note: in expansion of macro 'alloc_hooks'
1041 | #define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:31: note: in expansion of macro 'kzalloc'
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^~~~~~~
drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:53: error: expected '{' before '*' token
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^
include/linux/alloc_tag.h:234:24: note: in definition of macro 'alloc_hooks_tag'
234 | _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:1041:49: note: in expansion of macro 'alloc_hooks'
1041 | #define kzalloc(...) alloc_hooks(kzalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:31: note: in expansion of macro 'kzalloc'
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^~~~~~~
>> drivers/staging/gpib/agilent_82350b/agilent_82350b.c:482:29: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
482 | board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
| ^
vim +482 drivers/staging/gpib/agilent_82350b/agilent_82350b.c
479
480 static int agilent_82350b_allocate_private(struct gpib_board *board)
481 {
> 482 board->private_data = kzalloc(sizeof(struct * board->private_data), GFP_KERNEL);
483 if (!board->private_data)
484 return -ENOMEM;
485 return 0;
486 }
487
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-05-07 12:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 12:49 [FIRST-PATCH] staging : gpib : agilent_82350b : agilent_82350b.c : fixes checks on the file Rujra Bhatt
2025-04-16 14:12 ` Dave Penkler
2025-04-17 9:01 ` Greg KH
2025-05-07 7:58 ` kernel test robot
2025-05-07 12:19 ` kernel test robot [this message]
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=202505071942.wmYV0pa2-lkp@intel.com \
--to=lkp@intel.com \
--cc=braker.noob.kernel@gmail.com \
--cc=dpenkler@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=outreachy@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox