Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5147291rwe; Tue, 18 Apr 2023 02:46:22 -0700 (PDT) X-Google-Smtp-Source: AKy350beH0oVxLgqU+wGlnX57aL1QPSb2Pz7V/2NJvewuBLFiV9xfV6WFg+3eGh468dypdTfBKa/ X-Received: by 2002:a05:6a00:24d2:b0:63d:3765:dc8e with SMTP id d18-20020a056a0024d200b0063d3765dc8emr2688827pfv.32.1681811181706; Tue, 18 Apr 2023 02:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681811181; cv=none; d=google.com; s=arc-20160816; b=aNtSCOt1YXWnW6TNnadpF97d8Iz4tqUJjVvJNJ3ro7D1jtyuqfvG98FkbOCvyYuc1a 2bGVYIUTsP4YmW9WlI9rWL/nwG1IidREIoRFTbh59uRSOyzycZ32jkgvcgqJ5tzPy/5B 5DZ8n7h2p5wRwH+Vhpc8EyP152LLSVzpA1paysVODq8M5J2NmeUdGKQPvGNYOU5XfTB5 Xsj/gwHngfJudKKsv/rvdKAB6PBMrHdlDLU5NOzg0Mk9feDWOd4FEuk+5O7wZGe7JI0A 4TEaVPtij4bKpYqXKzWta8K46RDvYx/PbgQJxJWNgRMPk6Fsdb7iBrpLXulpLoSjbGNa 3gHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=Gqp/tgv/IavuCwItrjfgNd0T+CpP+agWb3XnHjyd3Ro=; b=c2hdwS17XkiEnwtM+XlgPiteVxbv2886eQDVNsuclKnXNb7PJOloDZgGzZi+PLJo/L 8YWn27ySMqW2smT3KOjouSqWRQvXbZbXi/zlWsbIWGdLDK5PWQ7C0GhWx1rKHadkL2+a AwSu1WCIUdhc8gsu1HI2bOs7+RoKL0EGgxJdoIaj2//HVVHumXaxTxAB3cN/VHfdYleD q3XaLaWrvF+/kcBnGcrEvq54/lq66vyt+Os5FyxYyfPznSW17VkoHH2pkZmB5Xr5h0HN p8B443mRxA3BJIobXGCthXZHs7RPkNIqQFRvqtnZu1dUvwWA4CElxiX/1jHmBjCPX4J+ lFzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a632a04000000b0051f0d230ec5si2401543pgq.708.2023.04.18.02.46.08; Tue, 18 Apr 2023 02:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjDRJm5 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Apr 2023 05:42:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231325AbjDRJmS (ORCPT ); Tue, 18 Apr 2023 05:42:18 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AA62107; Tue, 18 Apr 2023 02:42:10 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pohqe-003U8u-HX; Tue, 18 Apr 2023 11:42:04 +0200 Received: from p5b13a017.dip0.t-ipconnect.de ([91.19.160.23] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1pohqe-0022J9-9Z; Tue, 18 Apr 2023 11:42:04 +0200 Message-ID: Subject: Re: [PATCH RESEND] sh: sq: Use the bitmap API when applicable From: John Paul Adrian Glaubitz To: Dan Carpenter Cc: Christophe JAILLET , Yoshinori Sato , Rich Felker , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-sh@vger.kernel.org, Geert Uytterhoeven Date: Tue, 18 Apr 2023 11:42:03 +0200 In-Reply-To: <837e9f5e-ca8d-4c93-9a89-d7bdb9bb0240@kili.mountain> References: <071e9f32c19a007f4922903282c9121898641400.1681671848.git.christophe.jaillet@wanadoo.fr> <14788dbc-c2a6-4d1d-8ae3-1be53b0daf17@kili.mountain> <837e9f5e-ca8d-4c93-9a89-d7bdb9bb0240@kili.mountain> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.0 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.160.23 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-kernel@vger.kernel.org Hi Dan! On Tue, 2023-04-18 at 12:39 +0300, Dan Carpenter wrote: > On Tue, Apr 18, 2023 at 10:30:01AM +0300, Dan Carpenter wrote: > > I have some unpublished Smatch stuff which tries to track "variable x > > is in terms of bit units or byte units etc." I will try to make a > > static checker rule for this. > > Attached. It prints a warning like this: > > drivers/net/ethernet/broadcom/cnic.c:667 cnic_init_id_tbl() warn: allocating units of longs instead of bytes 'test_var' > > I'll test it out tonight. Nice job, thanks for creating this very handy script! Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913