lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202106302125.t2j51PET-lkp@intel.com>
Date:   Wed, 30 Jun 2021 21:23:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>, axboe@...nel.dk
Cc:     kbuild-all@...ts.01.org, linux-block@...r.kernel.org,
        linux-kernel@...r.kernel.org,
        Abd-Alrhman Masalkhi <abd.masalkhi@...il.com>
Subject: Re: [PATCH] block: Removed a warning while compiling with a cross
 compiler for parisc

Hi Abd-Alrhman,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on block/for-next]
[also build test WARNING on v5.13 next-20210630]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Abd-Alrhman-Masalkhi/block-Removed-a-warning-while-compiling-with-a-cross-compiler-for-parisc/20210630-161407
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/749f487a31d6818dadc37ba729475d0486daf81c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Abd-Alrhman-Masalkhi/block-Removed-a-warning-while-compiling-with-a-cross-compiler-for-parisc/20210630-161407
        git checkout 749f487a31d6818dadc37ba729475d0486daf81c
        # save the attached .config to linux build tree
        make W=1 ARCH=um SUBARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> block/genhd.c:1110:6: warning: no previous prototype for 'print_disk_stats' [-Wmissing-prototypes]
    1110 | void print_disk_stats(struct seq_file *seqf,
         |      ^~~~~~~~~~~~~~~~


vim +/print_disk_stats +1110 block/genhd.c

  1109	
> 1110	void print_disk_stats(struct seq_file *seqf,
  1111			      unsigned int inflight, struct disk_stats *stat)
  1112	{
  1113		seq_printf(seqf, "%lu %lu %lu %u "
  1114			   "%lu %lu %lu %u "
  1115			   "%u %u %u "
  1116			   "%lu %lu %lu %u "
  1117			   "%lu %u"
  1118			   "\n",
  1119			   stat->ios[STAT_READ],
  1120			   stat->merges[STAT_READ],
  1121			   stat->sectors[STAT_READ],
  1122			   (unsigned int)div_u64(stat->nsecs[STAT_READ],
  1123						 NSEC_PER_MSEC),
  1124			   stat->ios[STAT_WRITE],
  1125			   stat->merges[STAT_WRITE],
  1126			   stat->sectors[STAT_WRITE],
  1127			   (unsigned int)div_u64(stat->nsecs[STAT_WRITE],
  1128						 NSEC_PER_MSEC),
  1129			   inflight,
  1130			   jiffies_to_msecs(stat->io_ticks),
  1131			   (unsigned int)div_u64(stat->nsecs[STAT_READ] +
  1132						 stat->nsecs[STAT_WRITE] +
  1133						 stat->nsecs[STAT_DISCARD] +
  1134						 stat->nsecs[STAT_FLUSH],
  1135						 NSEC_PER_MSEC),
  1136			   stat->ios[STAT_DISCARD],
  1137			   stat->merges[STAT_DISCARD],
  1138			   stat->sectors[STAT_DISCARD],
  1139			   (unsigned int)div_u64(stat->nsecs[STAT_DISCARD],
  1140						 NSEC_PER_MSEC),
  1141			   stat->ios[STAT_FLUSH],
  1142			   (unsigned int)div_u64(stat->nsecs[STAT_FLUSH],
  1143						 NSEC_PER_MSEC)
  1144			);
  1145	}
  1146	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (8657 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ