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@xxxxxxxxx> 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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip