* [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c
@ 2024-01-31 20:46 Paz Zcharya
2024-02-01 9:22 ` Jani Nikula
0 siblings, 1 reply; 5+ messages in thread
From: Paz Zcharya @ 2024-01-31 20:46 UTC (permalink / raw)
To: Jouni Högander, Jani Nikula, Luca Coelho
Cc: Subrata Banik, intel-gfx, linux-kernel, dri-devel, Manasi Navare,
Sean Paul, Marcin Wojtas, Drew Davenport, Paz Zcharya,
khaled.almahallawy
Commit 8015bee0bfec ("drm/i915/display: Add framework to add parameters
specific to display") added the file intel_display_debugfs_params.c,
which calls the functions "debugfs_create_{bool, ulong, str}" -- all of
which are defined in <linux/debugfs.h>. The missing inclusion of this
header file is breaking the ChromeOS build -- add an explicit include
to fix that.
Signed-off-by: Paz Zcharya <pazz@chromium.org>
---
drivers/gpu/drm/i915/display/intel_display_debugfs_params.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c b/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
index b7e68eb62452..f35718748555 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
@@ -3,6 +3,7 @@
* Copyright © 2023 Intel Corporation
*/
+#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <drm/drm_drv.h>
--
2.43.0.594.gd9cf4e227d-goog
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c
2024-01-31 20:46 [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c Paz Zcharya
@ 2024-02-01 9:22 ` Jani Nikula
2024-02-01 14:58 ` Paz Zcharya
0 siblings, 1 reply; 5+ messages in thread
From: Jani Nikula @ 2024-02-01 9:22 UTC (permalink / raw)
To: Paz Zcharya, Jouni Högander, Luca Coelho
Cc: Subrata Banik, intel-gfx, linux-kernel, dri-devel, Manasi Navare,
Sean Paul, Marcin Wojtas, Drew Davenport, Paz Zcharya,
khaled.almahallawy
On Wed, 31 Jan 2024, Paz Zcharya <pazz@chromium.org> wrote:
> Commit 8015bee0bfec ("drm/i915/display: Add framework to add parameters
> specific to display") added the file intel_display_debugfs_params.c,
> which calls the functions "debugfs_create_{bool, ulong, str}" -- all of
> which are defined in <linux/debugfs.h>. The missing inclusion of this
> header file is breaking the ChromeOS build -- add an explicit include
> to fix that.
>
Thanks for the patch, apparently in our configs some paths lead to
debugfs.h. Just goes on to show how interdependent the kernel headers
are.
Out of curiousity, what value do you have for CONFIG_DEBUG_FS kconfig?
Fixes: 8015bee0bfec ("drm/i915/display: Add framework to add parameters specific to display")
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
BR,
Jani.
> Signed-off-by: Paz Zcharya <pazz@chromium.org>
> ---
> drivers/gpu/drm/i915/display/intel_display_debugfs_params.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c b/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
> index b7e68eb62452..f35718748555 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
> @@ -3,6 +3,7 @@
> * Copyright © 2023 Intel Corporation
> */
>
> +#include <linux/debugfs.h>
> #include <linux/kernel.h>
>
> #include <drm/drm_drv.h>
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c
2024-02-01 9:22 ` Jani Nikula
@ 2024-02-01 14:58 ` Paz Zcharya
2024-02-01 15:16 ` Jani Nikula
0 siblings, 1 reply; 5+ messages in thread
From: Paz Zcharya @ 2024-02-01 14:58 UTC (permalink / raw)
To: Jani Nikula
Cc: Jouni Högander, Luca Coelho, Subrata Banik, Manasi Navare,
Drew Davenport, Sean Paul, Marcin Wojtas, khaled.almahallawy,
intel-gfx, linux-kernel, dri-devel
On Thu, Feb 01, 2024 at 11:22:16AM +0200, Jani Nikula wrote:
> On Wed, 31 Jan 2024, Paz Zcharya <pazz@chromium.org> wrote:
> > Commit 8015bee0bfec ("drm/i915/display: Add framework to add parameters
> > specific to display") added the file intel_display_debugfs_params.c,
> > which calls the functions "debugfs_create_{bool, ulong, str}" -- all of
> > which are defined in <linux/debugfs.h>. The missing inclusion of this
> > header file is breaking the ChromeOS build -- add an explicit include
> > to fix that.
> >
>
> Thanks for the patch, apparently in our configs some paths lead to
> debugfs.h. Just goes on to show how interdependent the kernel headers
> are.
>
> Out of curiousity, what value do you have for CONFIG_DEBUG_FS kconfig?
>
> Fixes: 8015bee0bfec ("drm/i915/display: Add framework to add parameters specific to display")
> Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> BR,
> Jani.
>
Thank you so much for the super prompt reply!
In ChromeOS the value is CONFIG_DEBUG_FS=y.
Best,
Paz
>
> > Signed-off-by: Paz Zcharya <pazz@chromium.org>
> > ---
> > drivers/gpu/drm/i915/display/intel_display_debugfs_params.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c b/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
> > index b7e68eb62452..f35718748555 100644
> > --- a/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
> > +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs_params.c
> > @@ -3,6 +3,7 @@
> > * Copyright © 2023 Intel Corporation
> > */
> >
> > +#include <linux/debugfs.h>
> > #include <linux/kernel.h>
> >
> > #include <drm/drm_drv.h>
>
> --
> Jani Nikula, Intel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c
2024-02-01 14:58 ` Paz Zcharya
@ 2024-02-01 15:16 ` Jani Nikula
2024-02-02 9:35 ` Jani Nikula
0 siblings, 1 reply; 5+ messages in thread
From: Jani Nikula @ 2024-02-01 15:16 UTC (permalink / raw)
To: Paz Zcharya
Cc: Jouni Högander, Luca Coelho, Subrata Banik, Manasi Navare,
Drew Davenport, Sean Paul, Marcin Wojtas, khaled.almahallawy,
intel-gfx, linux-kernel, dri-devel
On Thu, 01 Feb 2024, Paz Zcharya <pazz@chromium.org> wrote:
> Thank you so much for the super prompt reply!
FYI, looks like we've got some hiccup in CI, will merge after we get
results.
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c
2024-02-01 15:16 ` Jani Nikula
@ 2024-02-02 9:35 ` Jani Nikula
0 siblings, 0 replies; 5+ messages in thread
From: Jani Nikula @ 2024-02-02 9:35 UTC (permalink / raw)
To: Paz Zcharya
Cc: Jouni Högander, Luca Coelho, Subrata Banik, Manasi Navare,
Drew Davenport, Sean Paul, Marcin Wojtas, khaled.almahallawy,
intel-gfx, linux-kernel, dri-devel
On Thu, 01 Feb 2024, Jani Nikula <jani.nikula@intel.com> wrote:
> On Thu, 01 Feb 2024, Paz Zcharya <pazz@chromium.org> wrote:
>> Thank you so much for the super prompt reply!
>
> FYI, looks like we've got some hiccup in CI, will merge after we get
> results.
Pushed to drm-intel-next, thanks for the patch.
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-02 9:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 20:46 [PATCH] drm/i915/display: Include debugfs.h in intel_display_debugfs_params.c Paz Zcharya
2024-02-01 9:22 ` Jani Nikula
2024-02-01 14:58 ` Paz Zcharya
2024-02-01 15:16 ` Jani Nikula
2024-02-02 9:35 ` Jani Nikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).