Skip to contentSkip to conversation

stdio_dev.h: Drop the video section as it is unused

PATCH New Tom Rini 2 participants 3 messages May 2, 2018 – May 3, 2018

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 stdio_dev.h: Drop the video section as it is unused

With tighter build flags the fact that this header referenced uchar/ushort without including what typedefs it causes warnings. Rather than add another include here, drop the section in question as it is unused.

---
 include/stdio_dev.h | 18 ------------------
 1 file changed, 18 deletions(-)
include/stdio_dev.h +0 -18
index 3164fa2a5579..1ea8bff47bab 100644
@@ -49,24 +49,6 @@ struct stdio_dev {
 };
 
 /*
- * VIDEO EXTENSIONS
- */
-#define VIDEO_FORMAT_RGB_INDEXED	0x0000
-#define VIDEO_FORMAT_RGB_DIRECTCOLOR	0x0001
-#define VIDEO_FORMAT_YUYV_4_4_4		0x0010
-#define VIDEO_FORMAT_YUYV_4_2_2		0x0011
-
-typedef struct {
-	void *address;			/* Address of framebuffer		*/
-	ushort	width;			/* Horizontal resolution		*/
-	ushort	height;			/* Vertical resolution			*/
-	uchar	format;			/* Format				*/
-	uchar	colors;			/* Colors number or color depth		*/
-	void (*setcolreg) (int, int, int, int);
-	void (*getcolreg) (int, void *);
-} video_ext_t;
-
-/*
  * VARIABLES
  */
 extern struct stdio_dev *stdio_devices[];
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 stdio_dev.h: Drop the video section as it is unused

Quoted 4 lines · Tom Rini

With tighter build flags the fact that this header referenced uchar/ushort without including what typedefs it causes warnings. Rather than add another include here, drop the section in question as it is unused.

This doesn't completely fix my problem, with this patch applied I still get a build failure from this file this time for MAX_FILES, so it likely needs a "#include <stdio.h>" as well which was added via the include common.h in my previous patch

Error was:
/builddir/build/BUILD/u-boot-2018.05-rc3/include/stdio_dev.h:55:26:
error: 'MAX_FILES' undeclared here (not in a function)

Peter

Quoted 42 lines
---
 include/stdio_dev.h | 18 ------------------
 1 file changed, 18 deletions(-)
include/stdio_dev.h +0 -19
index 3164fa2a5579..1ea8bff47bab 100644
@@ -49,24 +49,6 @@ struct stdio_dev {
 };
 
 /*
- * VIDEO EXTENSIONS
- */
-#define VIDEO_FORMAT_RGB_INDEXED       0x0000
-#define VIDEO_FORMAT_RGB_DIRECTCOLOR   0x0001
-#define VIDEO_FORMAT_YUYV_4_4_4                0x0010
-#define VIDEO_FORMAT_YUYV_4_2_2                0x0011
-
-typedef struct {
-       void *address;                  /* Address of framebuffer               */
-       ushort  width;                  /* Horizontal resolution                */
-       ushort  height;                 /* Vertical resolution                  */
-       uchar   format;                 /* Format                               */
-       uchar   colors;                 /* Colors number or color depth         */
-       void (*setcolreg) (int, int, int, int);
-       void (*getcolreg) (int, void *);
-} video_ext_t;
-
-/*
  * VARIABLES
  */
 extern struct stdio_dev *stdio_devices[];
--

2.7.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

author
#2 lore raw

PATCH 1/1 stdio_dev.h: Drop the video section as it is unused

Quoted 6 lines · Peter Robinson
Quoted 4 lines · Tom Rini

With tighter build flags the fact that this header referenced uchar/ushort without including what typedefs it causes warnings. Rather than add another include here, drop the section in question as it is unused.

Quoted 8 lines

This doesn't completely fix my problem, with this patch applied I still get a build failure from this file this time for MAX_FILES, so it likely needs a "#include <stdio.h>" as well which was added via the include common.h in my previous patch

Error was:
/builddir/build/BUILD/u-boot-2018.05-rc3/include/stdio_dev.h:55:26:
error: 'MAX_FILES' undeclared here (not in a function)

If you pop in stdio.h does anything else pop up? I'll do a v2 with a separate patch to MAX_FILES / stdio_names (since a few places use 3 directly). Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180502/117cb35f/attachment.sig>