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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 187E7C433EF for ; Fri, 18 Mar 2022 15:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W9Q9QnlVWC04Ju0DSeEsgnXg4qFvQiuWqfHPMjMJ5ZU=; b=uPM1k7V6ZU+0O0 /URr/aunsE5/ys19eDCWToR0HALMAgUG1FY1sIeSFp8RxWjPY88CdfGb3bZgQAAMSaq5B6qiqoEGV pWSTsaut9AOaja8Svvw/HCOcD3zsjTX+Jv0Q5xw2D2/w5sQ8JktJzSAxkEOjd32NKezBbeA3sLUP0 4GkzvvZi5CBLn0P4xAmyjDXMxrStzNCVh2YJSQ6oav/GT8qmu1bCyZzRRAShz4CYLzEJqKAyIVyaJ 75UXtcIxO30Ct16+rsfaS8b380d9Wo/vpaS51xl/czfO/ehFk5TFhtp9HgU0QzmL1m6jML9PE1KZ8 XGDTJI3NpGWWTY5d2YsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nVEhq-002IXF-L8; Fri, 18 Mar 2022 15:39:58 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nVEhm-002IWK-SS for linux-arm-kernel@lists.infradead.org; Fri, 18 Mar 2022 15:39:56 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4BF4E1515; Fri, 18 Mar 2022 08:39:52 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B81A03F7D7; Fri, 18 Mar 2022 08:39:50 -0700 (PDT) Date: Fri, 18 Mar 2022 15:39:40 +0000 From: Cristian Marussi To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@huawei.com, f.fainelli@gmail.com, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, peter.hilber@opensynergy.com, "Rafael J. Wysocki" , Alexander Viro Subject: Re: [RFC PATCH 07/16] debugfs: Add signed versions of debugfs_create_u32/64 helpers Message-ID: References: <20220227205608.30812-1-cristian.marussi@arm.com> <20220227205608.30812-8-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220318_083954_988112_A09E6693 X-CRM114-Status: GOOD ( 16.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 18, 2022 at 02:21:32PM +0100, Greg Kroah-Hartman wrote: > On Sun, Feb 27, 2022 at 08:55:59PM +0000, Cristian Marussi wrote: > > Add a few helpers to deal with signed values integers; built on existing > > debugfs internal helpers as the existing unsigned functions already do. > > > > Make the simple_attr_write() internal helper detect the sign of the > > requested set operation from the related format string: this is needed > > to be able to properly parse negatively signed input strings. > > > > Cc: Greg Kroah-Hartman > > Cc: "Rafael J. Wysocki" > > Cc: Alexander Viro > > Signed-off-by: Cristian Marussi > > --- Hi Greg, thanks for the feedback. > > Note that in the rest of the series I do NOT need the s64 WRITE/SET > > operations, that required the more invasive simple_attr_write() change, > > but it seemed odd to implement a get only debug_create_s32/64 API. > > Let's wait to add them when we have a need for them with a in-kernel > user. Otherwise I'll just end up removing them eventually when I sweep > for "is this used" cleanups. > Ok, so just to double check what I understood(or not), I'll leave out the setters ops and implement instead the debufs_create_s32/s64 with only RO fops support, right ? Thanks, Cristian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel