From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ribalda:uvc-noncontiguous-v2 4/5] drivers/media/usb/uvc/uvc_video.c:909:8: warning: no previous prototype for 'uvc_video_dump_time_stats'
Date: Thu, 10 Dec 2020 00:20:07 +0800 [thread overview]
Message-ID: <202012100003.fggUeAkJ-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3317 bytes --]
tree: https://github.com/ribalda/linux uvc-noncontiguous-v2
head: 042cd497739f71c8d4a83a67ee970369e2baca4a
commit: dbe2f5c7abe60edddfb6732bba6cf6184388ab15 [4/5] TEST-ONLY: media: uvcvideo: Add statistics for measuring performance
config: microblaze-randconfig-r032-20201209 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ribalda/linux/commit/dbe2f5c7abe60edddfb6732bba6cf6184388ab15
git remote add ribalda https://github.com/ribalda/linux
git fetch --no-tags ribalda uvc-noncontiguous-v2
git checkout dbe2f5c7abe60edddfb6732bba6cf6184388ab15
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/usb/uvc/uvc_video.c:909:8: warning: no previous prototype for 'uvc_video_dump_time_stats' [-Wmissing-prototypes]
909 | size_t uvc_video_dump_time_stats(char *buf, size_t size,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/usb/uvc/uvc_video.c:930:8: warning: no previous prototype for 'uvc_video_dump_speed' [-Wmissing-prototypes]
930 | size_t uvc_video_dump_speed(char *buf, size_t size, const char *pfx, u64 bytes,
| ^~~~~~~~~~~~~~~~~~~~
vim +/uvc_video_dump_time_stats +909 drivers/media/usb/uvc/uvc_video.c
908
> 909 size_t uvc_video_dump_time_stats(char *buf, size_t size,
910 struct uvc_stats_time *stat, const char *pfx)
911 {
912 unsigned int avg = 0;
913 unsigned int std = 0;
914
915 if (stat->qty) {
916 avg = div_u64(stat->duration, stat->qty);
917 std = int_sqrt64(div_u64(stat->duration2, stat->qty) -
918 avg * avg);
919 }
920
921 /* Stat durations are in nanoseconds, we present in micro-seconds */
922 return scnprintf(
923 buf, size,
924 "%s: %llu/%u uS/qty: %u.%03u avg %u.%03u std %u.%03u min %u.%03u max (uS)\n",
925 pfx, div_u64(stat->duration, 1000), stat->qty, avg / 1000,
926 avg % 1000, std / 1000, std % 1000, stat->min / 1000,
927 stat->min % 1000, stat->max / 1000, stat->max % 1000);
928 }
929
> 930 size_t uvc_video_dump_speed(char *buf, size_t size, const char *pfx, u64 bytes,
931 u64 milliseconds)
932 {
933 unsigned int rate = 0;
934 bool gbit = false;
935
936 if (milliseconds)
937 rate = div_u64(bytes * 8, milliseconds);
938
939 if (rate >= 1000000) {
940 gbit = true;
941 rate /= 1000;
942 }
943
944 /*
945 * bits/milliseconds == kilobits/seconds,
946 * presented here as Mbits/s (or Gbit/s) with 3 decimal places
947 */
948 return scnprintf(buf, size, "%s: %d.%03d %sbits/s\n", pfx, rate / 1000,
949 rate % 1000, gbit ? "G" : "M");
950 }
951
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36877 bytes --]
reply other threads:[~2020-12-09 16:20 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=202012100003.fggUeAkJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.