Re: [PATCH] mm/mmap.c: use IS_ERR_VALUE to check return value of get_unmapped_area

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

 




Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 于2019年10月12日周六 上午10:19写道:

./include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
                                                 ^
./include/linux/compiler.h:78:42: note: in definition of macro unlikely
 # define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
mm/mmap.c:3006:6: note: in expansion of macro IS_ERR_VALUE
  if (IS_ERR_VALUE(error))


Thanks for your review.
I will send a v2.
 

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux