public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: min.li.xe@renesas.com, lee.jones@linaro.org
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Min Li <min.li.xe@renesas.com>
Subject: Re: [PATCH net-next v1] mfd: Add Renesas Synchronization Management Unit (SMU) support
Date: Sun, 14 Mar 2021 05:08:49 +0800	[thread overview]
Message-ID: <202103140543.aDiT8bm8-lkp@intel.com> (raw)
In-Reply-To: <1615656579-13886-1-git-send-email-min.li.xe@renesas.com>

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

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/min-li-xe-renesas-com/mfd-Add-Renesas-Synchronization-Management-Unit-SMU-support/20210314-014512
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5ab6f96a12f4f28d5a283dcf46b004cc653246a1
config: i386-randconfig-s032-20210314 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-262-g5e674421-dirty
        # https://github.com/0day-ci/linux/commit/4d537d85df739a32487e30fb69388b030577cb42
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review min-li-xe-renesas-com/mfd-Add-Renesas-Synchronization-Management-Unit-SMU-support/20210314-014512
        git checkout 4d537d85df739a32487e30fb69388b030577cb42
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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 >>):

   ld: drivers/mfd/rsmu_spi.o: in function `rsmu_read':
>> drivers/mfd/rsmu_spi.c:187: multiple definition of `rsmu_read'; drivers/mfd/rsmu_i2c.o:drivers/mfd/rsmu_i2c.c:171: first defined here
   ld: drivers/mfd/rsmu_spi.o: in function `rsmu_write':
>> drivers/mfd/rsmu_spi.c:206: multiple definition of `rsmu_write'; drivers/mfd/rsmu_i2c.o:drivers/mfd/rsmu_i2c.c:179: first defined here


vim +187 drivers/mfd/rsmu_spi.c

   185	
   186	int rsmu_read(struct device *dev, u16 reg, u8 *buf, u16 size)
 > 187	{
   188		struct rsmu_dev *rsmu = dev_get_drvdata(dev);
   189		u8 addr = (u8)(reg & RSMU_LOWER_ADDR_MASK);
   190		int err;
   191	
   192		err = rsmu_write_page_register(rsmu, reg);
   193		if (err)
   194			return err;
   195	
   196		err = rsmu_read_device(rsmu, addr, buf, size);
   197		if (err)
   198			dev_err(rsmu->dev,
   199				"failed to read offset address 0x%x\n", addr);
   200	
   201		return err;
   202	}
   203	EXPORT_SYMBOL_GPL(rsmu_read);
   204	
   205	int rsmu_write(struct device *dev, u16 reg, u8 *buf, u16 size)
 > 206	{
   207		struct rsmu_dev *rsmu = dev_get_drvdata(dev);
   208		u8 addr = (u8)(reg & RSMU_LOWER_ADDR_MASK);
   209		int err;
   210	
   211		err = rsmu_write_page_register(rsmu, reg);
   212		if (err)
   213			return err;
   214	
   215		err = rsmu_write_device(rsmu, addr, buf, size);
   216		if (err)
   217			dev_err(rsmu->dev,
   218				"failed to write offset address 0x%x\n", addr);
   219	
   220		return err;
   221	}
   222	EXPORT_SYMBOL_GPL(rsmu_write);
   223	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36681 bytes --]

      parent reply	other threads:[~2021-03-13 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13 17:29 [PATCH net-next v1] mfd: Add Renesas Synchronization Management Unit (SMU) support min.li.xe
2021-03-13 20:43 ` kernel test robot
2021-03-13 21:08 ` 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=202103140543.aDiT8bm8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=min.li.xe@renesas.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