include: Further cleanup includes
Add some missing headers such as <linux/errno.h> or <linux/types.h> or <linux/kernel.h> to header files that make direct usage of things provided by these headers. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
#ifndef _ATMEL_LCD_H_
|
#ifndef _ATMEL_LCD_H_
|
||||||
#define _ATMEL_LCD_H_
|
#define _ATMEL_LCD_H_
|
||||||
|
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct atmel_lcd_plat - platform data for Atmel LCDs with driver model
|
* struct atmel_lcd_plat - platform data for Atmel LCDs with driver model
|
||||||
*
|
*
|
||||||
|
@@ -9,6 +9,8 @@
|
|||||||
#ifndef __GETOPT_H
|
#ifndef __GETOPT_H
|
||||||
#define __GETOPT_H
|
#define __GETOPT_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct getopt_state - Saved state across getopt() calls
|
* struct getopt_state - Saved state across getopt() calls
|
||||||
*/
|
*/
|
||||||
|
@@ -13,6 +13,8 @@
|
|||||||
# ifdef CONFIG_ARCH_MAP_SYSMEM
|
# ifdef CONFIG_ARCH_MAP_SYSMEM
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
# else
|
# else
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
|
static inline void *map_sysmem(phys_addr_t paddr, unsigned long len)
|
||||||
{
|
{
|
||||||
return (void *)(uintptr_t)paddr;
|
return (void *)(uintptr_t)paddr;
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
* is used to align DMA buffers.
|
* is used to align DMA buffers.
|
||||||
*/
|
*/
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
#include <linux/kernel.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <linux/ctype.h>
|
#include <linux/ctype.h>
|
||||||
|
#include <linux/errno.h>
|
||||||
|
|
||||||
/* struct in6_addr - 128 bits long IPv6 address */
|
/* struct in6_addr - 128 bits long IPv6 address */
|
||||||
struct in6_addr {
|
struct in6_addr {
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#include <bcd.h>
|
#include <bcd.h>
|
||||||
#include <rtc_def.h>
|
#include <rtc_def.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
|
||||||
typedef int64_t time64_t;
|
typedef int64_t time64_t;
|
||||||
struct udevice;
|
struct udevice;
|
||||||
|
Reference in New Issue
Block a user