From nobody Sun Dec 14 12:12:45 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 4C8252CA8; Thu, 24 Apr 2025 00:17:13 +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=1745453834; cv=none; b=Ldt355qhURPtFagqVPcm5r1wPY29c35WBGM092ZnwGplKAqw3fEeKZELacvdRJX58DNlZYp/U7uy2nBHWlPy6JssBMD76LER4QzgyloYGTxupCotETECN3iRaaAleUwkjEovzBQwcdgTL8oyKU17P7hgLOrim4XgkjOXRZr401g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745453834; c=relaxed/simple; bh=BsaZ64PVzTBAzYDESPUe/sVzLjn1bK7hyZzbcqqS2b0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WrTsETHQmncSAa572LcAGrEouaV5oAjcHsn8lOQ8lWJwJSPZog5pPG9AM7fBjMmldNVKpZv6Ht0tdFrvrxKzeX6KQQURQhh8UaqUrexhkscIh9EPFndREBY6Sa9LfCSa+KI1JVxlqiNypLQVTVmX86Waf1Ko/pMPuLuBpNWzOh0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QLO5xxzd; 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="QLO5xxzd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B410EC4CEE2; Thu, 24 Apr 2025 00:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745453833; bh=BsaZ64PVzTBAzYDESPUe/sVzLjn1bK7hyZzbcqqS2b0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QLO5xxzd9NkoVmYoxxpYGBLOYZCqFUpaLUC00lSTjs2jMzxoXqn8cVfy3aZifVQuc GT+ynAAgoUPKEEDu+e6VeRdOneBnRkClpl6/iRPRgHFyrxDm7B3/MAtfZgzgfgY46Z /meXSWkrGGcq1yYGnMyOPm/+hRFcEFChl+b10HiwUUWQh5zh9G1k2YHJRE3J3epqYA pMeQb57GAvxDRwn/2FKd+PAPaiYZU7gyfAo37hgu6WY9RQv9oG+xfxbc8rsmmv97rX Y9+FzHqm8WZvaCTzlFr199vb/LZsOw9R28u764zRxiJLPQnOKH1GpW1faVqZAx5OP+ nI2Ul6B7PLXhA== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u7kH5-0000000049T-1zSl; Thu, 24 Apr 2025 08:17:07 +0800 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v4 1/4] docs: Makefile: get rid of KERNELDOC_CONF env variable Date: Thu, 24 Apr 2025 08:16:21 +0800 Message-ID: <88be0fc288598c30fbedb9cc230b2a7ed28225a2.1745453655.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" 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:45 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 DD0B912E5B; Thu, 24 Apr 2025 00:17:16 +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=1745453837; cv=none; b=CgJaIjr0RLb3/zAygWBMomM1hWiHW/11rN9QQwmNUBjmpFqQx980JIRwc5ZE0rJPhJkCWI28ul5kkg7MHLcmF/lzf8alqv81ao1eTREuvfvuHTYjJT38bhXqvhyDeKp+jTf5AePdTfYcIZwTlytsn4aEA0T0Gm5mKILX3bklWvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745453837; c=relaxed/simple; bh=qYC37Vo5nYVYlQVxiTco1BS1/PDOhMyuijYB9VWIZus=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=s3YJz6bNFRBkU+2+7mGu9Yv5tny/96LWiaPUfxZz5TmZPe3I5UeTIso9DXm5o6RsF28EA9kmktF3F7YEwMyBYNSDsyAwWSwV+Iq7HFqFs15egH/zsFchYD8nGbrgJr8iQ8pXfH2S6ByQbQOIA7Ld3rcRsdFgwWbHemkOzletxeE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WyEdyM49; 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="WyEdyM49" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B6C6C4CEE3; Thu, 24 Apr 2025 00:17:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745453836; bh=qYC37Vo5nYVYlQVxiTco1BS1/PDOhMyuijYB9VWIZus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WyEdyM49aB5dfkLZLH8wkbGEsh+xxNygyaEHVRWs5TtmTAedewZiRuJ8PTPaNigI9 ohmu9IeeP8wAmXOYIf210bUKbmNe1IvIlLP+HA/ceg7DrSYfkL7WHS0hTspsVt4HLQ 5qlpMIYmKOJR/spmaHlvKszzPf6N1yBi/n3MXwEVGS/6MTn7QFq6Ar17crSVH5Hy4C z65BTHUj2Kbm8/Wy1ppmmrXcjthuykWt1LREIQs6xchI1rh+6ezjHTV8K2OFclZtGt Cd1O+/oWUanhBzRcIDjFMRmhmmukCRWFosj6Bw6KbPd5Kx8KWrEROea3SGMZw7M7j5 8eaV7HJBxKkUQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u7kH5-0000000049W-248p; Thu, 24 Apr 2025 08:17:07 +0800 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v4 2/4] Makefile: move KERNELDOC macro to the main Makefile Date: Thu, 24 Apr 2025 08:16:22 +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:45 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 0411C5A79B; Thu, 24 Apr 2025 00:17:24 +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=1745453845; cv=none; b=MmXXwOKjI2z3r5X3Tser+p6dxjPfaXvvrkRJGJ9gk/qqws6LUYsNtqk/Rwc6MTn2Y3Q2T9RKRo2k26RfPQ7+xUHEhjvKOUj/vfNYrh5QQrx++pIh5tG1pHy2JOeISxleyKf2s+/slsCSa/AVXKd2ZNAA/B+ysHykAcTR5FIWwec= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745453845; c=relaxed/simple; bh=8dGEYgfrt2cILb+HcehoPNS3YrZDE5G2Fa+vM33+Uws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WRbdhy8l28S0coUzyjtWRDI/kcGUY1CGxLkQvIbtTpMR1mG+z5PyoINnC/SRGUFxbj+Om09EKspjXZK5GTdwuLhs/fy8H4dFV7BntNQ04JscWK7FTQbmjeGpvAE1/OTLDl9Xixm3o0mKauKdy9JBPsD5A/5Qp3XNO7W7Q6n//H4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VWlTdRev; 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="VWlTdRev" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A57BC4CEE2; Thu, 24 Apr 2025 00:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745453844; bh=8dGEYgfrt2cILb+HcehoPNS3YrZDE5G2Fa+vM33+Uws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VWlTdRev+mTVE3JVAWfpvDUvVUPHJZlj8UwBubvoz0A3hCt/Sw/ZNfzBcUQUEu+TG Luoi1iLPxRBRQz+kV5LuM6FNPX7NiMwvNQhQAIaresDknj/nIWtZH94RgcKJnn9f6/ 8yyhN2M/aa2DXD02+Gd9QBRcZgI8LrG31Vfl/3TFtynV1Fg34fwGw0/N7HgOWirh0x 9RWxu0COnFdIw2k3omzJ6PaHx/8V7KA5rq5u/CWp9XcQZFhrDFFwSLKWXVaPtKHJiO qY5GxNudnCyV1aHVfTkI8tgtthdjwDSDtuKGwZZ04An3gdR2vz1fXZVSDBmlHMVSyK pKlZ+q5ALDayQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u7kH5-0000000049Z-2A0z; Thu, 24 Apr 2025 08:17:07 +0800 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , 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 , Andy Shevchenko Subject: [PATCH v4 3/4] scripts/kernel-doc.py: don't create *.pyc files Date: Thu, 24 Apr 2025 08:16:23 +0800 Message-ID: <158b962ed7cd104f7bbfe69f499ec1cc378864db.1745453655.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:45 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 ADDB91BC3C; Thu, 24 Apr 2025 00:17:18 +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=1745453838; cv=none; b=gcw4I1G187rIZBfgAFSsZnba9BxZ8raBQzajwfnZnLyDqCCN2Ll35p6s3iuPtqVnzMA0IT8eyDKwUN73wOWLgfxM11hH92s7exZXOdvbPbiMFxC1/pCZTbcSHgvc/iv20DB0fnZx0cQGFn4yp6/ouqtDU56WXmgrO10BmoPeNHE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745453838; c=relaxed/simple; bh=1eKuPB985sA7XP0k/Jaz595uT7gavw91h7GkNlCQrZw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oxhlPBFozyBGU4GX0+AOx4Wsxt3mkEvu3ySHeQOOt1tIwf3yKG3RKZjU17i7kmY7UK/92r0B9o5SqNuu68VXpxSBuGR5kPWrQBKUXlAsIX6Anp4Hfb+Z/2Ar2oQSXW88NGIYFi03X7ZR5NoyuLVHPmmAwWgWEX02RQgwHQDMTY8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sqlfk8lx; 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="sqlfk8lx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23BBBC4CEEA; Thu, 24 Apr 2025 00:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745453838; bh=1eKuPB985sA7XP0k/Jaz595uT7gavw91h7GkNlCQrZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sqlfk8lxSpKOB3EAfi8c3iHzcjySZ81rIuKKP4FNJZ1nzQwaJMeSiTk16raQakhuP AMgR+9DGpXI9RpY5aF5TmXZfp2/xlNDK1vGXH+evOngAmuToZb3C0Uct6t1dFkzqrB yN5qUyzyXKrHQAoyG3R947PwdUhsiTWT3aMi1lie4yDVw4d5zOffEj2ZaBnT38aDJB ThmUNx4xaX/mySbSU1fLUCpfDBVvbS4+GM2n5qckNbfwkDtYvaFYsh05cqefWiks6T VljDz/l6zN6liFFOzlQ9QEtbfbuk+2ICjbeB8bNlMlFInBpKRZc9xqqY9+529CBYWV 8xC/kcfQluhWQ== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1u7kH5-0000000049c-2FLv; Thu, 24 Apr 2025 08:17:07 +0800 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Steven Rostedt (Google)" , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Ard Biesheuvel , Kris Van Hees , Laurent Pinchart , Masahiro Yamada , Miguel Ojeda , Nathan Chancellor , linux-kernel@vger.kernel.org Subject: [PATCH v4 4/4] .gitignore: ignore Python compiled bytecode Date: Thu, 24 Apr 2025 08:16:24 +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" 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 Reviewed-by: Miguel Ojeda --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f2f63e47fb88..bf5ee6e01cd4 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ *.o *.o.* *.patch +*.pyc *.rmeta *.rpm *.rsi --=20 2.49.0