Skip to content

Commit

Permalink
fix few warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Dusser <julien.dusser@free.fr>
  • Loading branch information
j-d-r committed Jun 28, 2020
1 parent d04fd60 commit b9b0b61
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions u-boot/common/cmd_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <common.h>
#include <command.h>
#include <console.h>
#include <cli.h>
#if defined(CONFIG_CMD_MMC)
#include <mmc.h>
Expand Down
1 change: 1 addition & 0 deletions u-boot/common/cmd_nvedit.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <serial.h>
#include <linux/stddef.h>
#include <asm/byteorder.h>
#include <console.h>
#if defined(CONFIG_CMD_NET)
#include <net.h>
#endif
Expand Down
3 changes: 3 additions & 0 deletions u-boot/common/hush.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
#include <common.h> /* cli_readline */
#include <hush.h>
#include <command.h> /* find_cmd */
#include <command.h>
#include <console.h>
#include <cli.h>

/*cmd_boot.c*/
extern int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); /* do_bootd */

Expand Down
1 change: 1 addition & 0 deletions u-boot/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include <common.h>
#include <command.h>
#include <console.h>

#if defined(CONFIG_HUSH_PARSER)
#include <hush.h>
Expand Down
1 change: 1 addition & 0 deletions u-boot/common/xyzModem.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ static int xyzModem_get_hdr(void)
switch(c){
case SOH:
xyz.total_SOH++;
/* falls through. */
case STX:
if(c == STX)
xyz.total_STX++;
Expand Down
1 change: 1 addition & 0 deletions u-boot/lib_generic/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ int vsprintf(char *buf, const char *fmt, va_list args){

case 'X':
flags |= LARGE;
/* falls through. */
case 'x':
base = 16;
break;
Expand Down
5 changes: 2 additions & 3 deletions u-boot/net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#include <common.h>
#include <command.h>
#include <net.h>
#include <console.h>
#include "bootp.h"
#include "tftp.h"
#include "rarp.h"
Expand Down Expand Up @@ -389,9 +390,7 @@ int NetLoop(proto_t protocol){
*/
NetOurIP = 0;
NetServerIP = getenv_IPaddr("serverip");
NetOurVLAN = getenv_VLAN("vlan"); /* VLANs must be read */
NetOurNativeVLAN = getenv_VLAN("nvlan");

/* falls through. */
case CDP:
NetOurVLAN = getenv_VLAN("vlan"); /* VLANs must be read */
NetOurNativeVLAN = getenv_VLAN("nvlan");
Expand Down

0 comments on commit b9b0b61

Please sign in to comment.