devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Adam Ward <Adam.Ward.opensource@diasemi.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>
Cc: kbuild-all@lists.01.org, Liam Girdwood <lgirdwood@gmail.com>,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	Support Opensource <support.opensource@diasemi.com>
Subject: Re: [PATCH V3 3/3] regulator: da9121: Add DA914x support
Date: Sat, 27 Nov 2021 11:03:51 +0800	[thread overview]
Message-ID: <202111271151.bdZw3D77-lkp@intel.com> (raw)
In-Reply-To: <31d387d0a364eef9d5ef72f0adf6d213197a4dfb.1637709844.git.Adam.Ward.opensource@diasemi.com>

Hi Adam,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on broonie-regulator/for-next]
[also build test ERROR on robh/for-next linux/master linus/master v5.16-rc2 next-20211126]
[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/Adam-Ward/regulator-da9121-add-DA914x-support/20211124-072849
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: nds32-randconfig-r003-20211126 (https://download.01.org/0day-ci/archive/20211127/202111271151.bdZw3D77-lkp@intel.com/config)
compiler: nds32le-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/0day-ci/linux/commit/623a92b6a8e3ca66e0792b1cb7dfa5b4bd769b81
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Adam-Ward/regulator-da9121-add-DA914x-support/20211124-072849
        git checkout 623a92b6a8e3ca66e0792b1cb7dfa5b4bd769b81
        # 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=nds32 SHELL=/bin/bash drivers/regulator/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/regulator/da9121-regulator.c:571:15: error: 'DA9141_IDX_BUCK1' undeclared here (not in a function); did you mean 'DA9121_IDX_BUCK1'?
     571 |         .id = DA9141_IDX_BUCK1,
         |               ^~~~~~~~~~~~~~~~
         |               DA9121_IDX_BUCK1
   drivers/regulator/da9121-regulator.c:595:15: error: 'DA914X_IDX_BUCK1' undeclared here (not in a function); did you mean 'DA9121_IDX_BUCK1'?
     595 |         .id = DA914X_IDX_BUCK1,
         |               ^~~~~~~~~~~~~~~~
         |               DA9121_IDX_BUCK1
   drivers/regulator/da9121-regulator.c: In function 'da9121_check_device_type':
>> drivers/regulator/da9121-regulator.c:1210:26: error: unterminated argument list invoking macro "if"
    1210 | MODULE_LICENSE("GPL v2");
         |                          ^
>> drivers/regulator/da9121-regulator.c:1211: error: expected '(' at end of input
   drivers/regulator/da9121-regulator.c:915:9: note: '-Wmisleading-indentation' is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
     915 |         if ((device_id != DA9121_DEVICE_ID) && (device_id != DA914X_DEVICE_ID) {
         |         ^~
   drivers/regulator/da9121-regulator.c:915:9: note: adding '-flarge-source-files' will allow for more column-tracking support, at the expense of compilation time and memory
>> drivers/regulator/da9121-regulator.c:915:9: error: expected declaration or statement at end of input
   drivers/regulator/da9121-regulator.c:912:17: error: label 'error' used but not defined
     912 |                 goto error;
         |                 ^~~~
   drivers/regulator/da9121-regulator.c:900:14: warning: unused variable 'config_match' [-Wunused-variable]
     900 |         bool config_match = false;
         |              ^~~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:899:15: warning: unused variable 'type' [-Wunused-variable]
     899 |         char *type;
         |               ^~~~
   drivers/regulator/da9121-regulator.c:898:25: warning: unused variable 'variant_vrc' [-Wunused-variable]
     898 |         u8 variant_mrc, variant_vrc;
         |                         ^~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:898:12: warning: unused variable 'variant_mrc' [-Wunused-variable]
     898 |         u8 variant_mrc, variant_vrc;
         |            ^~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:915:9: error: no return statement in function returning non-void [-Werror=return-type]
     915 |         if ((device_id != DA9121_DEVICE_ID) && (device_id != DA914X_DEVICE_ID) {
         |         ^~
   At top level:
   drivers/regulator/da9121-regulator.c:894:12: warning: 'da9121_check_device_type' defined but not used [-Wunused-function]
     894 | static int da9121_check_device_type(struct i2c_client *i2c, struct da9121 *chip)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:884:29: warning: 'da9121_2ch_regmap_config' defined but not used [-Wunused-variable]
     884 | static struct regmap_config da9121_2ch_regmap_config = {
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:873:29: warning: 'da9121_1ch_regmap_config' defined but not used [-Wunused-variable]
     873 | static struct regmap_config da9121_1ch_regmap_config = {
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:775:12: warning: 'da9121_set_regulator_config' defined but not used [-Wunused-function]
     775 | static int da9121_set_regulator_config(struct da9121 *chip)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:682:20: warning: 'da9121_irq_handler' defined but not used [-Wunused-function]
     682 | static irqreturn_t da9121_irq_handler(int irq, void *data)
         |                    ^~~~~~~~~~~~~~~~~~
   drivers/regulator/da9121-regulator.c:624:13: warning: 'da9121_status_poll_on' defined but not used [-Wunused-function]
     624 | static void da9121_status_poll_on(struct work_struct *work)
         |             ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/if +1210 drivers/regulator/da9121-regulator.c

e6ff10f24c587c1 Vincent Whitchurch 2020-11-03  1209  
e6ff10f24c587c1 Vincent Whitchurch 2020-11-03 @1210  MODULE_LICENSE("GPL v2");

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

  reply	other threads:[~2021-11-27  3:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23 23:27 [PATCH V3 0/3] regulator: da9121: add DA914x support Adam Ward
2021-11-23 23:27 ` [PATCH V3 1/3] dt-bindings: da9121: Remove erroneous compatible from binding Adam Ward
2021-11-29  0:48   ` Rob Herring
2021-11-23 23:27 ` [PATCH V3 2/3] dt-bindings: da9121: Add DA914x binding info Adam Ward
2021-11-29  0:49   ` Rob Herring
2021-11-29  0:52   ` Rob Herring
2021-11-23 23:27 ` [PATCH V3 3/3] regulator: da9121: Add DA914x support Adam Ward
2021-11-27  3:03   ` kernel test robot [this message]
2021-11-29 15:25   ` [PATCH v3 " Mark Brown
2021-11-29 22:09     ` Adam Ward
2021-12-01 18:32 ` [PATCH V3 0/3] regulator: da9121: add " Mark Brown

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=202111271151.bdZw3D77-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Adam.Ward.opensource@diasemi.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=support.opensource@diasemi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).