From: kernel test robot <rong.a.chen@intel.com>
To: Yangbo Lu <yangbo.lu@nxp.com>
Cc: kbuild-all@lists.01.org, netdev@vger.kernel.org
Subject: [net:master 45/81] drivers/ptp/ptp_sysfs.c:182:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
Date: Mon, 5 Jul 2021 16:57:02 +0800 [thread overview]
Message-ID: <20210705085702.GC2022171@shao2-debian> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head: b43c8909be52f2baca8884f967b418a88424494a
commit: 73f37068d540eba5f93ba3a0019bf479d35ebd76 [45/81] ptp: support ptp physical/virtual clocks conversion
compiler: h8300-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> drivers/ptp/ptp_sysfs.c:182:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
vim +182 drivers/ptp/ptp_sysfs.c
73f37068d540eb Yangbo Lu 2021-06-30 172
73f37068d540eb Yangbo Lu 2021-06-30 173 static ssize_t n_vclocks_show(struct device *dev,
73f37068d540eb Yangbo Lu 2021-06-30 174 struct device_attribute *attr, char *page)
73f37068d540eb Yangbo Lu 2021-06-30 175 {
73f37068d540eb Yangbo Lu 2021-06-30 176 struct ptp_clock *ptp = dev_get_drvdata(dev);
73f37068d540eb Yangbo Lu 2021-06-30 177 ssize_t size;
73f37068d540eb Yangbo Lu 2021-06-30 178
73f37068d540eb Yangbo Lu 2021-06-30 179 if (mutex_lock_interruptible(&ptp->n_vclocks_mux))
73f37068d540eb Yangbo Lu 2021-06-30 180 return -ERESTARTSYS;
73f37068d540eb Yangbo Lu 2021-06-30 181
73f37068d540eb Yangbo Lu 2021-06-30 @182 size = snprintf(page, PAGE_SIZE - 1, "%d\n", ptp->n_vclocks);
73f37068d540eb Yangbo Lu 2021-06-30 183
73f37068d540eb Yangbo Lu 2021-06-30 184 mutex_unlock(&ptp->n_vclocks_mux);
73f37068d540eb Yangbo Lu 2021-06-30 185
73f37068d540eb Yangbo Lu 2021-06-30 186 return size;
73f37068d540eb Yangbo Lu 2021-06-30 187 }
73f37068d540eb Yangbo Lu 2021-06-30 188
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-07-05 8:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210705085702.GC2022171@shao2-debian \
--to=rong.a.chen@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=netdev@vger.kernel.org \
--cc=yangbo.lu@nxp.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).