All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Desaulniers <ndesaulniers@google.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v3 3/4] regulator: mpq7920: add mpq7920 regulator driver
Date: Mon, 06 Jan 2020 14:48:34 -0800	[thread overview]
Message-ID: <CAKwvOdnCPxMbgG7S0Ou6YHvYhVFk0wcDyCQDDzHcwGn9MYou9w@mail.gmail.com> (raw)
In-Reply-To: <201912250754.lp9WgzoI%lkp@intel.com>

[-- Attachment #1: Type: text/plain, Size: 3670 bytes --]

Hi Saravanan, can you please take a look at the below report?

On Tue, Dec 24, 2019 at 3:38 PM kbuild test robot <lkp@intel.com> wrote:
>
> CC: kbuild-all(a)lists.01.org
> In-Reply-To: <20191222204507.32413-4-sravanhome@gmail.com>
> References: <20191222204507.32413-4-sravanhome@gmail.com>
> TO: Saravanan Sekar <sravanhome@gmail.com>
> CC: sravanhome(a)gmail.com, lgirdwood(a)gmail.com, broonie(a)kernel.org, robh+dt(a)kernel.org, mark.rutland(a)arm.com, mripard(a)kernel.org, shawnguo(a)kernel.org, heiko(a)sntech.de, sam(a)ravnborg.org, icenowy(a)aosc.io, laurent.pinchart(a)ideasonboard.com, gregkh(a)linuxfoundation.org, Jonathan.Cameron(a)huawei.com, davem(a)davemloft.net, mchehab+samsung(a)kernel.org
> CC: devicetree(a)vger.kernel.org, linux-kernel(a)vger.kernel.org
>
> Hi Saravanan,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on regulator/for-next]
> [also build test ERROR on robh/for-next linus/master v5.5-rc3 next-20191220]
> [if your patch is applied to the wrong git tree, please drop us a note to help
> improve the system. BTW, we also suggest to use '--base' option to specify the
> base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
>
> url:    https://github.com/0day-ci/linux/commits/Saravanan-Sekar/Add-regulator-support-for-mpq7920/20191225-005026
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
> config: x86_64-allyesconfig (attached as .config)
> compiler: clang version 10.0.0 (git://gitmirror/llvm_project e5a743c4f6e3639ba3bee778c894a996ef96391a)
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=x86_64
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> >> drivers/regulator/mpq7920.c:317:7: error: assigning to 'struct regulator_ops *' from 'const struct regulator_ops *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>                    ops = rdesc->ops;
>                        ^ ~~~~~~~~~~
>    1 error generated.
>
> vim +317 drivers/regulator/mpq7920.c
>
>    306
>    307  static inline int mpq7920_regulator_register(
>    308                                  struct mpq7920_regulator_info *info,
>    309                                  struct regulator_config *config)
>    310  {
>    311          int i;
>    312          struct regulator_desc *rdesc;
>    313          struct regulator_ops *ops;
>    314
>    315          for (i = 0; i < MPQ7920_MAX_REGULATORS; i++) {
>    316                  rdesc = &info->rdesc[i];
>  > 317                  ops = rdesc->ops;
>    318                  if (rdesc->curr_table) {
>    319                          ops->get_current_limit =
>    320                                  regulator_get_current_limit_regmap;
>    321                          ops->set_current_limit =
>    322                                  regulator_set_current_limit_regmap;
>    323                  }
>    324
>    325                  info->rdev[i] = devm_regulator_register(info->dev, rdesc,
>    326                                           config);
>    327                  if (IS_ERR(info->rdev))
>    328                          return PTR_ERR(info->rdev);
>    329          }
>    330
>    331          return 0;
>    332  }
>    333
>
> ---
> 0-DAY kernel test infrastructure                 Open Source Technology Center
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation



-- 
Thanks,
~Nick Desaulniers

       reply	other threads:[~2020-01-06 22:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201912250754.lp9WgzoI%lkp@intel.com>
2020-01-06 22:48 ` Nick Desaulniers [this message]
2019-12-22 20:45 [PATCH v3 0/4] Add regulator support for mpq7920 Saravanan Sekar
2019-12-22 20:45 ` [PATCH v3 3/4] regulator: mpq7920: add mpq7920 regulator driver Saravanan Sekar
2019-12-25 21:59   ` kbuild test robot
2019-12-25 21:59     ` kbuild test robot

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=CAKwvOdnCPxMbgG7S0Ou6YHvYhVFk0wcDyCQDDzHcwGn9MYou9w@mail.gmail.com \
    --to=ndesaulniers@google.com \
    --cc=kbuild-all@lists.01.org \
    /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.