From: kbuild test robot <lkp@intel.com>
To: Yuval Mintz <Yuval.Mintz@cavium.com>
Cc: kbuild-all@01.org, davem@davemloft.net, netdev@vger.kernel.org,
richardcochran@gmail.com, Sudarsana.Kalluru@cavium.com,
Yuval Mintz <Yuval.Mintz@cavium.com>
Subject: Re: [PATCH net-next v6 1/2] qed: Add infrastructure for PTP support
Date: Wed, 15 Feb 2017 03:20:58 +0800 [thread overview]
Message-ID: <201702150317.0sHuSWAG%fengguang.wu@intel.com> (raw)
In-Reply-To: <1487088205-21578-2-git-send-email-Yuval.Mintz@cavium.com>
[-- Attachment #1: Type: text/plain, Size: 2394 bytes --]
Hi Sudarsana,
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Yuval-Mintz/qed-Add-infrastructure-for-PTP-support/20170215-003051
config: i386-allmodconfig (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
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
drivers/net/ethernet/qlogic/qed/qed_ptp.c: In function 'qed_ptp_hw_adjfreq':
>> drivers/net/ethernet/qlogic/qed/qed_ptp.c:165:21: warning: 'best_period' may be used uninitialized in this function [-Wmaybe-uninitialized]
s64 best_val, val, best_period, period, approx_dev, dif, dif2;
^~~~~~~~~~~
>> drivers/net/ethernet/qlogic/qed/qed_ptp.c:165:6: warning: 'best_val' may be used uninitialized in this function [-Wmaybe-uninitialized]
s64 best_val, val, best_period, period, approx_dev, dif, dif2;
^~~~~~~~
vim +/best_period +165 drivers/net/ethernet/qlogic/qed/qed_ptp.c
149 /* Reset possibly old timestamps */
150 qed_wr(p_hwfn, p_ptt, NIG_REG_LLH_PTP_HOST_BUF_SEQID,
151 QED_TIMESTAMP_MASK);
152
153 return 0;
154 }
155
156 /* Adjust the HW clock by a rate given in parts-per-billion (ppb) units.
157 * FW/HW accepts the adjustment value in terms of 3 parameters:
158 * Drift period - adjustment happens once in certain number of nano seconds.
159 * Drift value - time is adjusted by a certain value, for example by 5 ns.
160 * Drift direction - add or subtract the adjustment value.
161 * The routine translates ppb into the adjustment triplet in an optimal manner.
162 */
163 static int qed_ptp_hw_adjfreq(struct qed_dev *cdev, s32 ppb)
164 {
> 165 s64 best_val, val, best_period, period, approx_dev, dif, dif2;
166 struct qed_hwfn *p_hwfn = QED_LEADING_HWFN(cdev);
167 struct qed_ptt *p_ptt = p_hwfn->p_ptp_ptt;
168 u32 drift_ctr_cfg = 0, drift_state;
169 int drift_dir = 1;
170
171 if (ppb < 0) {
172 ppb = -ppb;
173 drift_dir = 0;
---
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: 57949 bytes --]
next prev parent reply other threads:[~2017-02-14 19:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 16:03 [PATCH net-next v6 0/2] qed*: Add support for PTP Yuval Mintz
2017-02-14 16:03 ` [PATCH net-next v6 1/2] qed: Add infrastructure for PTP support Yuval Mintz
2017-02-14 19:20 ` kbuild test robot [this message]
2017-02-14 16:03 ` [PATCH net-next v6 2/2] qede: Add driver support for PTP Yuval Mintz
2017-02-14 18:30 ` [PATCH net-next v6 0/2] qed*: Add " Richard Cochran
2017-02-14 19:43 ` David Miller
2017-02-14 20:12 ` Mintz, Yuval
2017-02-14 20:14 ` David Miller
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=201702150317.0sHuSWAG%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Sudarsana.Kalluru@cavium.com \
--cc=Yuval.Mintz@cavium.com \
--cc=davem@davemloft.net \
--cc=kbuild-all@01.org \
--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).