Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753363AbeAJVOr (ORCPT + 1 other); Wed, 10 Jan 2018 16:14:47 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:39374 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752998AbeAJVOI (ORCPT ); Wed, 10 Jan 2018 16:14:08 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D6BB060724 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Wed, 10 Jan 2018 13:14:07 -0800 From: Stephen Boyd To: Geert Uytterhoeven Cc: Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] clk: Fix debugfs_create_*() usage Message-ID: <20180110211407.GK21040@codeaurora.org> References: <1514977577-11854-1-git-send-email-geert+renesas@glider.be> <1514977577-11854-5-git-send-email-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1514977577-11854-5-git-send-email-geert+renesas@glider.be> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/03, Geert Uytterhoeven wrote: > When exposing data access through debugfs, the correct > debugfs_create_*() functions must be used, matching the data types. > > Remove all casts from data pointers passed to debugfs_create_*() > functions, as such casts prevent the compiler from flagging bugs. > > clk_core.rate and .accuracy are "unsigned long", hence casting their > addresses to "u32 *" exposed the wrong halves on big-endian 64-bit > systems. Fix this by using debugfs_create_ulong() instead. > > Signed-off-by: Geert Uytterhoeven > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project