drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n
Subsystems (2)
PATCH 1/1 drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n
From: Arnd Bergmann <[email protected]>
Some of the debugfs functions are stubbed out in these configurations, so trying to build the .c file with the definition fails:
In file included from include/uapi/linux/posix_types.h:5,
from drivers/gpu/drm/i915/display/intel_pipe_crc.c:27:
drivers/gpu/drm/i915/display/intel_pipe_crc.c: At top level:
include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void'
8 | #define NULL ((void *)0)
| ^~~~
drivers/gpu/drm/i915/display/intel_pipe_crc.c:549:20: note: in expansion of macro 'intel_crtc_get_crc_sources'
549 | const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~Stop trying to build them by making the Makefile entries conditional, same as for the i915 driver.
--- drivers/gpu/drm/xe/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/Makefile +7 -3
@@ -213,8 +213,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_ddi.o \ i915-display/intel_ddi_buf_trans.o \ i915-display/intel_display.o \ - i915-display/intel_display_debugfs.o \ - i915-display/intel_display_debugfs_params.o \ i915-display/intel_display_device.o \ i915-display/intel_display_driver.o \ i915-display/intel_display_irq.o \
@@ -258,7 +256,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_modeset_setup.o \ i915-display/intel_modeset_verify.o \ i915-display/intel_panel.o \ - i915-display/intel_pipe_crc.o \ i915-display/intel_pmdemand.o \ i915-display/intel_pps.o \ i915-display/intel_psr.o \
@@ -275,6 +272,13 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/skl_universal_plane.o \ i915-display/skl_watermark.o +ifdef CONFIG_DEBUG_FS +xe-$(CONFIG_DRM_XE_DISPLAY) += \ + i915-display/intel_display_debugfs.o \ + i915-display/intel_display_debugfs_params.o \ + i915-display/intel_pipe_crc.o +endif + ifeq ($(CONFIG_ACPI),y) xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_acpi.o \
Signature · 1 line
2.39.2
Patchwork
CI✗ CI.Patch_applied: failure for drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n
== Series Details ==
== Series Details ==
Series: drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n
URL : https://patchwork.freedesktop.org/series/129833/
State : failure
== Summary ==
=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 7c8e91355 drm-tip: 2024y-02m-13d-12h-10m-52s UTC integration manifest === git am output follows ===
error: patch failed: drivers/gpu/drm/xe/Makefile:213
error: drivers/gpu/drm/xe/Makefile: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch
Applying: drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n Patch failed at 0001 drm/xe: skip building debugfs code for CONFIG_DEBUG_FS=n When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Quoted 15 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Some of the debugfs functions are stubbed out in these configurations, so trying to build the .c file with the definition fails:
In file included from
include/uapi/linux/posix_types.h:5,from drivers/gpu/drm/i915/display/intel_pipe_crc.c:27: drivers/gpu/drm/i915/display/intel_pipe_crc.c: At top level: include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void' 8 | #define NULL ((void *)0) | ^~~~ drivers/gpu/drm/i915/display/intel_pipe_crc.c:549:20: note: in expansion of macro 'intel_crtc_get_crc_sources' 549 | const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 2 lines
Stop trying to build them by making the
Makefileentries conditional, same as for the i915 driver.
Already fixed by commit 439987f6f471 ("drm/xe: don't build debugfs files when CONFIG_DEBUG_FS=n") in drm-xe-next.
Maybe that needs to be picked up for -fixes?
BR,
Jani.
Quoted 41 lines
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/gpu/drm/xe/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)drivers/gpu/drm/xe/Makefile +7
-3@@ -213,8 +213,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_ddi.o \ i915-display/intel_ddi_buf_trans.o \ i915-display/intel_display.o \ - i915-display/intel_display_debugfs.o \ - i915-display/intel_display_debugfs_params.o \ i915-display/intel_display_device.o \ i915-display/intel_display_driver.o \ i915-display/intel_display_irq.o \@@ -258,7 +256,6 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_modeset_setup.o \ i915-display/intel_modeset_verify.o \ i915-display/intel_panel.o \ - i915-display/intel_pipe_crc.o \ i915-display/intel_pmdemand.o \ i915-display/intel_pps.o \ i915-display/intel_psr.o \@@ -275,6 +272,13 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/skl_universal_plane.o \ i915-display/skl_watermark.o +ifdef CONFIG_DEBUG_FS +xe-$(CONFIG_DRM_XE_DISPLAY) += \ + i915-display/intel_display_debugfs.o \ + i915-display/intel_display_debugfs_params.o \ + i915-display/intel_pipe_crc.o +endif + ifeq ($(CONFIG_ACPI),y) xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_acpi.o \
Signature · 1 line
Jani Nikula, Intel
Quoted 16 lines · Jani Nikula
Quoted 15 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Some of the debugfs functions are stubbed out in these configurations, so trying to build the .c file with the definition fails:
In file included from
include/uapi/linux/posix_types.h:5,from drivers/gpu/drm/i915/display/intel_pipe_crc.c:27: drivers/gpu/drm/i915/display/intel_pipe_crc.c: At top level: include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void' 8 | #define NULL ((void *)0) | ^~~~ drivers/gpu/drm/i915/display/intel_pipe_crc.c:549:20: note: in expansion of macro 'intel_crtc_get_crc_sources' 549 | const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 7 lines
Quoted 2 lines
Stop trying to build them by making the
Makefileentries conditional, same as for the i915 driver.Already fixed by commit
439987f6f471("drm/xe: don't build debugfs files whenCONFIG_DEBUG_FS=n") in drm-xe-next.Maybe that needs to be picked up for -fixes?
I made sure that this still happens in linux-next today, but it does not seem to contain 439987f6f471.
Arnd
+Stephen
Quoted 20 lines · Arnd Bergmann
Quoted 19 lines · Jani Nikula
Quoted 17 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Some of the debugfs functions are stubbed out in these configurations, so trying to build the .c file with the definition fails:
In file included from
include/uapi/linux/posix_types.h:5,from drivers/gpu/drm/i915/display/intel_pipe_crc.c:27: drivers/gpu/drm/i915/display/intel_pipe_crc.c: At top level: include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void' 8 | #define NULL ((void *)0) | ^~~~ drivers/gpu/drm/i915/display/intel_pipe_crc.c:549:20: note: in expansion of macro 'intel_crtc_get_crc_sources' 549 | const char *const *intel_crtc_get_crc_sources(struct drm_crtc *crtc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~Stop trying to build them by making the
Makefileentries conditional, same as for the i915 driver.
Quoted 7 lines
Quoted 4 lines
Already fixed by commit
439987f6f471("drm/xe: don't build debugfs files whenCONFIG_DEBUG_FS=n") in drm-xe-next.Maybe that needs to be picked up for -fixes?
I made sure that this still happens in linux-next today, but it does not seem to contain
439987f6f471.
Looking at https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2d5c7b7eb345249cb34d42cbc2b97b4c57ea944e
it seems we still don't have drm-xe-next branch in linux-next.
Stephen, could you please add it? Or do I have to do something on my end before that? This is the branch:
https://gitlab.freedesktop.org/drm/xe/kernel drm-xe-next
thanks
Lucas De Marchi
Quoted 2 lines
Arnd
Hi Lucas,
Quoted 8 lines · On Tue, 20 Feb 2024 23:29:54 -0600 Lucas De Marchi <[email protected]>…
Looking at https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2d5c7b7eb345249cb34d42cbc2b97b4c57ea944e
it seems we still don't have drm-xe-next branch in linux-next.Stephen, could you please add it? Or do I have to do something on my end before that? This is the branch:
https://gitlab.freedesktop.org/drm/xe/kernel drm-xe-next
Added from tomorrow. Currently the only contact is yourself. Do you want anyone else (or a mailing list) as well?
Do you want the drm-xe-fixes branch included as well?
Thanks for adding your subsystem tree as a participant of linux-next. As you may know, this is not a judgement of your code. The purpose of linux-next is for integration testing and to lower the impact of conflicts between subsystems in the next merge window.
You will need to ensure that the patches/commits in your tree/series have been:
* submitted under GPL v2 (or later) and include the Contributor's Signed-off-by,
* posted to the relevant mailing list,
* reviewed by you (or another maintainer of your subsystem tree),
* successfully unit tested, and
* destined for the current or next Linux merge window.
Basically, this should be just what you would send to Linus (or ask him to fetch). It is allowed to be rebased if you deem it necessary.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected]
Quoted 10 lines · Stephen Rothwell
Hi Lucas,
Quoted 7 lines · On Tue, 20 Feb 2024 23:29:54 -0600 Lucas De Marchi <[email protected]>…
Looking at https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2d5c7b7eb345249cb34d42cbc2b97b4c57ea944e
it seems we still don't have drm-xe-next branch in linux-next.Stephen, could you please add it? Or do I have to do something on my end before that? This is the branch:
Quoted 6 lines
Quoted 1 line
https://gitlab.freedesktop.org/drm/xe/kernel drm-xe-next
Added from tomorrow. Currently the only contact is yourself. Do you want anyone else (or a mailing list) as well?
Do you want the drm-xe-fixes branch included as well?
I don't think it's needed since drm-xe-next covers what is in drm-xe-fixes. Please add other maintainers and mailing list:
M: Oded Gabbay <[email protected]> M: Thomas Hellström <[email protected]> L: [email protected]
Looking at drm-intel and drm-misc, they are using a special for-linux-next. We may eventually adopt the same workflow, but I will have to check with other maintainers.
thanks
Lucas De Marchi
Quoted 22 lines
Thanks for adding your subsystem tree as a participant of linux-next. As you may know, this is not a judgement of your code. The purpose of linux-next is for integration testing and to lower the impact of conflicts between subsystems in the next merge window.
You will need to ensure that the patches/commits in your tree/series have been:
* submitted under GPL v2 (or later) and include the Contributor's Signed-off-by,
* posted to the relevant mailing list,
* reviewed by you (or another maintainer of your subsystem tree),
* successfully unit tested, and
* destined for the current or next Linux merge window.Basically, this should be just what you would send to Linus (or ask him to fetch). It is allowed to be rebased if you deem it necessary.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected]
Hi Lucas,
Quoted 7 lines · On Wed, 21 Feb 2024 13:45:35 -0600 Lucas De Marchi <[email protected]>…
I don't think it's needed since drm-xe-next covers what is in drm-xe-fixes. Please add other maintainers and mailing list:
M: Oded Gabbay <[email protected]> M: Thomas Hellström <[email protected]> L: [email protected]
Added.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 3 lines · Lucas De Marchi
Looking at drm-intel and drm-misc, they are using a special for-linux-next. We may eventually adopt the same workflow, but I will have to check with other maintainers.
The idea is to try to better reflect what's actually going to next. For example, drm-intel-next starts targeting "next next" after about -rc6. But we haven't properly automated the cutoff point, it only kicks in at release. So there's still a window when linux-next sees "next next" stuff that gets dropped. Using drm-xe-next directly makes for a longer window.
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel