Skip to content

Commit 5b78263

Browse files
ideaktursulin
authored andcommitted
drm/i915: Add missing forward declarations/includes to display power headers
Add the seq_file struct forward declaration to intel_display_power.h fixing the build error below. While at it add the rest of missing forward declarations/includes to the display power header files. In file included from <command-line>: ./../drivers/gpu/drm/i915/display/intel_display_power.h:255:70: error: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 255 | void intel_display_power_debug(struct drm_i915_private *i915, struct seq_file *m); | ^~~~~~~~ Closes: https://lore.kernel.org/intel-gfx/[email protected]/ Reported-by: Randy Dunlap <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]> # build-tested Reviewed-by: Jouni Högander <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit f4fab13) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent 49ad6e9 commit 5b78263

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

drivers/gpu/drm/i915/display/intel_display_power.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#ifndef __INTEL_DISPLAY_POWER_H__
77
#define __INTEL_DISPLAY_POWER_H__
88

9+
#include <linux/mutex.h>
10+
#include <linux/workqueue.h>
11+
912
#include "intel_wakeref.h"
1013

1114
enum aux_ch;
@@ -16,6 +19,7 @@ enum port;
1619
struct drm_i915_private;
1720
struct i915_power_well;
1821
struct intel_encoder;
22+
struct seq_file;
1923

2024
/*
2125
* Keep the pipe, transcoder, port (DDI_LANES,DDI_IO,AUX) domain instances

drivers/gpu/drm/i915/display/intel_display_power_well.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
struct drm_i915_private;
1414
struct i915_power_well;
15+
struct i915_power_well_ops;
16+
struct intel_encoder;
1517

1618
#define for_each_power_well(__dev_priv, __power_well) \
1719
for ((__power_well) = (__dev_priv)->display.power.domains.power_wells; \

0 commit comments

Comments
 (0)