Skip to contentSkip to conversation

board/ti/beagle/beagle.c: Fix build warnings

PATCH New Anatolij Gustschin 2 participants 2 messages Mar 28, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board/ti/beagle/beagle.c: Fix build warnings

Fix:
beagle.c:257:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
beagle.c:257:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]

Also make beagle_dvi_pup() checkpatch clean, fix:
ERROR: open brace '{' following function declarations go on the next line

---
 board/ti/beagle/beagle.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
board/ti/beagle/beagle.c +2 -1
index 114ab7e..8b07eef 100644
@@ -254,7 +254,8 @@ void beagle_display_init(void)
 /*
  * Enable DVI power
  */
-static void beagle_dvi_pup() {
+static void beagle_dvi_pup(void)
+{
 	uchar val;
 
 	switch (get_board_revision()) {
Signature · 1 line
1.7.7.6
#1 lore raw

PATCH 1/1 board/ti/beagle/beagle.c: Fix build warnings

Quoted 6 lines · Anatolij Gustschin

Fix:
beagle.c:257:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
beagle.c:257:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]

Quoted 6 lines

Also make beagle_dvi_pup() checkpatch clean, fix:
ERROR: open brace '{' following function declarations go on the next line

Queued for u-boot-ti/master (Albert hasn't pushed his latest updates yet), thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120328/e6b2a8e0/attachment.pgp>