Hi SpoorthiX, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bluetooth-next/master] [also build test WARNING on v5.1-rc1 next-20190318] [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/SpoorthiX-K/Add-support-for-LE-ping-feature/20190319-031345 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' sparse warnings: (new ones prefixed by >>) include/linux/overflow.h:285:13: sparse: undefined identifier '__builtin_mul_overflow' include/linux/overflow.h:285:13: sparse: incorrect type in conditional include/linux/overflow.h:285:13: got void include/linux/overflow.h:287:13: sparse: undefined identifier '__builtin_add_overflow' include/linux/overflow.h:287:13: sparse: incorrect type in conditional include/linux/overflow.h:287:13: got void include/linux/overflow.h:285:13: sparse: not a function <noident> include/linux/overflow.h:285:13: sparse: incorrect type in conditional include/linux/overflow.h:285:13: got void include/linux/overflow.h:287:13: sparse: not a function <noident> include/linux/overflow.h:287:13: sparse: incorrect type in conditional include/linux/overflow.h:287:13: got void >> net/bluetooth/hci_event.c:4828:32: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [unsigned] [usertype] conn_handle @@ got short [unsigned] [usertype] conn_handle @@ net/bluetooth/hci_event.c:4828:32: expected unsigned short [unsigned] [usertype] conn_handle net/bluetooth/hci_event.c:4828:32: got restricted __le16 [usertype] <noident> include/linux/overflow.h:285:13: sparse: call with no type! include/linux/overflow.h:287:13: sparse: call with no type! vim +4828 net/bluetooth/hci_event.c 4818 4819 static void hci_write_auth_payload_to (struct hci_dev *hdev, struct hci_conn *conn) 4820 { 4821 struct hci_cp_write_auth_payload_to cp; 4822 4823 /* Check for existing LE link established between local 4824 * and remote device, also check the controller capability 4825 * for LE Ping. 4826 */ 4827 if ((conn->type == LE_LINK) && (lmp_ping_capable(hdev))) { > 4828 cp.conn_handle = cpu_to_le16(conn->handle); 4829 cp.timeout = AUTHENTICATED_PAYLOAD_TIMEOUT; 4830 hci_send_cmd(conn->hdev, HCI_OP_WRITE_AUTH_PAYLOAD_TO, 4831 sizeof(cp), &cp); 4832 } 4833 } 4834 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation