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 E3F81C4167B for ; Tue, 27 Dec 2022 17:11:00 +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=rjTvXYHY93/uvdayhFWSOuQmXdZn/BvpUP52gmRb0Gs=; b=vKLdPEGmD8najc pHbTq2aVKnsYehsagzD119u9GHZDxvwvtipomAEivWf5qfZI3LEfWhRuII1mqUxq6yAb2klvX+YBY YvDWth+fLOF7ai/kKEn9Ld/i1xKLT+5M254ZrwsDOaxxhWB/E81fHNNwxof13Ex8QC9V8L66rWrEw Gq/ozvZLkUT/5CQpWTsexb9TdYaikjLRMMs4e6/0ZONPihXvsZOEiWHRGkkE0C5eWhdMQpOcoCU0O 8s8U8RBmUFEHMsgnRnVZ/3TJ0oij76wvhRdDd2hYpAgkZEePZ69fh2d4mdrJVoKSbrC/VyjM5Vhd/ ET39KR+kVISy+EwvqH/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADSq-00En8t-PQ; Tue, 27 Dec 2022 17:10:08 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADSp-00En8A-KV; Tue, 27 Dec 2022 17:10:07 +0000 Date: Tue, 27 Dec 2022 09:10:07 -0800 From: Christoph Hellwig To: Mike Leach Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, acme@kernel.org, james.clark@arm.com Subject: Re: [PATCH v5 4/6] coresight: configfs: Modify config files to allow userspace use Message-ID: References: <20221219234638.3661-1-mike.leach@linaro.org> <20221219234638.3661-5-mike.leach@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221219234638.3661-5-mike.leach@linaro.org> 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 Mon, Dec 19, 2022 at 11:46:36PM +0000, Mike Leach wrote: > Update coresight-config.h and the coresight-config-file.c & .h > to allow use in userspace programs. > > Use __KERNEL__ defines to filter out driver only structures and > elements so that user space programs can use the descriptor structures. > > Abstract memory allocation in coresight-config-file.c to allow read > file functions to be run in userspace and kernel drivers. That's now how kernel code is written. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel