All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:pr/50 6/9] arch/um/include/asm/uaccess.h:17:36: error: comparison of unsigned expression in '>= 0' is always true
@ 2024-02-20 23:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-20 23:06 UTC (permalink / raw
  To: Frank Wunderlich; +Cc: oe-kbuild-all

tree:   https://github.com/frank-w/BPI-R2-4.14 pr/50
head:   b3bf5911a5d9f6eb8112d294ffaf5f474dccc686
commit: ce8c582c6121469db64197b1b4aa4e4c377c660f [6/9] [wifi] adding driver-folder
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20240221/202402210716.uLc3keD9-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240221/202402210716.uLc3keD9-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402210716.uLc3keD9-lkp@intel.com/

All errors (new ones prefixed by >>):

>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-/include/mach: No such file or directory [-Werror=missing-include-dirs]
   In file included from include/linux/uaccess.h:14,
                    from include/linux/poll.h:12,
                    from drivers/misc/mediatek/btif/common/mtk_btif.c:23:
   arch/um/include/asm/uaccess.h: In function '__access_ok':
>> arch/um/include/asm/uaccess.h:17:36: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      17 |           (((unsigned long) (addr) >= FIXADDR_USER_START) && \
         |                                    ^~
   arch/um/include/asm/uaccess.h:45:17: note: in expansion of macro '__access_ok_vsyscall'
      45 |                 __access_ok_vsyscall(addr, size) ||
         |                 ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:10,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/misc/mediatek/btif/common/mtk_btif.c:16:
   include/asm-generic/fixmap.h: In function 'fix_to_virt':
>> include/asm-generic/fixmap.h:31:26: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |                          ^~
   include/linux/compiler.h:338:32: note: in definition of macro '__compiletime_assert'
     338 |                 int __cond = !(condition);                              \
         |                                ^~~~~~~~~
   include/linux/compiler.h:361:9: note: in expansion of macro '_compiletime_assert'
     361 |         _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
      45 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:69:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      69 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/fixmap.h:31:9: note: in expansion of macro 'BUILD_BUG_ON'
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |         ^~~~~~~~~~~~
   In file included from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from include/linux/scatterlist.h:8,
                    from include/linux/kfifo.h:56,
                    from drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:23,
                    from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
                    from drivers/misc/mediatek/btif/common/mtk_btif.c:37:
   include/linux/mm.h: In function 'pgtable_init':
>> arch/um/include/asm/pgtable.h:35:33: error: suggest braces around empty body in 'do' statement [-Werror=empty-body]
      35 | #define pgtable_cache_init() do ; while (0)
         |                                 ^
   include/linux/mm.h:1898:9: note: in expansion of macro 'pgtable_cache_init'
    1898 |         pgtable_cache_init();
         |         ^~~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: error: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
      64 |         vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
         |         ^~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'mtk_btif_restore_noirq':
   drivers/misc/mediatek/btif/common/mtk_btif.c:379:13: error: variable 'i_ret' set but not used [-Werror=unused-but-set-variable]
     379 |         int i_ret = 0;
         |             ^~~~~
   drivers/misc/mediatek/btif/common/mtk_btif.c: At top level:
   drivers/misc/mediatek/btif/common/mtk_btif.c:522:6: error: no previous prototype for 'btif_rx_notify_cb' [-Werror=missing-prototypes]
     522 | void btif_rx_notify_cb(void)
         |      ^~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store':
   drivers/misc/mediatek/btif/common/mtk_btif.c:773:13: error: variable 'result' set but not used [-Werror=unused-but-set-variable]
     773 |         int result = 0;
         |             ^~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif.c: In function '_btif_pio_write':
   drivers/misc/mediatek/btif/common/mtk_btif.c:2778:56: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
    2778 |                 if ((++retry > max_tx_retry) || (i_ret < 0)) {
         |                                                        ^
   drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'btif_log_buf_dmp_out':
   drivers/misc/mediatek/btif/common/mtk_btif.c:3033:24: error: variable 'p_buf' set but not used [-Werror=unused-but-set-variable]
    3033 |         unsigned char *p_buf = NULL;
         |                        ^~~~~
   cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-/include/mach: No such file or directory [-Werror=missing-include-dirs]
   In file included from include/linux/kernel.h:10,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:18,
                    from drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20:
   include/asm-generic/fixmap.h: In function 'fix_to_virt':
>> include/asm-generic/fixmap.h:31:26: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |                          ^~
   include/linux/compiler.h:338:32: note: in definition of macro '__compiletime_assert'
     338 |                 int __cond = !(condition);                              \
         |                                ^~~~~~~~~
   include/linux/compiler.h:361:9: note: in expansion of macro '_compiletime_assert'
     361 |         _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
      45 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:69:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      69 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/fixmap.h:31:9: note: in expansion of macro 'BUILD_BUG_ON'
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |         ^~~~~~~~~~~~
   In file included from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from include/linux/scatterlist.h:8,
                    from include/linux/dma-mapping.h:11,
                    from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:24:
   include/linux/mm.h: In function 'pgtable_init':
>> arch/um/include/asm/pgtable.h:35:33: error: suggest braces around empty body in 'do' statement [-Werror=empty-body]
      35 | #define pgtable_cache_init() do ; while (0)
         |                                 ^
   include/linux/mm.h:1898:9: note: in expansion of macro 'pgtable_cache_init'
    1898 |         pgtable_cache_init();
         |         ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/uaccess.h:14,
                    from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:32:
   arch/um/include/asm/uaccess.h: In function '__access_ok':
>> arch/um/include/asm/uaccess.h:17:36: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      17 |           (((unsigned long) (addr) >= FIXADDR_USER_START) && \
         |                                    ^~
   arch/um/include/asm/uaccess.h:45:17: note: in expansion of macro '__access_ok_vsyscall'
      45 |                 __access_ok_vsyscall(addr, size) ||
         |                 ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
                    from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:37:
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: error: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
      64 |         vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
         |         ^~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c: At top level:
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:24:12: error: no previous prototype for 'btif_exp_srh_id' [-Werror=missing-prototypes]
      24 | p_mtk_btif btif_exp_srh_id(unsigned long u_id)
         |            ^~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:511:5: error: no previous prototype for 'btif_open_no_id' [-Werror=missing-prototypes]
     511 | int btif_open_no_id(void)
         |     ^~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:526:5: error: no previous prototype for 'btif_close_no_id' [-Werror=missing-prototypes]
     526 | int btif_close_no_id(void)
         |     ^~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:540:5: error: no previous prototype for 'btif_write_no_id' [-Werror=missing-prototypes]
     540 | int btif_write_no_id(const unsigned char *p_buf, unsigned int len)
         |     ^~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:561:5: error: no previous prototype for 'btif_dpidle_ctrl_no_id' [-Werror=missing-prototypes]
     561 | int btif_dpidle_ctrl_no_id(ENUM_BTIF_DPIDLE_CTRL en_flag)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:585:5: error: no previous prototype for 'btif_loopback_ctrl_no_id' [-Werror=missing-prototypes]
     585 | int btif_loopback_ctrl_no_id(ENUM_BTIF_LPBK_MODE enable)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/mtk_btif_exp.c:596:5: error: no previous prototype for 'btif_dbg_ctrl_no_id' [-Werror=missing-prototypes]
     596 | int btif_dbg_ctrl_no_id(ENUM_BTIF_DBG_ID flag)
         |     ^~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-/include/mach: No such file or directory [-Werror=missing-include-dirs]
   In file included from include/linux/kernel.h:10,
                    from drivers/misc/mediatek/btif/common/btif_dma_plat.c:14:
   include/asm-generic/fixmap.h: In function 'fix_to_virt':
>> include/asm-generic/fixmap.h:31:26: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |                          ^~
   include/linux/compiler.h:338:32: note: in definition of macro '__compiletime_assert'
     338 |                 int __cond = !(condition);                              \
         |                                ^~~~~~~~~
   include/linux/compiler.h:361:9: note: in expansion of macro '_compiletime_assert'
     361 |         _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
      45 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:69:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      69 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/fixmap.h:31:9: note: in expansion of macro 'BUILD_BUG_ON'
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |         ^~~~~~~~~~~~
   In file included from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from include/linux/scatterlist.h:8,
                    from include/linux/dma-mapping.h:11,
                    from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:17,
                    from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_priv.h:18,
                    from drivers/misc/mediatek/btif/common/btif_dma_plat.c:22:
   include/linux/mm.h: In function 'pgtable_init':
>> arch/um/include/asm/pgtable.h:35:33: error: suggest braces around empty body in 'do' statement [-Werror=empty-body]
      35 | #define pgtable_cache_init() do ; while (0)
         |                                 ^
   include/linux/mm.h:1898:9: note: in expansion of macro 'pgtable_cache_init'
    1898 |         pgtable_cache_init();
         |         ^~~~~~~~~~~~~~~~~~
   In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:19:
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: error: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
      64 |         vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
         |         ^~~~~~~~~
   drivers/misc/mediatek/btif/common/btif_dma_plat.c: In function 'hal_dma_pm_ops':
   drivers/misc/mediatek/btif/common/btif_dma_plat.c:1315:38: error: variable 'flag' set but not used [-Werror=unused-but-set-variable]
    1315 |                         unsigned int flag = 0;
         |                                      ^~~~
   cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-/include/mach: No such file or directory [-Werror=missing-include-dirs]
   In file included from include/linux/kernel.h:10,
                    from drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:17,
                    from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
                    from drivers/misc/mediatek/btif/common/btif_plat.c:21:
   include/asm-generic/fixmap.h: In function 'fix_to_virt':
>> include/asm-generic/fixmap.h:31:26: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |                          ^~
   include/linux/compiler.h:338:32: note: in definition of macro '__compiletime_assert'
     338 |                 int __cond = !(condition);                              \
         |                                ^~~~~~~~~
   include/linux/compiler.h:361:9: note: in expansion of macro '_compiletime_assert'
     361 |         _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
      45 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:69:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      69 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/fixmap.h:31:9: note: in expansion of macro 'BUILD_BUG_ON'
      31 |         BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
         |         ^~~~~~~~~~~~
   In file included from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from include/linux/scatterlist.h:8,
                    from include/linux/kfifo.h:56,
                    from drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:23:
   include/linux/mm.h: In function 'pgtable_init':
>> arch/um/include/asm/pgtable.h:35:33: error: suggest braces around empty body in 'do' statement [-Werror=empty-body]
      35 | #define pgtable_cache_init() do ; while (0)
         |                                 ^
   include/linux/mm.h:1898:9: note: in expansion of macro 'pgtable_cache_init'
    1898 |         pgtable_cache_init();
         |         ^~~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
   drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: error: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
      64 |         vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
         |         ^~~~~~~~~
   drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_hw_init':
   drivers/misc/mediatek/btif/common/btif_plat.c:518:39: error: implicit conversion from 'enum <anonymous>' to 'ENUM_BTIF_MODE' {aka 'enum _ENUM_BTIF_MODE_'} [-Werror=enum-conversion]
     518 |         hal_btif_tx_mode_ctrl(p_btif, false);
         |                                       ^~~~~
   drivers/misc/mediatek/btif/common/btif_plat.c:520:39: error: implicit conversion from 'enum <anonymous>' to 'ENUM_BTIF_MODE' {aka 'enum _ENUM_BTIF_MODE_'} [-Werror=enum-conversion]
     520 |         hal_btif_rx_mode_ctrl(p_btif, false);
         |                                       ^~~~~
   drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_pm_ops':
   drivers/misc/mediatek/btif/common/btif_plat.c:1348:38: error: variable 'flag' set but not used [-Werror=unused-but-set-variable]
    1348 |                         unsigned int flag = 0;
         |                                      ^~~~
   cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-//dct/dct: No such file or directory [-Werror=missing-include-dirs]
   In file included from include/linux/uaccess.h:14,
                    from include/linux/poll.h:12,
                    from drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.h:26,
                    from drivers/misc/mediatek/connectivity/common/common_detect/mtk_wcn_stub_alps.c:64:
   arch/um/include/asm/uaccess.h: In function '__access_ok':
>> arch/um/include/asm/uaccess.h:17:36: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      17 |           (((unsigned long) (addr) >= FIXADDR_USER_START) && \
         |                                    ^~
   arch/um/include/asm/uaccess.h:45:17: note: in expansion of macro '__access_ok_vsyscall'
      45 |                 __access_ok_vsyscall(addr, size) ||
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/connectivity/common/common_detect/mtk_wcn_stub_alps.c: At top level:
   drivers/misc/mediatek/connectivity/common/common_detect/mtk_wcn_stub_alps.c:440:5: error: no previous prototype for 'mtk_wcn_cmb_stub_do_reset' [-Werror=missing-prototypes]
     440 | int mtk_wcn_cmb_stub_do_reset(unsigned int type)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/misc/mediatek/connectivity/common/common_detect/mtk_wcn_stub_alps.c:475:13: error: no previous prototype for 'mtk_wcn_cmb_sdio_eirq_handler_stub' [-Werror=missing-prototypes]
     475 | irqreturn_t mtk_wcn_cmb_sdio_eirq_handler_stub(int irq, void *data)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-//dct/dct: No such file or directory [-Werror=missing-include-dirs]
   drivers/misc/mediatek/connectivity/common/common_detect/wmt_stp_exp.c:14:10: fatal error: osal_typedef.h: No such file or directory
      14 | #include "osal_typedef.h"
         |          ^~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   compilation terminated.
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-//dct/dct: No such file or directory [-Werror=missing-include-dirs]
   In file included from drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.c:15:
   drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.h:24:10: fatal error: osal.h: No such file or directory
      24 | #include "osal.h"
         |          ^~~~~~~~
   cc1: all warnings being treated as errors
   compilation terminated.
--
>> cc1: error: arch/um/include/uapi: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: drivers/misc/mediatek/include/mt-plat//include: No such file or directory [-Werror=missing-include-dirs]
   cc1: error: arch/arm/mach-//dct/dct: No such file or directory [-Werror=missing-include-dirs]
   In file included from include/linux/uaccess.h:14,
                    from include/linux/poll.h:12,
                    from drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.h:26,
                    from drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.c:23:
   arch/um/include/asm/uaccess.h: In function '__access_ok':
>> arch/um/include/asm/uaccess.h:17:36: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
      17 |           (((unsigned long) (addr) >= FIXADDR_USER_START) && \
         |                                    ^~
   arch/um/include/asm/uaccess.h:45:17: note: in expansion of macro '__access_ok_vsyscall'
      45 |                 __access_ok_vsyscall(addr, size) ||
         |                 ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.c:24:
   drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.h: At top level:
   drivers/misc/mediatek/connectivity/common/common_detect/wmt_gpio.h:24:10: fatal error: osal.h: No such file or directory
      24 | #include "osal.h"
         |          ^~~~~~~~
   cc1: all warnings being treated as errors
   compilation terminated.
..


vim +17 arch/um/include/asm/uaccess.h

^1da177e4c3f41 include/asm-um/uaccess.h      Linus Torvalds     2005-04-16  11  
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  12  #define __under_task_size(addr, size) \
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  13  	(((unsigned long) (addr) < TASK_SIZE) && \
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  14  	 (((unsigned long) (addr) + (size)) < TASK_SIZE))
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  15  
f8d65d27e677da arch/um/include/asm/uaccess.h Richard Weinberger 2015-05-12  16  #define __access_ok_vsyscall(addr, size) \
f8d65d27e677da arch/um/include/asm/uaccess.h Richard Weinberger 2015-05-12 @17  	  (((unsigned long) (addr) >= FIXADDR_USER_START) && \
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  18  	  ((unsigned long) (addr) + (size) <= FIXADDR_USER_END) && \
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  19  	  ((unsigned long) (addr) + (size) >= (unsigned long)(addr)))
fced95cacfc21b arch/um/include/asm/uaccess.h Al Viro            2011-08-18  20  

:::::: The code at line 17 was first introduced by commit
:::::: f8d65d27e677da0ce33de570e3068308a77ed2b1 um: Rework uaccess code

:::::: TO: Richard Weinberger <richard@nod.at>
:::::: CC: Richard Weinberger <richard@nod.at>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-02-20 23:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 23:06 [frank-w-bpi-r2-4.14:pr/50 6/9] arch/um/include/asm/uaccess.h:17:36: error: comparison of unsigned expression in '>= 0' is always true kernel 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.