All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Oleksii Moisieiev <Oleksii_Moisieiev@epam.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC v2 1/3] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support
Date: Tue, 9 May 2023 11:40:42 +0800	[thread overview]
Message-ID: <202305091153.AnViRlSx-lkp@intel.com> (raw)
In-Reply-To: <b4d60f3408f8fe839933fa3938ecdc9bfceb75d7.1682513390.git.oleksii_moisieiev@epam.com>

Hi Oleksii,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.4-rc1 next-20230508]
[cannot apply to linusw-pinctrl/devel linusw-pinctrl/for-next]
[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/Oleksii-Moisieiev/pinctrl-Implementation-of-the-generic-scmi-pinctrl-driver/20230426-222739
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/b4d60f3408f8fe839933fa3938ecdc9bfceb75d7.1682513390.git.oleksii_moisieiev%40epam.com
patch subject: [RFC v2 1/3] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support
config: hexagon-randconfig-r045-20230508 (https://download.01.org/0day-ci/archive/20230509/202305091153.AnViRlSx-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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-lab-lkp/linux/commit/d75721913de292ab464a1580633f927a5dd86fde
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Oleksii-Moisieiev/pinctrl-Implementation-of-the-generic-scmi-pinctrl-driver/20230426-222739
        git checkout d75721913de292ab464a1580633f927a5dd86fde
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/firmware/arm_scmi/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305091153.AnViRlSx-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/firmware/arm_scmi/pinctrl.c:633:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
           if (!pi->groups[selector].present) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/firmware/arm_scmi/pinctrl.c:643:9: note: uninitialized use occurs here
           return ret;
                  ^~~
   drivers/firmware/arm_scmi/pinctrl.c:633:2: note: remove the 'if' if its condition is always true
           if (!pi->groups[selector].present) {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/firmware/arm_scmi/pinctrl.c:620:9: note: initialize the variable 'ret' to silence this warning
           int ret;
                  ^
                   = 0
   drivers/firmware/arm_scmi/pinctrl.c:734:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
           if (!pi->functions[selector].present) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/firmware/arm_scmi/pinctrl.c:744:9: note: uninitialized use occurs here
           return ret;
                  ^~~
   drivers/firmware/arm_scmi/pinctrl.c:734:2: note: remove the 'if' if its condition is always true
           if (!pi->functions[selector].present) {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/firmware/arm_scmi/pinctrl.c:721:9: note: initialize the variable 'ret' to silence this warning
           int ret;
                  ^
                   = 0
   2 warnings generated.


vim +633 drivers/firmware/arm_scmi/pinctrl.c

   615	
   616	static int scmi_pinctrl_get_group_pins(const struct scmi_protocol_handle *ph,
   617					       u32 selector, const unsigned int **pins,
   618					       unsigned int *nr_pins)
   619	{
   620		int ret;
   621		struct scmi_pinctrl_info *pi;
   622	
   623		if (!ph || !pins || !nr_pins)
   624			return -EINVAL;
   625	
   626		pi = ph->get_priv(ph);
   627		if (!pi)
   628			return -EINVAL;
   629	
   630		if (selector > pi->nr_groups)
   631			return -EINVAL;
   632	
 > 633		if (!pi->groups[selector].present) {
   634			ret = scmi_pinctrl_get_group_info(ph, selector,
   635							  &pi->groups[selector]);
   636			if (ret)
   637				return ret;
   638		}
   639	
   640		*pins = pi->groups[selector].group_pins;
   641		*nr_pins = pi->groups[selector].nr_pins;
   642	
   643		return ret;
   644	}
   645	

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

  parent reply	other threads:[~2023-05-09  3:40 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-26 13:26 [RFC v2 0/2] Introducing generic SCMI pinctrl driver implementation Oleksii Moisieiev
2023-04-26 13:26 ` Oleksii Moisieiev
2023-04-26 13:26 ` [RFC v2 1/3] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Oleksii Moisieiev
2023-04-26 13:26   ` Oleksii Moisieiev
2023-04-26 16:20   ` kernel test robot
2023-05-05 19:52   ` Cristian Marussi
2023-05-05 19:52     ` Cristian Marussi
2023-05-05 20:10     ` [PATCH] [REVIEW][PINCTRL]: Misc Fixes and refactor Cristian Marussi
2023-05-05 20:10       ` Cristian Marussi
2023-05-05 21:20       ` kernel test robot
2023-05-05 21:20         ` kernel test robot
2023-05-09  9:46       ` kernel test robot
2023-05-05 20:14     ` [PATCH] firmware: arm_scmi: Add optional flags to extended names helper Cristian Marussi
2023-05-05 20:14       ` Cristian Marussi
2023-05-07 20:38     ` [RFC v2 1/3] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Cristian Marussi
2023-05-07 20:38       ` Cristian Marussi
2023-05-12  8:38     ` Oleksii Moisieiev
2023-05-12  8:55       ` Cristian Marussi
2023-05-12 12:31         ` Oleksii Moisieiev
2023-05-12 12:32           ` Michal Simek
2023-06-07  6:31             ` Oleksii Moisieiev
2023-06-07  6:31               ` Oleksii Moisieiev
2023-05-09  3:40   ` kernel test robot [this message]
2023-04-26 13:26 ` [RFC v2 2/3] pinctrl: Implementation of the generic scmi-pinctrl driver Oleksii Moisieiev
2023-05-05 12:03   ` Linus Walleij
2023-05-05 12:03     ` Linus Walleij
2023-05-05 20:01   ` Cristian Marussi
2023-05-05 20:01     ` Cristian Marussi
2023-05-11 10:23     ` Oleksii Moisieiev
2023-05-05 20:35   ` andy.shevchenko
2023-05-05 20:35     ` andy.shevchenko
2023-05-11 13:15     ` Oleksii Moisieiev
2023-05-12  9:04       ` Cristian Marussi
2023-05-12 12:18         ` Oleksii Moisieiev
2023-05-12 13:11           ` Cristian Marussi
2023-04-26 13:26 ` [RFC v2 3/3] dt-bindings: firmware: arm,scmi: Add support for pinctrl protocol Oleksii Moisieiev
2023-04-26 13:26   ` Oleksii Moisieiev
2023-04-27  7:07   ` Michal Simek
2023-04-27  7:07     ` Michal Simek
2023-04-27  7:19     ` Oleksii Moisieiev
2023-04-27  7:19       ` Oleksii Moisieiev
2023-04-28 10:06   ` Krzysztof Kozlowski
2023-04-28 10:06     ` Krzysztof Kozlowski

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=202305091153.AnViRlSx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Oleksii_Moisieiev@epam.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@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.