From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751724AbeACLGs (ORCPT + 1 other); Wed, 3 Jan 2018 06:06:48 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:53854 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751726AbeACLGV (ORCPT ); Wed, 3 Jan 2018 06:06:21 -0500 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 0/4] clk: Fix debugfs_create_*() usage Date: Wed, 3 Jan 2018 12:06:13 +0100 Message-Id: <1514977577-11854-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Mike, Stephen, When exposing data access through debugfs, the correct debugfs_create_*() functions must be used, matching the data types. This patch series remove all casts from data pointers passed to debugfs_create_*() functions, as such casts prevent the compiler from flagging bugs, and fixes wrong usage exposed by that. Please refer to the individual patches for a changelog. Thanks! Geert Uytterhoeven (4): clk: Improve flags doc for of_clk_detect_critical() clk: Use octal instead of symbolic permissions clk: Show symbolic clock flags in debugfs clk: Fix debugfs_create_*() usage drivers/clk/clk.c | 92 +++++++++++++++++++++++++++++++++----------- include/linux/clk-provider.h | 2 + 2 files changed, 72 insertions(+), 22 deletions(-) -- 2.7.4 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