1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: reduce inclusion of unnecessary headers

Remove those file which are not needed by .c files
or already include because the headers already needs them.
This commit is contained in:
Zdenek Kabelac 2014-04-17 10:48:55 +02:00
parent 589983a257
commit 559c003ee2
14 changed files with 5 additions and 30 deletions

View File

@ -19,7 +19,6 @@
#include "dev-cache.h"
#include "dev-type.h"
#include <stdio.h>
#include <limits.h>
/*

View File

@ -16,8 +16,7 @@
#ifndef _LVM_CONFIG_H
#define _LVM_CONFIG_H
#include "lvm-types.h"
#include "defaults.h"
#include "libdevmapper.h"
/* 16 bits: 3 bits for major, 4 bits for minor, 9 bits for patchlevel */
/* FIXME Max LVM version supported: 7.15.511. Extend bits when needed. */

View File

@ -65,6 +65,7 @@
* that parent nodes are consistent with versioning, no check done
* if parent node is older or the same age as any child node!)
*/
#include "defaults.h"
cfg_section(root_CFG_SECTION, "(root)", root_CFG_SECTION, 0, vsn(0, 0, 0), NULL)

View File

@ -16,9 +16,6 @@
#ifndef _LVM_TYPES_H
#define _LVM_TYPES_H
#include <sys/types.h>
#include <inttypes.h>
#include "libdevmapper.h"
struct str_list {

View File

@ -17,7 +17,6 @@
#define _LVM_TEXT_IMPORT_EXPORT_H
#include "config.h"
#include "lvm-types.h"
#include "metadata.h"
#include <stdio.h>

View File

@ -21,7 +21,6 @@
#include "text_export.h"
#include "text_import.h"
#include "config.h"
#include "defaults.h"
#include "lvm-string.h"
#include "targets.h"
#include "activate.h"

View File

@ -43,11 +43,6 @@
# include "lvm-types.h"
#endif
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#endif

View File

@ -16,12 +16,12 @@
#ifndef _LVM_STRING_H
#define _LVM_STRING_H
#include <stdio.h>
#include <stdarg.h>
#define NAME_LEN 128
#define UUID_PREFIX "LVM-"
#include <sys/types.h>
struct dm_pool;
struct pool;
struct logical_volume;

View File

@ -13,7 +13,6 @@
*/
#include "lib.h"
#include "toolcontext.h"
#include "segtype.h"
#include "display.h"
#include "text_export.h"
@ -25,7 +24,6 @@
#include "activate.h"
#include "metadata.h"
#include "lv_alloc.h"
#include "defaults.h"
static const char *_raid_name(const struct lv_segment *seg)
{

View File

@ -15,7 +15,6 @@
#include "lib.h"
#include "properties.h"
#include "activate.h"
#include "lvm-types.h"
#include "metadata.h"

View File

@ -14,14 +14,12 @@
*/
#include "lib.h"
#include "toolcontext.h"
#include "metadata.h"
#include "segtype.h"
#include "text_export.h"
#include "config.h"
#include "activate.h"
#include "str_list.h"
#include "defaults.h"
#define SEG_LOG_ERROR(t, p...) \
log_error(t " segment %s of logical volume %s.", ## p, \

View File

@ -13,18 +13,12 @@
*/
#include "lib.h"
#include "toolcontext.h"
#include "metadata.h"
#include "segtype.h"
#include "text_export.h"
#include "config.h"
#include "activate.h"
#include "str_list.h"
#include "defaults.h"
#ifdef DMEVENTD
# include "libdevmapper-event.h"
#endif
/* Dm kernel module name for thin provisiong */
static const char _thin_pool_module[] = "thin-pool";

View File

@ -15,10 +15,8 @@
#include "lib.h"
#include "toolcontext.h"
#include "segtype.h"
#include "display.h"
#include "text_export.h"
#include "config.h"
#include "activate.h"
static const char *_unknown_name(const struct lv_segment *seg)
{

View File

@ -13,7 +13,6 @@
*/
#include "lib.h"
#include "toolcontext.h"
#include "segtype.h"
#include "display.h"
#include "config.h"