From: kernel test robot <lkp@intel.com>
To: Haren Myneni <haren@linux.ibm.com>, linuxppc-dev@lists.ozlabs.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
maddy@linux.ibm.com, mpe@ellerman.id.au, msuchanek@suse.de,
mahesh@linux.ibm.com, tyreld@linux.ibm.com, hbabu@us.ibm.com,
haren@linux.ibm.com
Subject: Re: [PATCH 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS
Date: Sun, 3 Aug 2025 06:51:00 +0800 [thread overview]
Message-ID: <202508030602.TrsVGpjD-lkp@intel.com> (raw)
In-Reply-To: <20250802024121.955274-9-haren@linux.ibm.com>
Hi Haren,
kernel test robot noticed the following build warnings:
[auto build test WARNING on powerpc/next]
[also build test WARNING on powerpc/fixes v6.16]
[cannot apply to linus/master next-20250801]
[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/Haren-Myneni/powerpc-pseries-Define-papr-hvpipe-ioctl/20250802-104715
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
patch link: https://lore.kernel.org/r/20250802024121.955274-9-haren%40linux.ibm.com
patch subject: [PATCH 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS
config: powerpc64-randconfig-001-20250803 (https://download.01.org/0day-ci/archive/20250803/202508030602.TrsVGpjD-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250803/202508030602.TrsVGpjD-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/202508030602.TrsVGpjD-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/powerpc/platforms/pseries/papr-hvpipe.c:725:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
725 | if (!enable_hvpipe_IRQ() && !set_hvpipe_sys_param(1)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/pseries/papr-hvpipe.c:737:9: note: uninitialized use occurs here
737 | return ret;
| ^~~
arch/powerpc/platforms/pseries/papr-hvpipe.c:725:2: note: remove the 'if' if its condition is always true
725 | if (!enable_hvpipe_IRQ() && !set_hvpipe_sys_param(1)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/platforms/pseries/papr-hvpipe.c:725:6: warning: variable 'ret' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
725 | if (!enable_hvpipe_IRQ() && !set_hvpipe_sys_param(1)) {
| ^~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/pseries/papr-hvpipe.c:737:9: note: uninitialized use occurs here
737 | return ret;
| ^~~
arch/powerpc/platforms/pseries/papr-hvpipe.c:725:6: note: remove the '&&' if its condition is always true
725 | if (!enable_hvpipe_IRQ() && !set_hvpipe_sys_param(1)) {
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/pseries/papr-hvpipe.c:703:9: note: initialize the variable 'ret' to silence this warning
703 | int ret;
| ^
| = 0
2 warnings generated.
vim +725 arch/powerpc/platforms/pseries/papr-hvpipe.c
700
701 static int __init papr_hvpipe_init(void)
702 {
703 int ret;
704
705 if (!of_find_property(rtas.dev, "ibm,hypervisor-pipe-capable",
706 NULL))
707 return -ENODEV;
708
709 if (!rtas_function_implemented(RTAS_FN_IBM_SEND_HVPIPE_MSG) ||
710 !rtas_function_implemented(RTAS_FN_IBM_RECEIVE_HVPIPE_MSG))
711 return -ENODEV;
712
713 papr_hvpipe_work = kzalloc(sizeof(struct work_struct), GFP_ATOMIC);
714 if (!papr_hvpipe_work)
715 return -ENOMEM;
716
717 INIT_WORK(papr_hvpipe_work, papr_hvpipe_work_fn);
718
719 papr_hvpipe_wq = alloc_ordered_workqueue("papr hvpipe workqueue", 0);
720 if (!papr_hvpipe_wq) {
721 ret = -ENOMEM;
722 goto out;
723 }
724
> 725 if (!enable_hvpipe_IRQ() && !set_hvpipe_sys_param(1)) {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-08-02 22:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-02 2:41 [PATCH 0/9] powerpc/pseries: Add hypervisor pipe (HVPIPE) suport Haren Myneni
2025-08-02 2:41 ` [PATCH 1/9] powerpc/pseries: Define papr-hvpipe ioctl Haren Myneni
2025-08-02 2:41 ` [PATCH 2/9] powerpc/pseries: Define HVPIPE specific macros Haren Myneni
2025-08-02 2:41 ` [PATCH 3/9] powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces Haren Myneni
2025-08-02 2:41 ` [PATCH 4/9] powerpc/pseries: Send payload with ibm,send-hvpipe-msg RTAS Haren Myneni
2025-08-02 2:41 ` [PATCH 5/9] powerpc/pseries: Receive payload with ibm,receive-hvpipe-msg RTAS Haren Myneni
2025-08-02 2:41 ` [PATCH 6/9] powerpc/pseries: Wakeup hvpipe FD when the payload is pending Haren Myneni
2025-08-02 2:41 ` [PATCH 7/9] powerpc/pseries: Enable HVPIPE event message interrupt Haren Myneni
2025-08-02 21:03 ` kernel test robot
2025-08-02 2:41 ` [PATCH 8/9] powerpc/pseries: Enable hvpipe with ibm,set-system-parameter RTAS Haren Myneni
2025-08-02 22:51 ` kernel test robot [this message]
2025-08-02 2:41 ` [PATCH 9/9] powerpc/pseries: HVPIPE changes to support migration Haren Myneni
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=202508030602.TrsVGpjD-lkp@intel.com \
--to=lkp@intel.com \
--cc=haren@linux.ibm.com \
--cc=hbabu@us.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=llvm@lists.linux.dev \
--cc=maddy@linux.ibm.com \
--cc=mahesh@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=msuchanek@suse.de \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tyreld@linux.ibm.com \
/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.