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 X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2B0FCA9EA0 for ; Tue, 22 Oct 2019 03:45:30 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 744DD2086D for ; Tue, 22 Oct 2019 03:45:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=pensando.io header.i=@pensando.io header.b="ZvioHrwP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 744DD2086D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pensando.io Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46xztH71W2zDqKT for ; Tue, 22 Oct 2019 14:45:27 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=pensando.io (client-ip=2607:f8b0:4864:20::541; helo=mail-pg1-x541.google.com; envelope-from=snelson@pensando.io; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=pensando.io Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=pensando.io header.i=@pensando.io header.b="ZvioHrwP"; dkim-atps=neutral Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46xj0y01FmzDqxW for ; Tue, 22 Oct 2019 03:35:09 +1100 (AEDT) Received: by mail-pg1-x541.google.com with SMTP id 23so8132516pgk.3 for ; Mon, 21 Oct 2019 09:35:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=YQ2SYzDjclp6+UMcXfMKe/dCfkknHxuiGOrHRSVn0cA=; b=ZvioHrwPqgA32sqk/ZfXl+AIKFsddUO2tNAqbJtu4tCcRANhGvReU9J0qCrPtBX4dr XyEFxDF3rI4Skd8uu+tW37bMnIbIfeVll6YP9QPsiv1m3u9UI7Hz50C/EOmQGDDvJxjt MNnpf3ALOQX+wn100d4q49rWpqL/dLYkEvAbPydL+TGXqu4wUlet2YAblmsMtkne7qnv mFnrVk537e3SRZLOSIfp5DZTMcRh1T3I7huUyEOh7iplVBe4IuwO1byLK+LTz8AIzALW g8HnTvBYEWL7IAty6Tx+yooX0qDMEelsrde2cgdpkGApf9pCWxxWG6Loqrv6o3ZIrYoi o0cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YQ2SYzDjclp6+UMcXfMKe/dCfkknHxuiGOrHRSVn0cA=; b=telZR7xOf2+SCk2GlQhOTe1OsyVvAfpwgjbf1Lyr+gp5xqfYFMrFR39XmQPYgicLVA gdHczBAnkSxU/XoV1w/3EEpK5v56/PH8/NTcpXtRlABVmWYxm6c04+kbZnM67yxksxrK rkTuaXnaKZZIWGCzu81n5aeLBV1UOwmc5NoUDpyRu4KZLQ+40cINknxAf6NdaYKEBlT9 w/7BUmaj0vz+zTGIOXmGh2Dfjk4AmAh59+lF6OVC73iOhLwlRzU6zO63Wso7RxsXINvo n13b/aqjw+jVscoYbtVKKdEhcd9tjgpVf8Aud3ezHLptluZFjP60E4bwMoFWodvHgszB miKg== X-Gm-Message-State: APjAAAWcfgX4vApJ1r4YmF5zDw+7BZgkPZVWXL+QOcoZQrBaGYyV289k bchCe4jSLHE+QuQ78ur7Tq70Qg== X-Google-Smtp-Source: APXvYqwmyNu50+FxrTO6V6IulFup1S67xnT8cj+dbepaT4niD1qSPIKhFvBy+c/p26nJk53uezcFig== X-Received: by 2002:a63:ad0d:: with SMTP id g13mr26250877pgf.407.1571675706632; Mon, 21 Oct 2019 09:35:06 -0700 (PDT) Received: from Shannons-MacBook-Pro.local (static-50-53-47-17.bvtn.or.frontiernet.net. [50.53.47.17]) by smtp.gmail.com with ESMTPSA id e4sm16610297pff.22.2019.10.21.09.35.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 09:35:05 -0700 (PDT) Subject: Re: [PATCH 5/5] ionic: Use debugfs_create_bool() to export bool To: Geert Uytterhoeven , =?UTF-8?Q?Breno_Leit=c3=a3o?= , Nayna Jain , Paulo Flabiano Smorigo , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Herbert Xu , "David S . Miller" , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David@rox.of.borg, David Airlie , Daniel Vetter , Casey Leedom , Pensando Drivers , Kevin Hilman , Nishanth Menon References: <20191021145149.31657-1-geert+renesas@glider.be> <20191021145149.31657-6-geert+renesas@glider.be> From: Shannon Nelson Message-ID: Date: Mon, 21 Oct 2019 09:35:03 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191021145149.31657-6-geert+renesas@glider.be> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailman-Approved-At: Tue, 22 Oct 2019 14:43:41 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: amd-gfx@lists.freedesktop.org, linux-pm@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-crypto@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 Acked-by: Shannon Nelson > --- > 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); >