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 6BF66C46467 for ; Mon, 16 Jan 2023 12:30:33 +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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GkBgMWTCtYpwZGOmnJ8VqxtYuJv2Drin21I9iI08p9E=; b=zI6WTs6iTXcs/E DyEpLlZP8dljG6YKO1qwjXZ4N7zDL84JWqiv3T5p/ulvubbnHmpfIx+5qXQBJ2F1/J8E/7RV/vJf5 b64t6eiXOdhVnXvvz/TjxSzz9xZ7u7ChViIndIzcHAU4S12nIqmfLnr7KPhMiXrZEVBPDVrll64zM qiIhHbIiCNT7amN4GB2GVPLIM8ZKh0wo4qQmy71mGymG/Ad5stCjvLX2TT3tTWNxthtiZ0qCFAdo2 Da3j4P2sQnc2A1VO5e5wUIG1I7bWmVNLvCVJTeOc3SSD9P8f4Ad5wckqqdPLXfIXhJaykjhLl+Vbs UG23HTrsI1xulWfkGMpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHOcD-00A5bg-KM; Mon, 16 Jan 2023 12:29:29 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHOcA-00A5Zr-Kq for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 12:29:27 +0000 Received: by mail-pf1-x42a.google.com with SMTP id c85so17539046pfc.8 for ; Mon, 16 Jan 2023 04:29:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tu5OJOBIgMLHuUpsp6UpRFubmqLqzfGdVmO7CU8EkKs=; b=I4tjtw/UCFox/srRbt1s5pAj87hrugXKw43CBMeH86AXlSaAAwipyCqo2EdfOZLTnh n9ijnEfgcThnWNV7FYPAOgzV5oHG+5F+e4kY6x/llVkrrr53Ehym4fkIrfPbKvqLR6Ds 1NY+lxiUt9ma9a4/JGkI/hsgSN9hEjqQAnNPjkYlLLrl+m6gjBMxa9WjLxC0Uj1o/ePo yr/XLGNv77kMWeNfiWCg3Dr8El1QQiQrboFfpJxXasmr2YKjYI/5QtzN9e2cjfsR3k98 W3fFOChDz+/s7wqaL0cb+cyJFM9jKT/qmMAfdRF9Um0TZEbj0bIknjS4AxX+Ai507ixT b9UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tu5OJOBIgMLHuUpsp6UpRFubmqLqzfGdVmO7CU8EkKs=; b=pZdqWkbC5GRPp60jh/P/dw5OGOIRNgHXIfrvABpUPfY+rAh888HQTFbtE+4kzXPia0 Qb7aJSN1aZhrJ1n4V3oSbYXsWefNx4xTOqWf4ppG0f4DSBKhkNVyq7+xdgh5SWi2+rGV PUyIHK3cGzdI5VtiQmfWdtK2I1BrLufnGivBWjINsGdJK7QB86LOOz6hWYRKc0l8Gsay Rztqq7Z0TEJ6fID6HxuqJ7isfV7mZtvRqbO0q/ot26aBoQ03x1FxaConUWn2vih0If75 Y5Uur3j7Hefz6OsgLZfb5xZQjfrhd90958NyM1PQmKzgaS8NZClTmHOdL78+47MoHilO u/eg== X-Gm-Message-State: AFqh2krbekBJ3sPenwbNZ9wtxm8PhLxmHkaaoYFb54rOBgBN7Ca/pLTv nGzSFTTa57vbMLJ9Qt7jm1cL+OjT48hMYIKELLRXuA== X-Google-Smtp-Source: AMrXdXsJB+z7pfvhzwjU2HZpxaf8SN+y75dBho1GmgangP2wLMdwcOsOceVbkZ5kiDwx8zY0OtozBqQkkO5bnXVMD4w= X-Received: by 2002:aa7:88c5:0:b0:58d:aeb6:2d66 with SMTP id k5-20020aa788c5000000b0058daeb62d66mr200816pff.66.1673872165004; Mon, 16 Jan 2023 04:29:25 -0800 (PST) MIME-Version: 1.0 References: <20221219234638.3661-1-mike.leach@linaro.org> <20221219234638.3661-5-mike.leach@linaro.org> In-Reply-To: From: Mike Leach Date: Mon, 16 Jan 2023 12:29:13 +0000 Message-ID: Subject: Re: [PATCH v5 4/6] coresight: configfs: Modify config files to allow userspace use To: Christoph Hellwig 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_042926_736101_8A41CC9C X-CRM114-Status: GOOD ( 15.24 ) 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 I'll rework this in the next set. Thanks for the review Mike On Tue, 27 Dec 2022 at 17:10, Christoph Hellwig wrote: > > 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. -- Mike Leach Principal Engineer, ARM Ltd. Manchester Design Centre. UK _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel