From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5222C19F2D for ; Thu, 11 Aug 2022 20:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235721AbiHKUhK (ORCPT ); Thu, 11 Aug 2022 16:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiHKUhI (ORCPT ); Thu, 11 Aug 2022 16:37:08 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EF8C95AF7; Thu, 11 Aug 2022 13:37:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id A0FFECE2210; Thu, 11 Aug 2022 20:37:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53367C433C1; Thu, 11 Aug 2022 20:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660250224; bh=iAHSIcwc9lbNY2SNrS1flvARRGdNR3L+I0y3PoflCcI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HMjG+IDKqiprCA8C+eGLm7H7/UfNH7v7if4AvU6pWjH8Zo5AXbGeyAmrCYLv/FjJU btx354rFfR3j4/k4qFoanNIdC198ZccrwpuH8cijfn5l0iWk5eHSvz/vWcTl2eqLrj Vx0MBtPgwt163EyamiO2U0jbNZbIEnIa61fV7lHisOINxgxE6EpzceIe+B04Q20Hpz kJoxm5W9sobbU+QIke9mz3rIp1Qt3161bilb54A01bDeE0lWUsDxohzKYCz98pIoMa ndVaG0UJFntMQhdI78IeHdzCw9HinC6CyTbfK7EfyiOHZ/yZj4QGYbhrqqqMOuVpGC CN/HHmR/Pyslw== Date: Thu, 11 Aug 2022 13:37:03 -0700 From: Jakub Kicinski To: Luiz Augusto von Dentz Cc: "Sudip Mukherjee (Codethink)" , Luiz Augusto von Dentz , Johan Hedberg , Marcel Holtmann , "David S. Miller" , Eric Dumazet , Paolo Abeni , Linux Kernel Mailing List , "open list:NETWORKING [GENERAL]" , "linux-bluetooth@vger.kernel.org" , linux-next@vger.kernel.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org Subject: Re: build failure of next-20220811 due to 332f1795ca20 ("Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression") Message-ID: <20220811133703.30fb948e@kernel.org> In-Reply-To: References: <20220811124637.4cdb84f1@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 11 Aug 2022 13:20:52 -0700 Luiz Augusto von Dentz wrote: > > +static inline int ba_is_any(const bdaddr_t *ba) > > +{ > > + return memchr_inv(ba, sizeof(*ba), 0); > > +} > > So we can't use something like BDADDR_ANY to compare? Anyway afaik > these were already present before the patch so I do wonder what had > trigger it show now or perhaps it was being suppressed before and > since we change it now start showing again? Yeah, I mentioned that in my previous reply as well, a quick grep counts 70 instances, IDK what makes the l2cap code different :S Then again I don't know how the compiler deals with passing a pointer to a constant to an inline function.... so I figured memchr_inv() could help us avoid hitting compiler bugs.