Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3266591pxk; Mon, 28 Sep 2020 12:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLtWsmLMsI5w8h2525I2nB9msmr2gOJ5WfpXkD5q6WWTW1Py/bHtidaKjL9XgSTa0x3vGB X-Received: by 2002:a17:906:a002:: with SMTP id p2mr316097ejy.399.1601322357515; Mon, 28 Sep 2020 12:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601322357; cv=none; d=google.com; s=arc-20160816; b=ZJlLXP21SnxeGkF9f1MQ7CUbKxPXWb6RIWysK7K+0aS1oXfQ21nQYYvCVa5Appr//l lCmtjeNZUcryGQ7H3Xygb70qhJmjcOTDyoA6a0hNTFAwwHfy1M9by1edkGSyQQEuOe6F lBC2o4A9QbQFwC4n2KyYlIH7pEDU/4+G0CRZxX1orJtD1bWrQLlxns7wQ79oPzrAVdsG sDBULpxn3Eoc1ovcKqLtY8tUhJWYLiXyygOM2eCEcJQ/ZyBHhJpoMZHBLCROcPznebBH V0ay1sn5+6tRffX4cYiqHwNi1pwiOPaV2h8UWU4IwbdSh+Rgcn6CFkT9WqvtNM4Ydvrn bTHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lT8dpMCWXyiJTBOWKJt9N6Fy96saBiwDJ+87LCe3ANA=; b=TrQU4yBXln0Bb+xJ4bwNv3lS4lIHLnBq1e/YJT48xCqtHUQ+iTtJF+PAsK0Y4tYLIo zMq5doJMsYuLfbrVUg4E8YnX9WTksXdgEp8O6EQgRkUayXbCeU4eJ7Kzcmp+iwIeY1UN Vk/Fhn3IU7jD3Yoeqi7J5mDZ2xODK15d6Sxa/z1TfyR9f+MaCBB6pgtIk8C4/I5DOuJy vcPN/aXu/zhLO8pV9R2+4flPBNvyfor7xxHtt8hCqBpVdgmNKYjcWQVrJ8AY+MNyvbuy tDwLjgM9HPhn2pOpv3hHufyFHfrqMbzv5PaiAELNwetQNYXv2d2wCpiVmiGhXIpx+qBr g3nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TGcxC8SY; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si1231985ejw.627.2020.09.28.12.45.20; Mon, 28 Sep 2020 12:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TGcxC8SY; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbgI1TpH (ORCPT + 99 others); Mon, 28 Sep 2020 15:45:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:41066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgI1TpH (ORCPT ); Mon, 28 Sep 2020 15:45:07 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D60972076A; Mon, 28 Sep 2020 19:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601322306; bh=MswvOek1LM+HkGpz4nTDDYzvgfCkDvIwe1J+Nrq/Mq4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TGcxC8SY6nQsGC+d1XCaaW+LqGCw1qF/RCtbJVib9rPc/HR2YL+9FIc0rHf6EP5px sOgtobaGA5VBIZmIiYsRLr+bjO7jioi0xcbEXDcinIweVUe7SCkjIAFCttYwwC2ec9 1/FQA4AzdDgrWZZpKC6F4zpz7VcX1ZsUcjNp5iZ0= Date: Mon, 28 Sep 2020 12:45:04 -0700 From: Jakub Kicinski To: Howard Chung Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, alainm@chromium.org, mcchou@chromium.org, mmandlik@chromium.orgi, "David S. Miller" , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v6 4/4] Bluetooth: Add toggle to switch off interleave scan Message-ID: <20200928124504.617d92da@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200928154107.v6.4.I756c1fecc03bcc0cd94400b4992cd7e743f4b3e2@changeid> References: <20200928154107.v6.1.Ib75f58e90c477f9b82c5598f00c59f0e95a1a352@changeid> <20200928154107.v6.4.I756c1fecc03bcc0cd94400b4992cd7e743f4b3e2@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Mon, 28 Sep 2020 15:41:21 +0800 Howard Chung wrote: > This patch add a configurable parameter to switch off the interleave > scan feature. >=20 > Signed-off-by: Howard Chung > Reviewed-by: Alain Michaud This seems to cause new warnings on W=3D1 C=3D1 builds: In file included from ../net/bluetooth/mgmt_config.c:7: net/bluetooth/mgmt_config.c: In function =E2=80=98set_def_system_config=E2= =80=99: include/net/bluetooth/bluetooth.h:186:10: warning: format =E2=80=98%zu=E2= =80=99 expects argument of type =E2=80=98size_t=E2=80=99, but argument 4 ha= s type =E2=80=98int=E2=80=99 [-Wformat=3D] 186 | BT_WARN("%s: " fmt, (hdev)->name, ##__VA_ARGS__) | ^~~~~~ include/net/bluetooth/bluetooth.h:174:35: note: in definition of macro =E2= =80=98BT_WARN=E2=80=99 174 | #define BT_WARN(fmt, ...) bt_warn(fmt "\n", ##__VA_ARGS__) | ^~~ net/bluetooth/mgmt_config.c:165:4: note: in expansion of macro =E2=80=98bt_= dev_warn=E2=80=99 165 | bt_dev_warn(hdev, "invalid length %d, exp %zu for type %d", | ^~~~~~~~~~~ net/bluetooth/mgmt_config.c:79:17: warning: incorrect type in initializer (= different base types) net/bluetooth/mgmt_config.c:79:17: expected restricted __le16 [usertype]= type net/bluetooth/mgmt_config.c:79:17: got int net/bluetooth/mgmt_config.c:79:17: warning: incorrect type in initializer (= different base types) net/bluetooth/mgmt_config.c:79:17: expected restricted __le16 [usertype]= value_le16 net/bluetooth/mgmt_config.c:79:17: got unsigned char [usertype]=20