Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6210358rwd; Wed, 24 May 2023 12:20:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IAB1Ee9/OMizuaV0n53PRi3aohbhM05aucMqd1IFQZoOj+kU46EQTGo6n032gQ9MSlLyF X-Received: by 2002:a05:6a20:a299:b0:10a:e73d:2572 with SMTP id a25-20020a056a20a29900b0010ae73d2572mr11444050pzl.3.1684956059227; Wed, 24 May 2023 12:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684956059; cv=none; d=google.com; s=arc-20160816; b=HuCf3cYjFiVg8SBlH1EliPGAlKAbYMqTAlnnhPhWLdDMI6qVqQiICxYLg3lYUHjv9+ t8kzTEez5Ievxu7dyyX5fRjdumofEm9+tZgO6qdKT/oerl2BSGHofjNGP9fMb+NF63NQ UZLUt79Ovu7y6t/pU3wkTxoSoy0nDxkF0MgoLsuVcsRHVjv6KeLdN2cT0YSply8mDoem vpvifD5lfvYCtyTY2Xt3NFoWcI/TePqqmi81D8orGZAlJzXCK4l7PgMkex3NiBmU50tD 0D9ViAI2IM+niUw9ovjuGGaJd/3c0o3/A/jDQmDvZNLyffOTsu8OpOI0TVxqGbhkUjhm K3Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5kHhy/KjkX7HKvd1sjw8RkovkQ8NO20aP5vVF4eORGY=; b=NvH5ZXz9rT4SA8waQxLYTFdssk2Hs6gJD1ICFjwG/WiUkBONu20ubLN4ZOXlb+dsuU G+Ugs/ZV+qwbbW/Sw9TU5T1XFO7ZMiD1ReANzFymzTvGVCR/rsNsPB3dTzxLiOFIE0bh Di5HKs9+EEJGmhZiKMqM7gNzFcCMU6T7c9UH5NDGk1bSxlamp832FozWkaHcT+yUqOee otrz7xJ4S9A1D24N39D6aw2MfA7M/AvC5kCU42GQFHfILnvLcJn3z7VGBnzFVYGiMRQm EmrJwQE9GwqFrPgyPiy0WnGDGIE/N3r1ePDcY/yROFBtLyC2eqegRIjVvBVjR5ubH+Wl xQQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WpkE4JpD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv190-20020a632ec7000000b0053427a98b7asi9072889pgb.146.2023.05.24.12.20.37; Wed, 24 May 2023 12:20:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WpkE4JpD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjEXTLZ (ORCPT + 99 others); Wed, 24 May 2023 15:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjEXTLY (ORCPT ); Wed, 24 May 2023 15:11:24 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C3EB12B for ; Wed, 24 May 2023 12:11:23 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2af2db78b38so16631081fa.3 for ; Wed, 24 May 2023 12:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684955481; x=1687547481; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5kHhy/KjkX7HKvd1sjw8RkovkQ8NO20aP5vVF4eORGY=; b=WpkE4JpD9r43JYiObEzzDslGHXiOriDbDDa9icWNWxrwWA8OZKulijsrpgxdDh0rlv /U+O1HyigAOP+mkvmxF2t7lAqNbxmnIvZvC7JTT62z8bL4QzsoWWCG8wydXWoPXlO0fZ BBuQBdDSahCRfobYJeLWwShie2U/7Kiz51Ob0O24Bo+Z0owS32VB+vhXgoLSKZO/RNFI wK5aWkwdM+Q6qMPceYwffkPpqRiYN8kberkWijFlUfx/2HZKTSvJkzvTKsJ5ggMDX+7L KvQ7q3qUaM6EaM/N3X+q2yRaBSCCRwGfCif6TO6R3RWHvDgq7/l5PxY4QLmbINihWXDs QNDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684955481; x=1687547481; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5kHhy/KjkX7HKvd1sjw8RkovkQ8NO20aP5vVF4eORGY=; b=k7EsfLXun+xrDiYI8Iooh/HEOGDlgCbixv5j56BejwIU8GRzM5AcNXtnk84dt10Ss/ GK9doOBXvCSfkpz6u9T7OWvPa0jxV5tL4ZllDflB+7RRWbpX6+AmwqI9GtKKU7F0jjPe UrLc18+P+gDAqqSA6VpacEVxYgr9+OIWVkzH0Cztj1hYfoA3NnoN+4OuN4ZfIG0vMTLl q5M5+8VAvPbG+itWVYZ5rdq6DTmcP7jm9Xcd20WiXgZqd5+1daDGBon9dRnmIFAsDi3Z Cpwb7sbhjEzNyhoSBPRJiwApCX0qU4nW5oB66wtbmyptJkrB0JkGznQ5BkGigdDQyDqc 1Yew== X-Gm-Message-State: AC+VfDzAtDIYZkYiTuLHJnq58meG2ehjOH/PuPmqMXzZ2DCmgTm0TDL/ cNTojIo3uOKiMIIEi7EzpS5kI62XTPewuCaw8JQ= X-Received: by 2002:a2e:7004:0:b0:2a7:974d:a461 with SMTP id l4-20020a2e7004000000b002a7974da461mr216275ljc.34.1684955480871; Wed, 24 May 2023 12:11:20 -0700 (PDT) MIME-Version: 1.0 References: <744fd69a-c5a3-4e0f-8c47-33096a1cd374@kili.mountain> In-Reply-To: <744fd69a-c5a3-4e0f-8c47-33096a1cd374@kili.mountain> From: Luiz Augusto von Dentz Date: Wed, 24 May 2023 12:11:08 -0700 Message-ID: Subject: Re: [bug report] Bluetooth: Add initial implementation of BIS connections To: Dan Carpenter Cc: luiz.von.dentz@intel.com, linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Dan, On Tue, May 23, 2023 at 11:52=E2=80=AFPM Dan Carpenter wrote: > > On Wed, May 24, 2023 at 09:38:34AM +0300, Dan Carpenter wrote: > > Hello Luiz Augusto von Dentz, > > > > The patch eca0ae4aea66: "Bluetooth: Add initial implementation of BIS > > connections" from Mar 9, 2022, leads to the following Smatch static > > checker warning: > > > > net/bluetooth/hci_conn.c:943 hci_le_remove_cig() > > warn: passing zero to 'ERR_PTR' > > > > net/bluetooth/hci_conn.c > > 939 static int hci_le_remove_cig(struct hci_dev *hdev, u8 handle) > > ^^^^^^^^^^ > > > > 940 { > > 941 bt_dev_dbg(hdev, "handle 0x%2.2x", handle); > > 942 > > --> 943 return hci_cmd_sync_queue(hdev, remove_cig_sync, ERR_PT= R(handle), NULL); > > = ^^^^^^ > > handle is a u8. It can hold error codes. > > s/can/cannot/. This is not used as an error though, it is more like INT_PTR, that said I'm fine changing it if that is triggering static analyzer errors. > regards, > dan carpenter > --=20 Luiz Augusto von Dentz