mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-02 04:21:32 +00:00
Cleanup compiler warnings.
This commit is contained in:
parent
7b3e3c5954
commit
6d51e505ad
3 changed files with 5 additions and 6 deletions
|
@ -2,6 +2,8 @@
|
||||||
Changes for U-Boot 1.1.4:
|
Changes for U-Boot 1.1.4:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
* Cleanup
|
||||||
|
|
||||||
* Enable SM712 driver support for HMI1001 board.
|
* Enable SM712 driver support for HMI1001 board.
|
||||||
|
|
||||||
* Fix problems with ld version 2.16 (dot outside sections problem)
|
* Fix problems with ld version 2.16 (dot outside sections problem)
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <mpc5xxx.h>
|
#include <mpc5xxx.h>
|
||||||
#include <pci.h>
|
#include <pci.h>
|
||||||
|
#include <malloc.h>
|
||||||
|
|
||||||
#ifndef CFG_RAMBOOT
|
#ifndef CFG_RAMBOOT
|
||||||
static void sdram_start (int hi_addr)
|
static void sdram_start (int hi_addr)
|
||||||
|
@ -178,7 +179,7 @@ struct kbd_data_t* get_keys (struct kbd_data_t *kbd_data)
|
||||||
return kbd_data;
|
return kbd_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_magic (struct kbd_data_t *kbd_data, uchar *str)
|
static int compare_magic (const struct kbd_data_t *kbd_data, uchar *str)
|
||||||
{
|
{
|
||||||
char s1 = str[0];
|
char s1 = str[0];
|
||||||
char s2;
|
char s2;
|
||||||
|
@ -261,10 +262,6 @@ static uchar *key_match (const struct kbd_data_t *kbd_data)
|
||||||
|
|
||||||
#endif /* CONFIG_PREBOOT */
|
#endif /* CONFIG_PREBOOT */
|
||||||
|
|
||||||
int misc_init_f (void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
int misc_init_r (void)
|
int misc_init_r (void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_PREBOOT
|
#ifdef CONFIG_PREBOOT
|
||||||
|
|
|
@ -1574,7 +1574,7 @@ unsigned
|
||||||
NetCksum(uchar * ptr, int len)
|
NetCksum(uchar * ptr, int len)
|
||||||
{
|
{
|
||||||
ulong xsum;
|
ulong xsum;
|
||||||
ushort *p = ptr;
|
ushort *p = (ushort*)ptr;
|
||||||
|
|
||||||
xsum = 0;
|
xsum = 0;
|
||||||
while (len-- > 0)
|
while (len-- > 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue