mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Arvind Yadav <arvind.yadav.cs@gmail.com>
Cc: kbuild-all@01.org, zajec5@gmail.com, viresh.kumar@linaro.org,
	akpm@linux-foundation.org, linux-wireless@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Arvind Yadav <arvind.yadav.cs@gmail.com>
Subject: Re: [v1] ErrHandling:Make IS_ERR_VALUE_U32 as generic API to avoid IS_ERR_VALUE abuses.
Date: Sun, 10 Jul 2016 02:23:05 +0800	[thread overview]
Message-ID: <201607100229.1QmGOEYE%fengguang.wu@intel.com> (raw)
In-Reply-To: <1468079460-10153-1-git-send-email-arvind.yadav.cs@gmail.com>

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

Hi,

[auto build test WARNING on v4.7-rc6]
[also build test WARNING on next-20160708]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Arvind-Yadav/ErrHandling-Make-IS_ERR_VALUE_U32-as-generic-API-to-avoid-IS_ERR_VALUE-abuses/20160709-235356
config: x86_64-randconfig-x007-201628 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/mod_devicetable.h:11,
                    from include/linux/pci.h:20,
                    from include/linux/bcma/bcma.h:4,
                    from drivers/bcma/bcma_private.h:8,
                    from drivers/bcma/scan.c:9:
   drivers/bcma/scan.c: In function 'bcma_get_next_core':
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:162:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> drivers/bcma/scan.c:361:2: note: in expansion of macro 'if'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
     ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:361:18: note: in expansion of macro 'IS_ERR_VALUE_U32'
     if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                     ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
   drivers/bcma/scan.c:365:3: note: in expansion of macro 'if'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
      ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:365:19: note: in expansion of macro 'IS_ERR_VALUE_U32'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                      ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
   drivers/bcma/scan.c:365:3: note: in expansion of macro 'if'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
      ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:365:19: note: in expansion of macro 'IS_ERR_VALUE_U32'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                      ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
   drivers/bcma/scan.c:365:3: note: in expansion of macro 'if'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
      ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:365:19: note: in expansion of macro 'IS_ERR_VALUE_U32'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                      ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
   drivers/bcma/scan.c:365:3: note: in expansion of macro 'if'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
      ^~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:365:19: note: in expansion of macro 'IS_ERR_VALUE_U32'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                      ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                                       ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
   drivers/bcma/scan.c:365:3: note: in expansion of macro 'if'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
      ^~
   include/linux/compiler.h:127:14: note: in expansion of macro 'likely_notrace'
       ______r = likely_notrace(x);   \
                 ^~~~~~~~~~~~~~
   include/linux/compiler.h:141:58: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
                                                             ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:29: note: in expansion of macro 'unlikely'
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                ^~~~~~~~
   drivers/bcma/scan.c:365:19: note: in expansion of macro 'IS_ERR_VALUE_U32'
      if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
                      ^~~~~~~~~~~~~~~~
   include/linux/err.h:23:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define IS_ERR_VALUE_U32(x) unlikely((unsigned int)(void *)(x) >= (unsigned int)-MAX_ERRNO)
                                         ^
   include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \

vim +/if +361 drivers/bcma/scan.c

517f43e5 Hauke Mehrtens 2011-07-23  345  	    )) {
517f43e5 Hauke Mehrtens 2011-07-23  346  		bcma_erom_skip_component(bus, eromptr);
517f43e5 Hauke Mehrtens 2011-07-23  347  		return -ENODEV;
517f43e5 Hauke Mehrtens 2011-07-23  348  	}
517f43e5 Hauke Mehrtens 2011-07-23  349  
8369ae33 Rafał Miłecki  2011-05-09  350  	/* get & parse master ports */
8369ae33 Rafał Miłecki  2011-05-09  351  	for (i = 0; i < ports[0]; i++) {
4e0d8cc1 Dan Carpenter  2011-08-23  352  		s32 mst_port_d = bcma_erom_get_mst_port(bus, eromptr);
982eee67 Hauke Mehrtens 2011-07-23  353  		if (mst_port_d < 0)
982eee67 Hauke Mehrtens 2011-07-23  354  			return -EILSEQ;
8369ae33 Rafał Miłecki  2011-05-09  355  	}
8369ae33 Rafał Miłecki  2011-05-09  356  
e167d9fb Hauke Mehrtens 2012-03-15  357  	/* First Slave Address Descriptor should be port 0:
e167d9fb Hauke Mehrtens 2012-03-15  358  	 * the main register space for the core
e167d9fb Hauke Mehrtens 2012-03-15  359  	 */
e167d9fb Hauke Mehrtens 2012-03-15  360  	tmp = bcma_erom_get_addr_desc(bus, eromptr, SCAN_ADDR_TYPE_SLAVE, 0);
aaa2ced1 Hauke Mehrtens 2013-09-07 @361  	if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
e167d9fb Hauke Mehrtens 2012-03-15  362  		/* Try again to see if it is a bridge */
e167d9fb Hauke Mehrtens 2012-03-15  363  		tmp = bcma_erom_get_addr_desc(bus, eromptr,
e167d9fb Hauke Mehrtens 2012-03-15  364  					      SCAN_ADDR_TYPE_BRIDGE, 0);
aaa2ced1 Hauke Mehrtens 2013-09-07  365  		if (tmp == 0 || IS_ERR_VALUE_U32(tmp)) {
e167d9fb Hauke Mehrtens 2012-03-15  366  			return -EILSEQ;
e167d9fb Hauke Mehrtens 2012-03-15  367  		} else {
3d9d8af3 Rafał Miłecki  2012-07-05  368  			bcma_info(bus, "Bridge found\n");
e167d9fb Hauke Mehrtens 2012-03-15  369  			return -ENXIO;

:::::: The code at line 361 was first introduced by commit
:::::: aaa2ced15ad8dca8048666c9f70736424d696a6b bcma: fix error code handling on 64 Bit systems

:::::: TO: Hauke Mehrtens <hauke@hauke-m.de>
:::::: CC: John W. Linville <linville@tuxdriver.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22582 bytes --]

      parent reply	other threads:[~2016-07-09 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-09 15:51 Arvind Yadav
2016-07-09 16:38 ` kbuild test robot
2016-07-09 17:05   ` arvind Yadav
2016-07-09 18:23 ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201607100229.1QmGOEYE%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arvind.yadav.cs@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=viresh.kumar@linaro.org \
    --cc=zajec5@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®