From: kbuild test robot <lkp@intel.com>
To: Bryan.Whitehead@microchip.com
Cc: kbuild-all@01.org, netdev@vger.kernel.org, davem@davemloft.net,
UNGLinuxDriver@microchip.com
Subject: Re: [PATCH net-next 2/3] Add LAN743X to Kconfig and Makefile
Date: Tue, 15 Aug 2017 00:10:32 +0800 [thread overview]
Message-ID: <201708150028.0SQxAIgJ%fengguang.wu@intel.com> (raw)
In-Reply-To: <90A7E81AE28BAE4CBDDB3B35F187D264406F6049@CHN-SV-EXMX02.mchp-main.com>
[-- Attachment #1: Type: text/plain, Size: 4000 bytes --]
Hi Bryan,
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Bryan-Whitehead-microchip-com/Add-LAN743X-driver/20170814-141247
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/net//ethernet/microchip/lan743x.c: In function 'lan743x_ptpci_settime64':
>> drivers/net//ethernet/microchip/lan743x.c:1117:83: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time64_t {aka const long long int}' [-Wformat=]
NETIF_WARNING(adapter, drv, adapter->netdev,
^
vim +1117 drivers/net//ethernet/microchip/lan743x.c
a33f5600 Bryan Whitehead 2017-08-11 1103
a33f5600 Bryan Whitehead 2017-08-11 1104 #ifdef CONFIG_PTP_1588_CLOCK
a33f5600 Bryan Whitehead 2017-08-11 1105 static int lan743x_ptpci_settime64(struct ptp_clock_info *ptpci,
a33f5600 Bryan Whitehead 2017-08-11 1106 const struct timespec64 *ts)
a33f5600 Bryan Whitehead 2017-08-11 1107 {
a33f5600 Bryan Whitehead 2017-08-11 1108 struct lan743x_ptp *ptp = LAN743X_PTPCI_TO_PTP;
a33f5600 Bryan Whitehead 2017-08-11 1109 struct lan743x_adapter *adapter = LAN743X_PTP_TO_ADAPTER;
a33f5600 Bryan Whitehead 2017-08-11 1110
a33f5600 Bryan Whitehead 2017-08-11 1111 if (ts) {
a33f5600 Bryan Whitehead 2017-08-11 1112 u32 seconds = 0;
a33f5600 Bryan Whitehead 2017-08-11 1113 u32 nano_seconds = 0;
a33f5600 Bryan Whitehead 2017-08-11 1114
a33f5600 Bryan Whitehead 2017-08-11 1115 if ((ts->tv_sec > 0xFFFFFFFFLL) ||
a33f5600 Bryan Whitehead 2017-08-11 1116 (ts->tv_sec < 0)) {
a33f5600 Bryan Whitehead 2017-08-11 @1117 NETIF_WARNING(adapter, drv, adapter->netdev,
a33f5600 Bryan Whitehead 2017-08-11 1118 "ts->tv_sec out of range, %ld",
a33f5600 Bryan Whitehead 2017-08-11 1119 ts->tv_sec);
a33f5600 Bryan Whitehead 2017-08-11 1120 return -EINVAL;
a33f5600 Bryan Whitehead 2017-08-11 1121 }
a33f5600 Bryan Whitehead 2017-08-11 1122 if ((ts->tv_nsec >= 1000000000L) ||
a33f5600 Bryan Whitehead 2017-08-11 1123 (ts->tv_nsec < 0)) {
a33f5600 Bryan Whitehead 2017-08-11 1124 NETIF_WARNING(adapter, drv, adapter->netdev,
a33f5600 Bryan Whitehead 2017-08-11 1125 "ts->tv_nsec out of range, %ld",
a33f5600 Bryan Whitehead 2017-08-11 1126 ts->tv_nsec);
a33f5600 Bryan Whitehead 2017-08-11 1127 return -EINVAL;
a33f5600 Bryan Whitehead 2017-08-11 1128 }
a33f5600 Bryan Whitehead 2017-08-11 1129 seconds = ts->tv_sec;
a33f5600 Bryan Whitehead 2017-08-11 1130 nano_seconds = ts->tv_nsec;
a33f5600 Bryan Whitehead 2017-08-11 1131 NETIF_INFO(adapter, drv, adapter->netdev,
a33f5600 Bryan Whitehead 2017-08-11 1132 "settime = %u.%09u", seconds, nano_seconds);
a33f5600 Bryan Whitehead 2017-08-11 1133 lan743x_ptp_clock_set(adapter, seconds, nano_seconds, 0);
a33f5600 Bryan Whitehead 2017-08-11 1134 } else {
a33f5600 Bryan Whitehead 2017-08-11 1135 NETIF_WARNING(adapter, drv, adapter->netdev, "ts == NULL");
a33f5600 Bryan Whitehead 2017-08-11 1136 return -EINVAL;
a33f5600 Bryan Whitehead 2017-08-11 1137 }
a33f5600 Bryan Whitehead 2017-08-11 1138 return 0;
a33f5600 Bryan Whitehead 2017-08-11 1139 }
a33f5600 Bryan Whitehead 2017-08-11 1140 #endif /*CONFIG_PTP_1588_CLOCK */
a33f5600 Bryan Whitehead 2017-08-11 1141
:::::: The code at line 1117 was first introduced by commit
:::::: a33f5600a21257dc396a7278c7c5ff74ac2f7844 Add LAN743X driver
:::::: TO: Bryan Whitehead <Bryan.Whitehead@microchip.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60452 bytes --]
prev parent reply other threads:[~2017-08-14 16:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 19:48 [PATCH net-next 2/3] Add LAN743X to Kconfig and Makefile Bryan.Whitehead
2017-08-14 16:10 ` kbuild 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=201708150028.0SQxAIgJ%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Bryan.Whitehead@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=davem@davemloft.net \
--cc=kbuild-all@01.org \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox