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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 96DFCFD45FC for ; Thu, 26 Feb 2026 00:19:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9C4810E848; Thu, 26 Feb 2026 00:19:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="q3FhyayY"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0326910E08C; Thu, 26 Feb 2026 00:19:00 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 77E1B4452A; Thu, 26 Feb 2026 00:18:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 639F2C116D0; Thu, 26 Feb 2026 00:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772065139; bh=w3m6Gvq8PtKvqJds8vqvFnCWFEGepn0lazcbw18+qOA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q3FhyayYxO3igoPxQlkFl9p+Kfl+rgQl44e029l3FO2RUz3iO9mAnafK5riU+PfNu 6nM0r6g3d2lojrnvzvhE8fb84biXXw6w4DUjEe56LKSkHEbFzrAeHifTDi6kH6soH/ btvPiA1c5UBdNYH9h0QhQoZ141wg08VB7p6sgiso/RRUbu0DErebPVOnV8IieZgQFc U/ns+6ecdqe+aZhYV6Q0TCOKptBc7qU/xzPF28zzt6xJBEBoBEDploSY426YGZeu/Z RcIyO/SiXL9rBN+xB8IHYUve0Xgh2TUeVSzGuvuizbVSp7PlL4UFT+tJu1IUx2V/QE 2LpVGePCRg2Fg== Date: Wed, 25 Feb 2026 16:18:57 -0800 From: Jakub Kicinski To: Riana Tauro Cc: , , , , , , , , , , , , , , , Zack McKevitt , Lijo Lazar , "Hawking Zhang" , "David S. Miller" , "Paolo Abeni" , Eric Dumazet , Subject: Re: [PATCH v8 1/5] drm/ras: Introduce the DRM RAS infrastructure over generic netlink Message-ID: <20260225161857.55fd4ba4@kernel.org> In-Reply-To: <686b63cc-2dfb-467b-a472-b6766b2c8dd2@intel.com> References: <20260223060541.526397-7-riana.tauro@intel.com> <20260223060541.526397-8-riana.tauro@intel.com> <20260224162203.279f7b74@kernel.org> <686b63cc-2dfb-467b-a472-b6766b2c8dd2@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Wed, 25 Feb 2026 11:38:53 +0530 Riana Tauro wrote: > $ tools/net/ynl/pyynl/ynl_gen_c.py --spec \ > Documentation/netlink/specs/drm_ras.yaml --mode uapi --header \ > > include/uapi/drm/drm_ras.h > > $ tools/net/ynl/pyynl/ynl_gen_c.py --spec \ > Documentation/netlink/specs/drm_ras.yaml --mode kernel --header \ > > drivers/gpu/drm/drm_ras_nl.h > > $ tools/net/ynl/pyynl/ynl_gen_c.py --spec \ > Documentation/netlink/specs/drm_ras.yaml --mode kernel --source \ > > drivers/gpu/drm/drm_ras_nl.c Oh interesting.. that's technically supported but the regen script uses "-o $file --cmp-out" instead of "> $file". If we were to use a shell redirect we override the file each time which makes incremental kernel builds much larger. > I used above commands to generate the initial files moving the > drm_ras_nl.h from include/ to drm layer. > > Even after that if i regen using tools/net/ynl/ynl-regen.sh -f > I see the above diff. > > Am i using the commands wrong or missing something? If you use the redirect the script doesn't know what the file name is so it gives up on adding the local header. If you really want to have the header under include we can just add an option for "--no-auto-hdr" But again, just double checking that its what we really need, as the auto-generated header is usually quite internal to the Netlink code. The users of the netlink family within the kernel include the uAPI and some human-written header.