Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
include: Changes to avoid warnings during compilation
Browse files Browse the repository at this point in the history
Changes to suppress warnings for enabling Werror flag in LK

Change-Id: I2e5007cfcb7fa75c04b8696efd794bdc6da47ecf
  • Loading branch information
Unnati Gandhi authored and Sridhar Parasuram committed Nov 8, 2014
1 parent c02d107 commit 7c53673
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
4 changes: 4 additions & 0 deletions include/dev/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Copyright (c) 2008, Google Inc.
* All rights reserved.
*
* Copyright (c) 2014 The Linux Foundation. All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand All @@ -26,6 +28,8 @@
* SUCH DAMAGE.
*/

#include <platform/gpio.h>

#ifndef __DEV_GPIO_H
#define __DEV_GPIO_H

Expand Down
4 changes: 4 additions & 0 deletions include/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ int platform_use_identity_mmu_mappings(void);
void platform_init_mmu_mappings(void);
addr_t platform_get_virt_to_phys_mapping(addr_t virt_addr);
addr_t platform_get_phys_to_virt_mapping(addr_t phys_addr);
addr_t get_bs_info_addr(void);

void display_init(void);
void display_shutdown(void);
Expand All @@ -56,4 +57,7 @@ void platform_uninit_timer(void);
void reboot_device(unsigned);
int set_download_mode(enum dload_mode mode);
uint32_t platform_get_smem_base_addr();
uint32_t platform_get_sclk_count(void);
void clock_config_cdc(uint32_t interface);
int platform_is_msm8939();
#endif
12 changes: 12 additions & 0 deletions include/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@
#include <debug.h>
#include <printf.h>

typedef struct {
char *fpos; /* Current position of file pointer (absolute address) */
void *base; /* Pointer to the base of the file */
unsigned short handle; /* File handle */
short flags; /* Flags (see FileFlags) */
short unget; /* 1-byte buffer for ungetc (b15=1 if non-empty) */
unsigned long alloc; /* Number of currently allocated bytes for the file */
unsigned short buffincrement; /* Number of bytes allocated at once */
} FILE;

void putc(char c);
int puts(const char *str);
int getc(char *c); // XXX not really getc
size_t fwrite(const void *buf, size_t size, size_t count, FILE *stream);
int sscanf(const char *str, const char *format, ...);

#endif

5 changes: 4 additions & 1 deletion include/stdlib.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2008 Travis Geiselbrecht
*
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
* Copyright (c) 2013, 2014 The Linux Foundation. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
Expand Down Expand Up @@ -39,6 +39,9 @@ unsigned int atoui(const char *num);
long atol(const char *num);
unsigned long atoul(const char *num);
int itoa(int num, unsigned char* str, int len, int base);
long int strtol(const char *nptr, char **endptr, int base);
char *getenv(const char *atypeofinformation);
void qsort(void *buf, size_t num, size_t size, int (*compare) (const void *, const void *));

#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
Expand Down
9 changes: 8 additions & 1 deletion include/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#ifndef __TARGET_H
#define __TARGET_H


/* Target helper functions exposed to USB driver */
typedef struct {
void (*mux_config) ();
Expand Down Expand Up @@ -76,4 +75,12 @@ bool target_is_cdp_qvga();
uint32_t target_hw_interposer();
uint32_t target_override_pll();
uint32_t target_ddr_cfg_val();
void target_usb_init(void);
void target_usb_stop(void);
uint32_t target_get_hlos_subtype(void);
void shutdown_device();
bool target_warm_boot(void);
bool target_use_signed_kernel(void);
int _emmc_recovery_init(void);
void ulpi_write(unsigned val, unsigned reg);
#endif

0 comments on commit 7c53673

Please sign in to comment.