Hi David,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on m68k/for-next]
[also build test WARNING on sparc/master char-misc/char-misc-testing linus/master
v5.12-rc3 next-20210319]
[cannot apply to uclinux-h8/h8300-next hnaz-linux-mm/master sparc-next/master]
[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/David-Hildenbrand/drivers-char-r...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: h8300-randconfig-r004-20210318 (attached as .config)
compiler: h8300-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/0day-ci/linux/commit/7c68ea58a063d3f2d811e4b9cc0cee351...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
David-Hildenbrand/drivers-char-remove-dev-kmem-for-good/20210319-223811
git checkout 7c68ea58a063d3f2d811e4b9cc0cee3514bed08f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/h8300/include/asm/page.h:5,
from arch/h8300/include/asm/thread_info.h:12,
from include/linux/thread_info.h:58,
from include/asm-generic/preempt.h:5,
from ./arch/h8300/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/nommu.c:20:
mm/nommu.c: In function 'kobjsize':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null
pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET)
&& \
| ^~
mm/nommu.c:81:16: note: in expansion of macro 'virt_addr_valid'
81 | if (!objp || !virt_addr_valid(objp))
| ^~~~~~~~~~~~~~~
mm/nommu.c: At top level:
> mm/nommu.c:213:6: warning: no previous prototype for
'vwrite' [-Wmissing-prototypes]
213 | long vwrite(char *buf, char
*addr, unsigned long count)
| ^~~~~~
mm/nommu.c:1658:15: warning: no previous prototype for 'arch_get_unmapped_area'
[-Wmissing-prototypes]
1658 | unsigned long arch_get_unmapped_area(struct file *file, unsigned long addr,
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/vwrite +213 mm/nommu.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 212
^1da177e4c3f41 Linus Torvalds 2005-04-16 @213 long vwrite(char *buf, char *addr, unsigned
long count)
^1da177e4c3f41 Linus Torvalds 2005-04-16 214 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 215 /* Don't allow overflow */
^1da177e4c3f41 Linus Torvalds 2005-04-16 216 if ((unsigned long) addr + count <
count)
^1da177e4c3f41 Linus Torvalds 2005-04-16 217 count = -(unsigned long) addr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 218
^1da177e4c3f41 Linus Torvalds 2005-04-16 219 memcpy(addr, buf, count);
ac7149045d9fcc Choi Gi-yong 2014-04-07 220 return count;
^1da177e4c3f41 Linus Torvalds 2005-04-16 221 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org