Warning fixes for Sparc32, Sparc64, PPC

Fix warnings that would be caused by gcc flag -Wwrite-strings and
-Wmissing-prototypes. Also fix most PPC specific warnings.


git-svn-id: svn://coreboot.org/openbios/openbios-devel@288 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-12-14 12:54:23 +00:00
parent bb20ce577c
commit c5d270009e
17 changed files with 54 additions and 48 deletions

View File

@@ -41,7 +41,7 @@ struct esp_dma {
typedef struct sd_private {
unsigned int bs;
char *media_str;
const char *media_str;
uint32_t sectors;
uint8_t media;
uint8_t id;
@@ -182,7 +182,7 @@ read_capacity(esp_private_t *esp, sd_private_t *sd)
static unsigned int
inquiry(esp_private_t *esp, sd_private_t *sd)
{
char *media = "UNKNOWN";
const char *media = "UNKNOWN";
// Setup command = Inquiry
memset(esp->buffer, 0, 7);

View File

@@ -157,7 +157,7 @@ ob_ide_400ns_delay(struct ide_drive *drive)
}
static void
ob_ide_error(struct ide_drive *drive, unsigned char stat, char *msg)
ob_ide_error(struct ide_drive *drive, unsigned char stat, const char *msg)
{
struct ide_channel *chan = drive->channel;
unsigned char err;
@@ -1285,8 +1285,8 @@ int ob_ide_init(void)
{
int i, j;
char * nodetemp_chan = "/pci/isa/ide%d";
char * nodetemp = "/pci/isa/ide%d/%s";
const char *nodetemp_chan = "/pci/isa/ide%d";
const char *nodetemp = "/pci/isa/ide%d/%s";
char nodebuff[32];
phandle_t dnode;
@@ -1336,7 +1336,7 @@ int ob_ide_init(void)
printk("ide%d: [io ports 0x%x-0x%x,0x%x]\n", i, chan->io_regs[0], chan->io_regs[0] + 7, chan->io_regs[8]);
for (j = 0; j < 2; j++) {
struct ide_drive *drive = &chan->drives[j];
char *media = "UNKNOWN";
const char *media = "UNKNOWN";
if (!drive->present)
continue;