From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9D211A83F9 for ; Thu, 26 Feb 2026 00:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772065139; cv=none; b=W3Ipadd7KPcIZw9UosyQq+Y1TjelOtjmLdIN9K1Vt7iFJG2MiF8TPvHM94nINMp1BG8jBYKOBlKWStp3f/SQsHlLLUbn+7nxioY7QP4CHb0S4YK7WqYwgrmiZLpf0TDVbRV/ZewzlsEkjdwTKz+MARviUo14pYQWs+Eu5J2UN1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772065139; c=relaxed/simple; bh=w3m6Gvq8PtKvqJds8vqvFnCWFEGepn0lazcbw18+qOA=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=T1k/tiu7kuyiigU3ZJY7WJsJHDftSrgttPfb83xYMIo4Slj4CrDEC5EIhLaMLuh0VF8kTSza6dH+Juwxvxgf04yDpiVOLKZ2UpSpNVUELOvvCbPklrfHM7dSUsBuUIiSHZImEha47e0KNvvLVM+OoY8Nz4JeNURfJSO9hCnxheQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q3FhyayY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q3FhyayY" 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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.