[staging:staging-next 561/563] drivers/staging/erofs/unzip_vle.h:221:2: note: in expansion of macro 'min'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
head:   27cce7bc2f8154f3a3bebcf7f9923cd22477aef8
commit: 3883a79abd02272222a214a5f84395d41eecdc84 [561/563] staging: erofs: introduce VLE decompression support
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 3883a79abd02272222a214a5f84395d41eecdc84
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   In file included from include/linux/list.h:9:0,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from drivers/staging/erofs/internal.h:16,
                    from drivers/staging/erofs/unzip_vle.h:16,
                    from drivers/staging/erofs/unzip_vle.c:13:
   drivers/staging/erofs/unzip_vle.c: In function 'z_erofs_vle_unzip':
   include/linux/kernel.h:812:29: warning: comparison of distinct pointer types lacks a cast
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                ^
   include/linux/kernel.h:826:4: note: in expansion of macro '__typecheck'
      (__typecheck(x, y) && __no_side_effects(x, y))
       ^~~~~~~~~~~
   include/linux/kernel.h:836:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^~~~~~~~~~
   include/linux/kernel.h:845:19: note: in expansion of macro '__careful_cmp'
    #define min(x, y) __careful_cmp(x, y, <)
                      ^~~~~~~~~~~~~
>> drivers/staging/erofs/unzip_vle.h:221:2: note: in expansion of macro 'min'
     min(THREAD_SIZE / 8 / sizeof(struct page *), 96UL)
     ^~~
>> drivers/staging/erofs/unzip_vle.c:640:29: note: in expansion of macro 'Z_EROFS_VLE_VMAP_ONSTACK_PAGES'
     struct page *pages_onstack[Z_EROFS_VLE_VMAP_ONSTACK_PAGES];
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:10:0,
                    from include/linux/list.h:9,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from drivers/staging/erofs/internal.h:16,
                    from drivers/staging/erofs/unzip_vle.h:16,
                    from drivers/staging/erofs/unzip_vle.c:13:
   include/linux/kernel.h:812:29: warning: comparison of distinct pointer types lacks a cast
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                ^
   include/linux/compiler.h:76:40: note: in definition of macro 'likely'
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   include/linux/kernel.h:826:4: note: in expansion of macro '__typecheck'
      (__typecheck(x, y) && __no_side_effects(x, y))
       ^~~~~~~~~~~
   include/linux/kernel.h:836:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^~~~~~~~~~
   include/linux/kernel.h:845:19: note: in expansion of macro '__careful_cmp'
    #define min(x, y) __careful_cmp(x, y, <)
                      ^~~~~~~~~~~~~
>> drivers/staging/erofs/unzip_vle.h:221:2: note: in expansion of macro 'min'
     min(THREAD_SIZE / 8 / sizeof(struct page *), 96UL)
     ^~~
   drivers/staging/erofs/unzip_vle.c:661:25: note: in expansion of macro 'Z_EROFS_VLE_VMAP_ONSTACK_PAGES'
     if (likely(nr_pages <= Z_EROFS_VLE_VMAP_ONSTACK_PAGES))
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/min +221 drivers/staging/erofs/unzip_vle.h

   219	
   220	#define Z_EROFS_VLE_VMAP_ONSTACK_PAGES	\
 > 221		min(THREAD_SIZE / 8 / sizeof(struct page *), 96UL)
   222	#define Z_EROFS_VLE_VMAP_GLOBAL_PAGES	2048
   223	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux