Linux bluetooth development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Felipe F. Tonello" <eu@felipetonello.com>
Cc: kbuild-all@01.org, linux-bluetooth@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Marcel Holtmann <marcel@holtmann.org>,
	Johan Hedberg <johan.hedberg@gmail.com>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Subject: Re: [PATCH v5 BlueZ 4/4] Bluetooth: Handle Slave Connection Interval Range AD
Date: Fri, 14 Apr 2017 06:04:02 +0800	[thread overview]
Message-ID: <201704140542.PIMIUBDA%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170413122203.4247-5-eu@felipetonello.com>

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

Hi Felipe,

[auto build test WARNING on bluetooth/master]
[also build test WARNING on v4.11-rc6 next-20170413]
[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/Felipe-F-Tonello/Connection-Update-improvements/20170414-030326
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:4:0,
                    from include/uapi/linux/byteorder/big_endian.h:12,
                    from include/linux/byteorder/big_endian.h:4,
                    from arch/xtensa/include/uapi/asm/byteorder.h:7,
                    from arch/xtensa/include/asm/bitops.h:23,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from net/bluetooth/mgmt.c:27:
   net/bluetooth/mgmt.c: In function 'has_eir_slave_conn_int':
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:103:32: note: in definition of macro '__swab16'
     (__builtin_constant_p((__u16)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:13:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0x00ffU) << 8) |   \
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:14:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0xff00U) >> 8)))
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:105:12: note: in definition of macro '__swab16'
     __fswab16(x))
               ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:103:32: note: in definition of macro '__swab16'
     (__builtin_constant_p((__u16)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:13:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0x00ffU) << 8) |   \
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:14:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0xff00U) >> 8)))
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:105:12: note: in definition of macro '__swab16'
     __fswab16(x))
               ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net/bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
--
   In file included from include/linux/swab.h:4:0,
                    from include/uapi/linux/byteorder/big_endian.h:12,
                    from include/linux/byteorder/big_endian.h:4,
                    from arch/xtensa/include/uapi/asm/byteorder.h:7,
                    from arch/xtensa/include/asm/bitops.h:23,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from net//bluetooth/mgmt.c:27:
   net//bluetooth/mgmt.c: In function 'has_eir_slave_conn_int':
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:103:32: note: in definition of macro '__swab16'
     (__builtin_constant_p((__u16)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:13:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0x00ffU) << 8) |   \
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:14:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0xff00U) >> 8)))
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:105:12: note: in definition of macro '__swab16'
     __fswab16(x))
               ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7474:16: note: in expansion of macro 'le16_to_cpu'
       *min_conn = le16_to_cpu(&data[0]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:103:32: note: in definition of macro '__swab16'
     (__builtin_constant_p((__u16)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:13:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0x00ffU) << 8) |   \
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:14:12: note: in definition of macro '___constant_swab16'
     (((__u16)(x) & (__u16)0xff00U) >> 8)))
               ^
   include/uapi/linux/byteorder/big_endian.h:35:26: note: in expansion of macro '__swab16'
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                             ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^
>> include/uapi/linux/byteorder/big_endian.h:35:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
                                                     ^
   include/uapi/linux/swab.h:105:12: note: in definition of macro '__swab16'
     __fswab16(x))
               ^
   include/linux/byteorder/generic.h:90:21: note: in expansion of macro '__le16_to_cpu'
    #define le16_to_cpu __le16_to_cpu
                        ^
   net//bluetooth/mgmt.c:7475:16: note: in expansion of macro 'le16_to_cpu'
       *max_conn = le16_to_cpu(&data[2]);
                   ^

vim +35 include/uapi/linux/byteorder/big_endian.h

5921e6f8 David Howells  2012-10-13  19  #define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x))
5921e6f8 David Howells  2012-10-13  20  #define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x)))
5921e6f8 David Howells  2012-10-13  21  #define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x))
5921e6f8 David Howells  2012-10-13  22  #define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x)))
5921e6f8 David Howells  2012-10-13  23  #define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x))
5921e6f8 David Howells  2012-10-13  24  #define __constant_cpu_to_be64(x) ((__force __be64)(__u64)(x))
5921e6f8 David Howells  2012-10-13  25  #define __constant_be64_to_cpu(x) ((__force __u64)(__be64)(x))
5921e6f8 David Howells  2012-10-13  26  #define __constant_cpu_to_be32(x) ((__force __be32)(__u32)(x))
5921e6f8 David Howells  2012-10-13  27  #define __constant_be32_to_cpu(x) ((__force __u32)(__be32)(x))
5921e6f8 David Howells  2012-10-13  28  #define __constant_cpu_to_be16(x) ((__force __be16)(__u16)(x))
5921e6f8 David Howells  2012-10-13  29  #define __constant_be16_to_cpu(x) ((__force __u16)(__be16)(x))
5921e6f8 David Howells  2012-10-13  30  #define __cpu_to_le64(x) ((__force __le64)__swab64((x)))
5921e6f8 David Howells  2012-10-13  31  #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
5921e6f8 David Howells  2012-10-13  32  #define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
5921e6f8 David Howells  2012-10-13  33  #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
5921e6f8 David Howells  2012-10-13  34  #define __cpu_to_le16(x) ((__force __le16)__swab16((x)))
5921e6f8 David Howells  2012-10-13 @35  #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
5921e6f8 David Howells  2012-10-13  36  #define __cpu_to_be64(x) ((__force __be64)(__u64)(x))
5921e6f8 David Howells  2012-10-13  37  #define __be64_to_cpu(x) ((__force __u64)(__be64)(x))
5921e6f8 David Howells  2012-10-13  38  #define __cpu_to_be32(x) ((__force __be32)(__u32)(x))
5921e6f8 David Howells  2012-10-13  39  #define __be32_to_cpu(x) ((__force __u32)(__be32)(x))
5921e6f8 David Howells  2012-10-13  40  #define __cpu_to_be16(x) ((__force __be16)(__u16)(x))
5921e6f8 David Howells  2012-10-13  41  #define __be16_to_cpu(x) ((__force __u16)(__be16)(x))
5921e6f8 David Howells  2012-10-13  42  
bc27fb68 Denys Vlasenko 2016-03-17  43  static __always_inline __le64 __cpu_to_le64p(const __u64 *p)

:::::: The code at line 35 was first introduced by commit
:::::: 5921e6f8809b1616932ca4afd40fe449faa8fd88 UAPI: (Scripted) Disintegrate include/linux/byteorder

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.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/gzip, Size: 49076 bytes --]

      parent reply	other threads:[~2017-04-13 22:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 12:21 [PATCH v5 BlueZ 0/4] Connection Update improvements Felipe F. Tonello
2017-04-13 12:22 ` [PATCH v5 BlueZ 1/4] Bluetooth: L2CAP: Refactor L2CAP_CONN_PARAM_UPDATE_REQ into a function Felipe F. Tonello
2017-04-13 12:22 ` [PATCH v5 BlueZ 2/4] Bluetooth: L2CAP: Add handler for Connection Parameter Update Response Felipe F. Tonello
2017-04-13 12:22 ` [PATCH v5 BlueZ 3/4] Bluetooth: L2CAP: Add BT_LE_CONN_PARAM socket option Felipe F. Tonello
2017-04-13 12:22 ` [PATCH v5 BlueZ 4/4] Bluetooth: Handle Slave Connection Interval Range AD Felipe F. Tonello
2017-04-13 18:24   ` Vinicius Costa Gomes
2017-04-13 18:40     ` Luiz Augusto von Dentz
2017-04-13 20:01   ` kbuild test robot
2017-04-13 22:04   ` 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=201704140542.PIMIUBDA%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=eu@felipetonello.com \
    --cc=johan.hedberg@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    /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