netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: min.li.xe@renesas.com, richardcochran@gmail.com
Cc: kbuild-all@lists.01.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, Min Li <min.li.xe@renesas.com>
Subject: Re: [PATCH net 1/4] ptp: ptp_idt82p33: update to support adjphase
Date: Sat, 8 Aug 2020 04:56:46 +0800	[thread overview]
Message-ID: <202008080433.vZHzfgQ2%lkp@intel.com> (raw)
In-Reply-To: <1596815755-10994-1-git-send-email-min.li.xe@renesas.com>

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

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net/master]

url:    https://github.com/0day-ci/linux/commits/min-li-xe-renesas-com/ptp-ptp_idt82p33-update-to-support-adjphase/20200808-000545
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 8912fd6a61d7474ea9b43be93f136034d28868d5
config: i386-randconfig-s001-20200807 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-118-ge1578773-dirty
        # 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/ptp/ptp_idt82p33.o: in function `idt82p33_adjwritephase':
>> drivers/ptp/ptp_idt82p33.c:695: undefined reference to `__divdi3'

vim +695 drivers/ptp/ptp_idt82p33.c

   676	
   677	static int idt82p33_adjwritephase(struct ptp_clock_info *ptp, s32 offsetNs)
   678	{
   679		struct idt82p33_channel *channel =
   680			container_of(ptp, struct idt82p33_channel, caps);
   681		struct idt82p33 *idt82p33 = channel->idt82p33;
   682		s64 offsetInFs;
   683		s64 offsetRegVal;
   684		u8 val[4] = {0};
   685		int err;
   686	
   687		offsetInFs = (s64)(-offsetNs) * 1000000;
   688	
   689		if (offsetInFs > WRITE_PHASE_OFFSET_LIMIT)
   690			offsetInFs = WRITE_PHASE_OFFSET_LIMIT;
   691		else if (offsetInFs < -WRITE_PHASE_OFFSET_LIMIT)
   692			offsetInFs = -WRITE_PHASE_OFFSET_LIMIT;
   693	
   694		/* Convert from phaseOffsetInFs to register value */
 > 695		offsetRegVal = ((offsetInFs * 1000) / IDT_T0DPLL_PHASE_RESOL);
   696	
   697		val[0] = offsetRegVal & 0xFF;
   698		val[1] = (offsetRegVal >> 8) & 0xFF;
   699		val[2] = (offsetRegVal >> 16) & 0xFF;
   700		val[3] = (offsetRegVal >> 24) & 0x1F;
   701		val[3] |= PH_OFFSET_EN;
   702	
   703		mutex_lock(&idt82p33->reg_lock);
   704	
   705		err = idt82p33_dpll_set_mode(channel, PLL_MODE_WPH);
   706		if (err) {
   707			dev_err(&idt82p33->client->dev,
   708				"Failed at line %d in func %s!\n",
   709				__LINE__,
   710				__func__);
   711			goto out;
   712		}
   713	
   714		err = idt82p33_write(idt82p33, channel->dpll_phase_cnfg, val,
   715				     sizeof(val));
   716	
   717	out:
   718		mutex_unlock(&idt82p33->reg_lock);
   719		return err;
   720	}
   721	

---
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: 33222 bytes --]

  reply	other threads:[~2020-08-07 20:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 15:55 [PATCH net 1/4] ptp: ptp_idt82p33: update to support adjphase min.li.xe
2020-08-07 20:56 ` kernel test robot [this message]
2020-08-07 21:57 ` kernel test robot
2020-10-15 19:30 ` Min Li
2020-10-15 21:23   ` Richard Cochran
2020-10-17 10:33   ` Pavel Machek

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=202008080433.vZHzfgQ2%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=min.li.xe@renesas.com \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.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).