Skip to content

Commit 2d80245

Browse files
arndbtomba
authored andcommitted
drm/omap: include linux/seq_file.h where needed
The omapdrm driver relies on this header to be included implicitly, but this does not always work, and I get this error in randconfig builds: gpu/drm/omapdrm/dss/hdmi_phy.c: In function 'hdmi_phy_dump': gpu/drm/omapdrm/dss/hdmi_phy.c:34:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] gpu/drm/omapdrm/dss/hdmi_wp.c: In function 'hdmi_wp_dump': gpu/drm/omapdrm/dss/hdmi_wp.c:26:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] gpu/drm/omapdrm/dss/hdmi_pll.c: In function 'hdmi_pll_dump': gpu/drm/omapdrm/dss/hdmi_pll.c:30:2: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] This adds the #include statements in all files that have a seq_printf statement. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent 62cb075 commit 2d80245

File tree

7 files changed

+9
-0
lines changed

7 files changed

+9
-0
lines changed

drivers/gpu/drm/omapdrm/dss/hdmi_phy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/io.h>
1414
#include <linux/platform_device.h>
1515
#include <linux/slab.h>
16+
#include <linux/seq_file.h>
1617
#include <video/omapdss.h>
1718

1819
#include "dss.h"

drivers/gpu/drm/omapdrm/dss/hdmi_pll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/io.h>
1717
#include <linux/platform_device.h>
1818
#include <linux/clk.h>
19+
#include <linux/seq_file.h>
1920

2021
#include <video/omapdss.h>
2122

drivers/gpu/drm/omapdrm/dss/hdmi_wp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/err.h>
1515
#include <linux/io.h>
1616
#include <linux/platform_device.h>
17+
#include <linux/seq_file.h>
1718
#include <video/omapdss.h>
1819

1920
#include "dss.h"

drivers/gpu/drm/omapdrm/omap_debugfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include <linux/seq_file.h>
21+
2022
#include <drm/drm_crtc.h>
2123
#include <drm/drm_fb_helper.h>
2224

drivers/gpu/drm/omapdrm/omap_dmm_tiler.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <linux/module.h>
2828
#include <linux/platform_device.h> /* platform_device() */
2929
#include <linux/sched.h>
30+
#include <linux/seq_file.h>
3031
#include <linux/slab.h>
3132
#include <linux/time.h>
3233
#include <linux/vmalloc.h>

drivers/gpu/drm/omapdrm/omap_fb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include <linux/seq_file.h>
21+
2022
#include <drm/drm_crtc.h>
2123
#include <drm/drm_crtc_helper.h>
2224

drivers/gpu/drm/omapdrm/omap_gem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20+
#include <linux/seq_file.h>
2021
#include <linux/shmem_fs.h>
2122
#include <linux/spinlock.h>
2223
#include <linux/pfn_t.h>

0 commit comments

Comments
 (0)