From nobody Sun Dec 14 12:12:47 2025 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 D5BA72528EA; Fri, 18 Apr 2025 23:50:23 +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=1745020223; cv=none; b=LhjyCGS/1zBU09NzGM73cdkQcR3gUm0LJCmEp6iBFWWf1UUgNsVJ+M61B5xIqIf2ej+qKRHTx4FXPN+U6sFtAL2WBvtdQAP6Til5iJMw62Iq/mAdrG0NXOyYWMy3YxpbIl/Ertqp7r+y/QCHfQuoGmgZUdrY1IpBgWSf6bTjAWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745020223; c=relaxed/simple; bh=gsQIM27TkZ1MNIKEbPH6FoFNDf1xvq/nh8YFql//+iw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KRUOcrkCrgDAfhmyUSI2DCSRlg9e0Rme9tBMAlRzfWyYhThJpvTrkUqx9cl5x6We+BxjkGdM94Bhr9dmOmrFSMAA6/4QjxFP1NpggX+7liNijgAyYZybnXmwp2d4vt0wsRfh3PmP36EaIyrfCBWnI+Z8/dwRgLyWKuAqfXHbrcU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ClLA8TDR; 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="ClLA8TDR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42F2FC4CEE2; Fri, 18 Apr 2025 23:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745020223; bh=gsQIM27TkZ1MNIKEbPH6FoFNDf1xvq/nh8YFql//+iw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ClLA8TDRpxYThdkU+Ojsv+UTtg9zckmiu4Lg2of/0OyFfMxOH+cBknVwL1cW7Bs2K qNpPWrpI3Gs3rA9VJWv5bp1EZLKsH8zyeVpSRQmcrrG7X/wuSARiD9bSwieJtNIFnz C4gpqu22ufjb1L6fmi1hFBLJzIDNlMs6fGBYqy2ihIRm7/2fyjauHdSnGt7RXzUy9W VbtxVFQwDdfqL+KpiytMqhpEf+vWnuAEVz0UdOje6CE6kREDIs28tE+56tIzkd5kGO TsS/3HtSP9ffpAzhncJDlm67GgF/Pq/caCaJMbK5QZ0SGc0hFI2Cw64vR/YUPEP/wQ BiXSQtsFaprAg== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u5vTL-00000003KF8-3C5C; Sat, 19 Apr 2025 07:50:15 +0800 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] docs: Makefile: get rid of KERNELDOC_CONF env variable Date: Sat, 19 Apr 2025 07:50:02 +0800 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" Despite its name, what's there is a set of Sphinx arguments that are passed to sphinx/kerneldoc.py: - kerneldoc_srctree: location of the source tree; - kerneldoc_bin: external script to excecute kernel-doc Drop it, and just place the values at the already-existing ALLSPHINXOPTS variable. Signed-off-by: Mauro Carvalho Chehab Tested-by: Andy Shevchenko --- Documentation/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index c022b97c487e..a006c7681412 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -61,8 +61,8 @@ endif #HAVE_LATEXMK PAPEROPT_a4 =3D -D latex_paper_size=3Da4 PAPEROPT_letter =3D -D latex_paper_size=3Dletter KERNELDOC =3D $(srctree)/scripts/kernel-doc.py -KERNELDOC_CONF =3D -D kerneldoc_srctree=3D$(srctree) -D kerneldoc_bin=3D$= (KERNELDOC) -ALLSPHINXOPTS =3D $(KERNELDOC_CONF) $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) +ALLSPHINXOPTS =3D -D kerneldoc_srctree=3D$(srctree) -D kerneldoc_bin=3D$= (KERNELDOC) +ALLSPHINXOPTS +=3D $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ifneq ($(wildcard $(srctree)/.config),) ifeq ($(CONFIG_RUST),y) # Let Sphinx know we will include rustdoc --=20 2.49.0 From nobody Sun Dec 14 12:12:47 2025 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 45FA92528EA; Fri, 18 Apr 2025 23:50:26 +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=1745020227; cv=none; b=Dty6OveeCDGRAgy1Mx8GqPaMHQnzOhRKwezjI2FExetFYYLIwGwA7jj/J+KZyHeGGTILUS7YuOEZyMnIfcfdhOhJVKm5QXKGVtgUImTcTP/VNs2Ob4dvoAMIozH5SUNU7XQ1AmRdtal5j8oDbD2S5MdZAVkiHvuJI0kNj+OTpjA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745020227; c=relaxed/simple; bh=Ofscr60/Y5Fglh+wII5NC+EB3e5EfN/93gqkctEjTUg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oSJGFA5hjyeXlcdQqtk+hDQzNB5A6rN202PrRMgmYmRSObOT5cmBsCCbDmUZvSuxK9Wi8qcGY3ftpYJocOCMiCS17VryCryJW+lHqbKQMPZwIeH6+nin4vcuVTqG9lsNnuO9MTEOC3EmqLd81w8VaHLAhy7LDWM3n7u9SVEE3F0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YI2Noohm; 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="YI2Noohm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE319C4CEED; Fri, 18 Apr 2025 23:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745020226; bh=Ofscr60/Y5Fglh+wII5NC+EB3e5EfN/93gqkctEjTUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YI2NoohmphZn+eyg9XNFY9xVnBZezOQFdBbylo3sJVkIFC548170HVsDs2NBBZcd5 DOPMZLIYKq+a3AAiyhRAhsfp9IzoPdBU1P1oqMEg+trXHzjBMqblR6mJNOX4jMnWQY wQPVL3OqTsB8hLg547BVMjsGaA0DMTfK5JGC31KChbPpzhsckNMQpWAvMZPwCyafHL Wtka1QJ+wpJqfm9718DTpBLNdUj1DrypUF+gsQaesn43ibH7tZoFVVAXAJ4Y3eSyzN PvgsmwEmDvG1Sp0UdF4BKuIN15sdHGqmmlq1JZlI22X4MqEgluufYO+Pi2nHLx+RAi kUesBVeRDIvww== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u5vTL-00000003KFB-3HQK; Sat, 19 Apr 2025 07:50:15 +0800 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] Makefile: move KERNELDOC macro to the main Makefile Date: Sat, 19 Apr 2025 07:50:03 +0800 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" As kernel-doc script is used not only on Documentation, but also on scripts and drivers/drm Makefiles, move it to the main makefile, as otherwise sub-makefiles may not have it. Signed-off-by: Mauro Carvalho Chehab Tested-by: Andy Shevchenko --- Documentation/Makefile | 1 - Makefile | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index a006c7681412..8c1f6a3dfc44 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -60,7 +60,6 @@ endif #HAVE_LATEXMK # Internal variables. PAPEROPT_a4 =3D -D latex_paper_size=3Da4 PAPEROPT_letter =3D -D latex_paper_size=3Dletter -KERNELDOC =3D $(srctree)/scripts/kernel-doc.py ALLSPHINXOPTS =3D -D kerneldoc_srctree=3D$(srctree) -D kerneldoc_bin=3D$= (KERNELDOC) ALLSPHINXOPTS +=3D $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ifneq ($(wildcard $(srctree)/.config),) diff --git a/Makefile b/Makefile index 38689a0c3605..2a05988740a9 100644 --- a/Makefile +++ b/Makefile @@ -458,6 +458,11 @@ endif HOSTRUSTC =3D rustc HOSTPKG_CONFIG =3D pkg-config =20 +# the KERNELDOC macro needs to be exported, as scripts/Makefile.build +# has a logic to call it +KERNELDOC =3D $(srctree)/scripts/kernel-doc.py +export KERNELDOC + KBUILD_USERHOSTCFLAGS :=3D -Wall -Wmissing-prototypes -Wstrict-prototypes \ -O2 -fomit-frame-pointer -std=3Dgnu11 KBUILD_USERCFLAGS :=3D $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS) --=20 2.49.0 From nobody Sun Dec 14 12:12:47 2025 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 3C93525522B; Fri, 18 Apr 2025 23:50:38 +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=1745020239; cv=none; b=nDqr1doG9CTfXzkpmI49FUput41YNz9YxrI3nN6T62TcRKVVIRIzAq35VqJLzJYW9Dh9IkgeT/T0cpe7nLIp+Q9e43lGDMh2fBHbSZmc4mN1JngyMNjFuAfmYyr2dIt+8J236T2dW2NV9ZBlDfSguaFaJScm3oTnvbpdnN7EVPQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745020239; c=relaxed/simple; bh=IJzLGDXtTM+PrRhEz5In0Xb0/7YHoI2xCi4o5wcrZTw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uwiZb/DseMuGnR0VEw26bvcoDBXcxOr1GJGYugtVcf8A2hKn9HW+pyGN+tU7PEC7hRcAOFTgUFSVh838JFcVwWr/y8yMusu5cZ/RVpL7fhMZoxVg8HqsSTYt3/fUgskLTAV5nmTGLPk83HS0LG2PNHr/9YLCrmvvXnSJ9dk2gGI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QyRQV5WC; 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="QyRQV5WC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4259C4CEEB; Fri, 18 Apr 2025 23:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745020238; bh=IJzLGDXtTM+PrRhEz5In0Xb0/7YHoI2xCi4o5wcrZTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QyRQV5WCNZ1XQBQWJi70yL4cpSNaEA5wGy4SKzFvMG1Dx9N1DEE7Vce3NLb3z9Hkz FimiCnRZxje2nNYI/vV1OXuSGwR4O+ps46Gy6xB1Eubw+k955Yo27397+ChsYCqlc0 GrLq2Jc8rOiLxy9FHwICAlxXDN0NS/VC7CpwmyEznMdZoUBjuFnFLOFlsHQr6fiIwL CM63uXPPFoJoRRRpJdXqUHjfpGZNbWX/LK3C0HFVCJl2fIspMbIXdukE0makvNJVyl LsYpSk1AbhlP2JWVY9q+KONlxESS5dRkwV/wl+RJCYwuwbhWp0htd0NjsiPksIkrIJ kkW1iv12aeETA== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u5vTL-00000003KFE-3NxD; Sat, 19 Apr 2025 07:50:15 +0800 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , David Airlie , Jani Nikula , Joonas Lahtinen , Maarten Lankhorst , Masahiro Yamada , Maxime Ripard , Nathan Chancellor , Nicolas Schier , Rodrigo Vivi , Simona Vetter , Thomas Zimmermann , Tvrtko Ursulin , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v3 3/4] scripts/kernel-doc.py: don't create *.pyc files Date: Sat, 19 Apr 2025 07:50:04 +0800 Message-ID: <28fcf7e44294fc4b5320d3c289f09cb5211ff8f3.1745019660.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" As reported by Andy, kernel-doc.py is creating a __pycache__ directory at build time. Disable creation of __pycache__ for the libraries used by kernel-doc.py, when excecuted via the build system or via scripts/find-unused-docs.sh. Reported-by: Andy Shevchenko Closes: https://lore.kernel.org/linux-doc/Z_zYXAJcTD-c3xTe@black.fi.intel.c= om/ Signed-off-by: Mauro Carvalho Chehab Tested-by: Andy Shevchenko --- drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/i915/Makefile | 2 +- include/drm/Makefile | 2 +- scripts/Makefile.build | 2 +- scripts/find-unused-docs.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index ed54a546bbe2..d21d0cd2c752 100644 --- a/drivers/gpu/drm/Makefile +++ b/drivers/gpu/drm/Makefile @@ -236,7 +236,7 @@ always-$(CONFIG_DRM_HEADER_TEST) +=3D \ quiet_cmd_hdrtest =3D HDRTEST $(patsubst %.hdrtest,%.h,$@) cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -x c /dev/null -include $< -include $<; \ - $(srctree)/scripts/kernel-doc -none $(if $(CONFIG_WERROR)$(CONFIG_DRM_WE= RROR),-Werror) $<; \ + PYTHONDONTWRITEBYTECODE=3D1 $(KERNELDOC) -none $(if $(CONFIG_WERROR)$(C= ONFIG_DRM_WERROR),-Werror) $<; \ touch $@ =20 $(obj)/%.hdrtest: $(src)/%.h FORCE diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile index ed05b131ed3a..ab6b89a163e7 100644 --- a/drivers/gpu/drm/i915/Makefile +++ b/drivers/gpu/drm/i915/Makefile @@ -408,7 +408,7 @@ obj-$(CONFIG_DRM_I915_GVT_KVMGT) +=3D kvmgt.o # # Enable locally for CONFIG_DRM_I915_WERROR=3Dy. See also scripts/Makefile= .build ifdef CONFIG_DRM_I915_WERROR - cmd_checkdoc =3D $(srctree)/scripts/kernel-doc -none -Werror $< + cmd_checkdoc =3D PYTHONDONTWRITEBYTECODE=3D1 $(KERNELDOC) -none -Werro= r $< endif =20 # header test diff --git a/include/drm/Makefile b/include/drm/Makefile index a7bd15d2803e..1df6962556ef 100644 --- a/include/drm/Makefile +++ b/include/drm/Makefile @@ -11,7 +11,7 @@ always-$(CONFIG_DRM_HEADER_TEST) +=3D \ quiet_cmd_hdrtest =3D HDRTEST $(patsubst %.hdrtest,%.h,$@) cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -x c /dev/null -include $< -include $<; \ - $(srctree)/scripts/kernel-doc -none $(if $(CONFIG_WERROR)$(CONFIG_DRM_WE= RROR),-Werror) $<; \ + PYTHONDONTWRITEBYTECODE=3D1 $(KERNELDOC) -none $(if $(CONFIG_WERROR)$(CO= NFIG_DRM_WERROR),-Werror) $<; \ touch $@ =20 $(obj)/%.hdrtest: $(src)/%.h FORCE diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 13dcd86e74ca..884dc86ce04e 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -83,7 +83,7 @@ else ifeq ($(KBUILD_CHECKSRC),2) endif =20 ifneq ($(KBUILD_EXTRA_WARN),) - cmd_checkdoc =3D $(srctree)/scripts/kernel-doc -none $(KDOCFLAGS) \ + cmd_checkdoc =3D PYTHONDONTWRITEBYTECODE=3D1 $(KERNELDOC) -none $(KDOCFL= AGS) \ $(if $(findstring 2, $(KBUILD_EXTRA_WARN)), -Wall) \ $< endif diff --git a/scripts/find-unused-docs.sh b/scripts/find-unused-docs.sh index ee6a50e33aba..d6d397fbf917 100755 --- a/scripts/find-unused-docs.sh +++ b/scripts/find-unused-docs.sh @@ -54,7 +54,7 @@ for file in `find $1 -name '*.c'`; do if [[ ${FILES_INCLUDED[$file]+_} ]]; then continue; fi - str=3D$(scripts/kernel-doc -export "$file" 2>/dev/null) + str=3D$(PYTHONDONTWRITEBYTECODE=3D1 scripts/kernel-doc -export "$file" 2>= /dev/null) if [[ -n "$str" ]]; then echo "$file" fi --=20 2.49.0 From nobody Sun Dec 14 12:12:47 2025 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 85C2B253F35; Fri, 18 Apr 2025 23:50:31 +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=1745020231; cv=none; b=Agb+6mRY82f4HIiFnw9ggPHhIEY5vZuEbIE6NJAX2K+JDbHBtJFs+isrbrP8nzkVzVqBj3OMMpf8EyyJxMHjupaW2YVKq21FuzNXdz2IYqMPbdCyI75xPymlXzrNW4lxRQ8xu2tU/PAUZoASvjTrfSSyTQi5SL5V54VEhry6mTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745020231; c=relaxed/simple; bh=TLP2FSFMoyG9Y7Er0eXeMEKJSa/MXE0h9kNS8YrZeK8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MAn6/0Xx/zgQO3Wh3dM+zlhi/i4epB4mGBpuElRBqgtKuFx3BujgrO1JWP4r76L5peuHjwmIxVpTdjT7DINqjli45Lz7DKEyWWjOWym/vLO0TU1RP8HRAK/1/ah7yF1zlx+hPT8C5MdQP8HDEWGCeR/hfrkyuYtoueDf7UAywJ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GDL7uy7Q; 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="GDL7uy7Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2A10C4CEE2; Fri, 18 Apr 2025 23:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745020231; bh=TLP2FSFMoyG9Y7Er0eXeMEKJSa/MXE0h9kNS8YrZeK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GDL7uy7QwalO2pJiH+7A+Wgm4sVMLhNVbDAbJp/yOcvq5xlKt1voHhjQsQA1RF6SO WG7SyMnX6Q5r6tqgw7pdGMuEuQmjWAEOce/9IBGP/DCPQ5UglLa2HyAxrV3TQaIqdG IqAahLr+uKz1/6dj5S4Kxl5rTVzSxouEeQdmIpVcwSf5PnB5aUbSFmGiLdATwx/KDT 6XFRluZkM3lZA0VZUKNKZqm0l/Cb95Y7MWhpCZs0muT1DWa4xoZ5AHIi7+R8EHSQgV ZFpDfRGq7m7DGczTNeydB7HmSpdUt845RVMWw5IyVA1q+GDm2a3KzbvaBOimQIj6S4 KQBRQ00sq6ouA== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u5vTL-00000003KFH-3UGk; Sat, 19 Apr 2025 07:50:15 +0800 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Laurent Pinchart , Li Zhijian , Masahiro Yamada , Miguel Ojeda , Nathan Chancellor , Tamir Duberstein , Vegard Nossum , linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] .gitignore: ignore Python compiled bytecode Date: Sat, 19 Apr 2025 07:50:05 +0800 Message-ID: <9bbcb399f6b6f68e6525131fea41dd0fc9c6978d.1745019660.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" While the building system doesn't create any Python JIT bytecode, if one manually runs kernel-doc.py or get_abi.py, Python will, by default, create a bytecode and store it under scripts/lib/*. This is normal, and not controlled by the Kernel itself. So, add *.pyc as an extension to be ignored. Signed-off-by: Mauro Carvalho Chehab Tested-by: Andy Shevchenko --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f2f63e47fb88..2e01bc0b2d2a 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ *.mod.c *.o *.o.* +*.pyc *.patch *.rmeta *.rpm --=20 2.49.0