UBI: make ubi-header.h local
The new trend in linux is not to store headers which define on-media format in the include/ directory, but instead, store them locally. This is because these headers "do not define any kernel<->userspace interface". Do so for UBI as well. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
a4f0fcdfb2
commit
92a74f1c1c
@ -24,11 +24,11 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This file defines the layout of UBI headers and all the other UBI on-flash
|
* This file defines the layout of UBI headers and all the other UBI on-flash
|
||||||
* data structures. May be included by user-space.
|
* data structures.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __UBI_HEADER_H__
|
#ifndef __UBI_MEDIA_H__
|
||||||
#define __UBI_HEADER_H__
|
#define __UBI_MEDIA_H__
|
||||||
|
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
|
||||||
@ -369,4 +369,4 @@ struct ubi_vtbl_record {
|
|||||||
__be32 crc;
|
__be32 crc;
|
||||||
} __attribute__ ((packed));
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
#endif /* !__UBI_HEADER_H__ */
|
#endif /* !__UBI_MEDIA_H__ */
|
@ -37,10 +37,9 @@
|
|||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
#include <linux/mtd/mtd.h>
|
#include <linux/mtd/mtd.h>
|
||||||
|
|
||||||
#include <mtd/ubi-header.h>
|
|
||||||
#include <linux/mtd/ubi.h>
|
#include <linux/mtd/ubi.h>
|
||||||
|
|
||||||
|
#include "ubi-media.h"
|
||||||
#include "scan.h"
|
#include "scan.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
@ -3,5 +3,4 @@ header-y += jffs2-user.h
|
|||||||
header-y += mtd-abi.h
|
header-y += mtd-abi.h
|
||||||
header-y += mtd-user.h
|
header-y += mtd-user.h
|
||||||
header-y += nftl-user.h
|
header-y += nftl-user.h
|
||||||
header-y += ubi-header.h
|
|
||||||
header-y += ubi-user.h
|
header-y += ubi-user.h
|
||||||
|
Loading…
Reference in New Issue
Block a user