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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 A29A0CA9EB9 for ; Mon, 21 Oct 2019 14:52:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 78AC420659 for ; Mon, 21 Oct 2019 14:52:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729112AbfJUOwr (ORCPT ); Mon, 21 Oct 2019 10:52:47 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:43080 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727847AbfJUOwK (ORCPT ); Mon, 21 Oct 2019 10:52:10 -0400 Received: from ramsan ([84.194.98.4]) by andre.telenet-ops.be with bizsmtp id GErr2100905gfCL01Erri1; Mon, 21 Oct 2019 16:52:09 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZ2E-00075d-VZ; Mon, 21 Oct 2019 16:51:50 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1iMZ2E-0008FP-Rq; Mon, 21 Oct 2019 16:51:50 +0200 From: Geert Uytterhoeven To: =?UTF-8?q?Breno=20Leit=C3=A3o?= , Nayna Jain , Paulo Flabiano Smorigo , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Herbert Xu , "David S . Miller" , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David@rox.of.borg, David Airlie , Daniel Vetter , Casey Leedom , Shannon Nelson , Pensando Drivers , Kevin Hilman , Nishanth Menon Cc: Greg Kroah-Hartman , linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, netdev@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/5] debugfs: Remove casts in debugfs_create_*() callers Date: Mon, 21 Oct 2019 16:51:44 +0200 Message-Id: <20191021145149.31657-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi all, Casting parameters in debugfs_create_*() calls prevents the compiler from performing some checks. Hence this patch series removes superfluous casts, or reworks code to no longer need the casts. All patches can be applied independently, there are no dependencies. Thanks for your comments! Geert Uytterhoeven (5): crypto: nx - Improve debugfs_create_u{32,64}() handling for atomics cxgb4/cxgb4vf: Remove superfluous void * cast in debugfs_create_file() call drm/amdgpu: Remove superfluous void * cast in debugfs_create_file() call power: avs: smartreflex: Remove superfluous cast in debugfs_create_file() call ionic: Use debugfs_create_bool() to export bool drivers/crypto/nx/nx_debugfs.c | 18 +++++++++--------- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 ++-- .../ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 +- .../ethernet/pensando/ionic/ionic_debugfs.c | 3 +-- drivers/power/avs/smartreflex.c | 2 +- 5 files changed, 14 insertions(+), 15 deletions(-) -- 2.17.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds