Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp485480pxb; Mon, 8 Nov 2021 17:09:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZIGX8Dna7yC7oi/xzaVkeKhre2MewyHJACUNH0+WaTDfjs4AH+snGQgthVo0G+QLmQcOC X-Received: by 2002:a05:6402:71a:: with SMTP id w26mr4697520edx.394.1636420147565; Mon, 08 Nov 2021 17:09:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636420147; cv=none; d=google.com; s=arc-20160816; b=Bs0o4wtTOEFd8Xs0BtaSrjvtpjBZMB6OBdf3cCKY83YMTNWZkIx5563/hbQm9xkGu7 w0s0nsojuak8ejTsvQbCGMV9pjOhZonxVLLB4+4Y1Hx2SmrJxg5B6CPbv6yCvq1A4IX3 KBSotn1c66G/P1dDj5M3Wdpm5CIcD45pop4+Ega3E9BG9IG+9TvvoXAf9gx/NLhZpf54 ggfe/qMFmdu2WaSDCdimqsgkooUg7+WorguDeOsFsnS4rx8x/Z89d3YPLgqcSKI1aNbn SyqTmvS/2J57hv4uv/Wy0lHchMR9r79R3HsD8ffRA/VxH5Rri0tmFdWwKnRjyPJaX2hn Idkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=OHXQVVugqLEZabs4XAPu6SxuojvcV+gl3GjwwPy2W6U=; b=yvR4E+OehvpiyKXzAa39cBOPV2jC6wmoau/BDiCqVF66/Zs8zV0UvESb65tRvwnDyF M3c20lyWPaM1AqgbP+lHU+KwmqPmMdFCDMwAexFObEsjFmSgACzKnlAPkGqKYapG8Klb v6+tCZcP5EoArmsG0vQO8oqgyE6gztMps5fiORUpcPMrE5YXafkmlY/EsooLTRiL+00A TrfCac+Xd3qDxD5rSt6LXJxs457LDjZ94/pnHYYQhK/oixmLNEopq9mAsTPzPxF2S65r LyB7RClBNorBCtkUvZ5e9JouUJ5VSmzBDtA5WrmjHd60+PWOU0zAJ/rUOkTswdL0rKBS db2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GgP3yX+2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si28783731edb.127.2021.11.08.17.08.42; Mon, 08 Nov 2021 17:09:07 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GgP3yX+2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239546AbhKHXrl (ORCPT + 99 others); Mon, 8 Nov 2021 18:47:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbhKHXrk (ORCPT ); Mon, 8 Nov 2021 18:47:40 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC37BC061570; Mon, 8 Nov 2021 15:44:55 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id 127so17606424pfu.1; Mon, 08 Nov 2021 15:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=OHXQVVugqLEZabs4XAPu6SxuojvcV+gl3GjwwPy2W6U=; b=GgP3yX+2RJ0qVe/n8jcElv+We0+LJBP1sfm8YckQ5tdrUWzNs30Tm1dCOfuuqF0aG2 f5+1C/Gojs9C8EywY/XJ4Ffak+4Nd12FjylHL20kfId99LoumkL/Lnv4+fK12HzKda3V H6qoCRYpjGOeIt7+IJJzmWLKm7aERtRuJwAEekn/IsIdbaeR9x7tRZ8BMACDrrq0wZIb q+IPlgyQGPtbbxHdnveAOFGEzQn7Z4NJMvxZ/9mP7tcltN4PuAJHAD2F0UM0kZhQvo6U bZ3N4JR44V0rkL8Ogza9eYCB9QfSowGRK/7+56nuZpM7sgxyF668tisbyQ+WgB3Fz0YW 6SLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OHXQVVugqLEZabs4XAPu6SxuojvcV+gl3GjwwPy2W6U=; b=I/3t6nFRd1pzdenXpUJdXwTDatUEXX4Bl396+YvKqIhdz8yB0x0d31wwWBuDmV9tj2 Ej4UMqfCOi3I0rwBnztH2ILIkxc73ZjnpQ/5U2ujyRvoKyOy0MUBEhhMsHDDyPDzTxd8 mdfjl6Yi3lFuJrFYSkLjROL9ycqcjAn1PpMmtu8zXYSLsCWwpPPFnFRyzrMZwWyGWkCB GCMJwDDRn34x6fkAInAyWLYtakSj7sxCFEu+x16TTaMUC8IC17rawCAAIiY/eNPc23Rb YFDb7r9LsZjvpDujfiJOWz28Bsms74YKJKHGz1Z/6VMw6Om6IXm10hQ87Y9M3HYP5/Br llGw== X-Gm-Message-State: AOAM530W79/itIQVxMpATSp0ooJa3M1/quPq+qEg5P7z6jKKmzxkG7Yp NFiTgorc4wygjowx+s1shkJoWJzMgRw= X-Received: by 2002:a63:455f:: with SMTP id u31mr2572185pgk.206.1636415095093; Mon, 08 Nov 2021 15:44:55 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id p14sm394627pjb.9.2021.11.08.15.44.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 15:44:54 -0800 (PST) Subject: Re: [PATCH] PCI: brcmstb: Declare a bitmap as a bitmap, not as a plain 'unsigned long' To: Christophe JAILLET , nsaenz@kernel.org, jim2101024@gmail.com, bcm-kernel-feedback-list@broadcom.com, lorenzo.pieralisi@arm.com, robh@kernel.org, kw@linux.com, bhelgaas@google.com Cc: 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 References: From: Florian Fainelli Message-ID: Date: Mon, 8 Nov 2021 15:44:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/7/21 1:32 AM, Christophe JAILLET wrote: > The 'used' field of 'struct brcm_msi' is used as a bitmap. So it should > be declared as so (i.e. unsigned long *). > > This fixes an harmless Coverity warning about array vs singleton usage. > > This bitmap can be BRCM_INT_PCI_MSI_LEGACY_NR or BRCM_INT_PCI_MSI_NR long. > So, while at it, document it, should it help someone in the future. > > Addresses-Coverity: "Out-of-bounds access (ARRAY_VS_SINGLETON)" > Suggested-by: Krzysztof Wilczynski > Signed-off-by: Christophe JAILLET Reviewed-by: Florian Fainelli -- Florian