All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.7/zen-sauce 2/22] include/asm-generic/fixmap.h:32:19: error: comparison of unsigned expression >= 0 is always true
@ 2020-06-02 13:23 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-06-02 13:23 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4539 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.7/zen-sauce
head:   9555af4960645728364e3b2aaae65e6ea7df0062
commit: a9bd5ac696bcd0860a8c32e9e00c9558e68c5854 [2/22] ZEN: Add VHBA driver
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
        git checkout a9bd5ac696bcd0860a8c32e9e00c9558e68c5854
        # save the attached .config to linux build tree
        make W=1 ARCH=um 

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

All errors (new ones prefixed by >>, old ones prefixed by <<):

cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:34,
from include/linux/highmem.h:5,
from drivers/scsi/vhba/vhba.c:25:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
17 |    (((unsigned long) (addr) >= FIXADDR_USER_START) &&          |                             ^~
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro '__access_ok_vsyscall'
45 |   __access_ok_vsyscall(addr, size) ||
|   ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/init.h:5,
from drivers/scsi/vhba/vhba.c:23:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
>> include/asm-generic/fixmap.h:32:19: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
32 |  BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
|                   ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 |   if (!(condition))              |         ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
|  ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
|                                     ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
|  ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
32 |  BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
|  ^~~~~~~~~~~~
In file included from drivers/scsi/vhba/vhba.c:42:
drivers/scsi/vhba/vhba.c: At top level:
drivers/scsi/vhba/vhba.c:483:15: error: no previous prototype for 'vhba_queuecommand' [-Werror=missing-prototypes]
483 | DEF_SCSI_QCMD(vhba_queuecommand)
|               ^~~~~~~~~~~~~~~~~
include/scsi/scsi_host.h:488:6: note: in definition of macro 'DEF_SCSI_QCMD'
488 |  int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd)          |      ^~~~~~~~~
cc1: all warnings being treated as errors

vim +32 include/asm-generic/fixmap.h

d57c33c5daa4ef Mark Salter 2014-01-23  23  
d57c33c5daa4ef Mark Salter 2014-01-23  24  #ifndef __ASSEMBLY__
d57c33c5daa4ef Mark Salter 2014-01-23  25  /*
d57c33c5daa4ef Mark Salter 2014-01-23  26   * 'index to address' translation. If anyone tries to use the idx
d57c33c5daa4ef Mark Salter 2014-01-23  27   * directly without translation, we catch the bug with a NULL-deference
d57c33c5daa4ef Mark Salter 2014-01-23  28   * kernel oops. Illegal ranges of incoming indices are caught too.
d57c33c5daa4ef Mark Salter 2014-01-23  29   */
d57c33c5daa4ef Mark Salter 2014-01-23  30  static __always_inline unsigned long fix_to_virt(const unsigned int idx)
d57c33c5daa4ef Mark Salter 2014-01-23  31  {
d57c33c5daa4ef Mark Salter 2014-01-23 @32  	BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
d57c33c5daa4ef Mark Salter 2014-01-23  33  	return __fix_to_virt(idx);
d57c33c5daa4ef Mark Salter 2014-01-23  34  }
d57c33c5daa4ef Mark Salter 2014-01-23  35  

:::::: The code at line 32 was first introduced by commit
:::::: d57c33c5daa4efa9e4d303bd0faf868080b532be add generic fixmap.h

:::::: TO: Mark Salter <msalter@redhat.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
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: 22536 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-02 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 13:23 [zen-kernel-zen-kernel:5.7/zen-sauce 2/22] include/asm-generic/fixmap.h:32:19: error: comparison of unsigned expression >= 0 is always true kbuild test robot

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.