svn_rev_369
include asm-generic in errno.h instead of all other files
This commit is contained in:
parent
ca69a14849
commit
46743ea28f
|
@ -4,7 +4,6 @@
|
|||
#include <asm/arch/linux.h>
|
||||
#include <init.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
|
||||
static struct device_d tap_device = {
|
||||
.name = "tap",
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <asm/arch/linux.h>
|
||||
#include <init.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <asm/arch/hostfile.h>
|
||||
#include <xfuncs.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <readkey.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <xfuncs.h>
|
||||
|
||||
#define TABSPACE 8
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include <command.h>
|
||||
#include <fs.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <getopt.h>
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include <driver.h>
|
||||
#include <malloc.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <fs.h>
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <environment.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <driver.h>
|
||||
#include <net.h>
|
||||
#include <fs.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <command.h>
|
||||
#include <driver.h>
|
||||
#include <malloc.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <errno.h>
|
||||
|
||||
static ulong env_size;
|
||||
static char *env_name_spec;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <driver.h>
|
||||
#include <malloc.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <fs.h>
|
||||
#include <fcntl.h>
|
||||
#include <linux/stat.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <common.h>
|
||||
#include <mem_malloc.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <errno.h>
|
||||
|
||||
/*
|
||||
* Begin and End of memory area for malloc(), and current "brk"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <init.h>
|
||||
#include <driver.h>
|
||||
#include <malloc.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <errno.h>
|
||||
#include <partition.h>
|
||||
|
||||
static void dev_del_partitions(struct device_d *dev)
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include <driver.h>
|
||||
#include <init.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <fs.h>
|
||||
#include <xfuncs.h>
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <fs.h>
|
||||
#include <command.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <linux/stat.h>
|
||||
|
||||
static int devfs_read(struct device_d *_dev, FILE *f, void *buf, size_t size)
|
||||
|
|
1
fs/fs.c
1
fs/fs.c
|
@ -2,7 +2,6 @@
|
|||
#include <fs.h>
|
||||
#include <driver.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <fs.h>
|
||||
#include <command.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <linux/stat.h>
|
||||
#include <xfuncs.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef __ERRNO_H
|
||||
#define __ERRNO_H
|
||||
|
||||
#include <asm-generic/errno.h>
|
||||
|
||||
extern int errno;
|
||||
|
||||
void perror(const char *s);
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <init.h>
|
||||
#include <driver.h>
|
||||
#include <malloc.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <errno.h>
|
||||
|
||||
static struct device_d global_dev;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <malloc.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <errno.h>
|
||||
#include <asm-generic/errno.h>
|
||||
#include <fs.h>
|
||||
|
||||
int cmd_get_data_size(char* arg, int default_size)
|
||||
|
|
Loading…
Reference in New Issue