[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aeebbd5f-6100-2780-ef1c-6b1c261c9d23@pensando.io>
Date: Mon, 21 Oct 2019 09:35:03 -0700
From: Shannon Nelson <snelson@...sando.io>
To: Geert Uytterhoeven <geert+renesas@...der.be>,
Breno Leitão <leitao@...ian.org>,
Nayna Jain <nayna@...ux.ibm.com>,
Paulo Flabiano Smorigo <pfsmorigo@...il.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S . Miller" <davem@...emloft.net>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
David@....of.borg, David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Casey Leedom <leedom@...lsio.com>,
Pensando Drivers <drivers@...sando.io>,
Kevin Hilman <khilman@...nel.org>, Nishanth Menon <nm@...com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-crypto@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
netdev@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/5] ionic: Use debugfs_create_bool() to export bool
On 10/21/19 7:51 AM, Geert Uytterhoeven wrote:
> Currently bool ionic_cq.done_color is exported using
> debugfs_create_u8(), which requires a cast, preventing further compiler
> checks.
>
> Fix this by switching to debugfs_create_bool(), and dropping the cast.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
Acked-by: Shannon Nelson <snelson@...sando.io>
> ---
> drivers/net/ethernet/pensando/ionic/ionic_debugfs.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/pensando/ionic/ionic_debugfs.c b/drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
> index bc03cecf80cc9eb4..5beba915f69d12dd 100644
> --- a/drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
> +++ b/drivers/net/ethernet/pensando/ionic/ionic_debugfs.c
> @@ -170,8 +170,7 @@ void ionic_debugfs_add_qcq(struct ionic_lif *lif, struct ionic_qcq *qcq)
> debugfs_create_x64("base_pa", 0400, cq_dentry, &cq->base_pa);
> debugfs_create_u32("num_descs", 0400, cq_dentry, &cq->num_descs);
> debugfs_create_u32("desc_size", 0400, cq_dentry, &cq->desc_size);
> - debugfs_create_u8("done_color", 0400, cq_dentry,
> - (u8 *)&cq->done_color);
> + debugfs_create_bool("done_color", 0400, cq_dentry, &cq->done_color);
>
> debugfs_create_file("tail", 0400, cq_dentry, cq, &cq_tail_fops);
>
Powered by blists - more mailing lists