Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp746210pxb; Mon, 8 Nov 2021 22:42:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJVGwcLQiLuzxph9FwWQkGO7738pCMBJF0pao+wHRZhLMy6/NOF1wDQu57VMPlT4rXHEY7 X-Received: by 2002:a05:6402:40c5:: with SMTP id z5mr6949600edb.185.1636440158340; Mon, 08 Nov 2021 22:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636440158; cv=none; d=google.com; s=arc-20160816; b=as/SMubv4pV6rcNZNcvnryBSlhx/730/fjDGABG4A6oiEZ2s7a2UJe5bC8KQ4LOEFs ef37IoPZaJdlWODgSpyGM0A7JZ774f132sDQeQ02/lMlyXGvvrPKM36c62vVwKEhPt1D cWWduCjReXdcezGv532rTNfHB+IpeRtKdTdnB6sDsyqbr4fHtrPJUrkTmeD+kGBh2+yO CQVm6jinT7BxSv+YUp8FCNXun2YHCBX9mrv+UhNDx6SwTlLKjb2q2oUDFVGJ/FhYz2Xw vUWStHTH6s99Yk3ixd/Tv9FaV1+N0M7wuzE1tYZ/13AlmLejzY/3DEWD1AAvdVf4jimx eRhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=4CObGnDxrsjK7sTGFat7Zks+uHyi7ssYo0SjQ3zRggg=; b=ssjfrpGjXnukjeH8HCyfJvG/08Ik407IXchJMXZ6ZidhU2kVM0HxcOCbPLgwvlRoXH y8ZZxfF4jkqr/prP6cUMaHj7npfAay1e512QbyHSmmQok9aQtJAVJ8dZBzX5BPJCqRmI +jYlM3+EVekUL4+RICsF6e9T0L0hAe8s1+fgW9LPOUR1W6XyB4JjiVvKEG8mwQaxS4EW j8BDnWELkEgJ0iPbD66HJ/Pse9EMQ7sQaGkrZRvwjwH64j9P//LMlcZDr6ne+sUjhMMP Uh0d0bWot3fLpQD/AEHFXo4cMyjXIphp7zOd7IHmumOgwt5AKsJhWRdxo/ZQm1wfDdnB kA6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si33198229edc.23.2021.11.08.22.42.13; Mon, 08 Nov 2021 22:42:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241051AbhKHX6Y (ORCPT + 99 others); Mon, 8 Nov 2021 18:58:24 -0500 Received: from mail-lf1-f44.google.com ([209.85.167.44]:45044 "EHLO mail-lf1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238960AbhKHX6Y (ORCPT ); Mon, 8 Nov 2021 18:58:24 -0500 Received: by mail-lf1-f44.google.com with SMTP id y26so40004890lfa.11; Mon, 08 Nov 2021 15:55:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4CObGnDxrsjK7sTGFat7Zks+uHyi7ssYo0SjQ3zRggg=; b=gzsMerwGaPJDiyUAqTqq5Xn/NDL+5DGNMCe4sKO7hL4qYVmJLLcEv0KbrYXT5L/fir 6aBOOEtp0ixS+gWqbq87MAFoEizenSZYlgbpZvgg21p1PqtB+5tS92IDW+jmNOgrQs8u 2NI7rwxauQK+J05mct39W0k3vR2tYRyZB5SBI671g4dng8wQk7TCMLAUZ7uNRtQonIil SsegP22JmTuI4/L0nn7sp0mkyI4uwqf3lvAUTxY0chmJMkwomGBzqli27n1vPY992H1V khNvKf5gdVqjzSKeOv6SUhYXkVXQsf0OeTXogbsPTCceSuoKrWlgeJljwqpqgJzFh66W IHow== X-Gm-Message-State: AOAM530DS3MsrhGNXFBBFER1rDE69h3ljLkq129lrLStlVSqScjM++0W q4UGtSvVFziRXf+WZwIgr3o= X-Received: by 2002:a05:6512:4012:: with SMTP id br18mr2989138lfb.674.1636415737667; Mon, 08 Nov 2021 15:55:37 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id l10sm288823lfg.125.2021.11.08.15.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 15:55:37 -0800 (PST) Date: Tue, 9 Nov 2021 00:55:36 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Florian Fainelli Cc: Christophe JAILLET , nsaenz@kernel.org, jim2101024@gmail.com, bcm-kernel-feedback-list@broadcom.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] PCI: brcmstb: Declare a bitmap as a bitmap, not as a plain 'unsigned long' Message-ID: References: <4d556ac3-b936-b99c-5a50-9add8607047d@gmail.com> <4997ef3c-5867-7ce0-73a2-f4381cf0879b@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, [...] > >>>> Jim, Florian and Lorenzo - is this something that would be OK with you, > >>>> or you would rather keep things as they were? > >>> > >>> I would be tempted to leave the code as-is, but if we do we are probably > >>> bound to seeing patches like Christophe's in the future to address the > >> > >> Even if I don't find this report in the Coverity database, it should from > >> around April 2018. > >> So, if you have not already received several patches for that, I doubt that > >> you will receive many in the future. > >> > >> > >> My own feeling is that using a long (and not a long *) as a bitmap, and > >> accessing it with &long may look spurious to a reader. > >> That said, it works. > >> > >> So, I let you decide if the patch is of any use. Should I need to tweak or > >> resend it, let me know. > > > > I would be pro taking it, not only to addresses the Coverity complaint, but > > also to align the code with other drivers a little bit more. Only if > > the driver maintainers have no objection, that is. > > Driver consistency is a strong argument, fine with me then. Thank you! Krzysztof