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

cleanup: drop unneeded included header files

This headers were not resolving anything used for compiled .c files.
Remove unused util.c file.
This commit is contained in:
Zdenek Kabelac 2012-08-16 19:24:09 +02:00
parent 6d0abc6b48
commit 286cd2006b
47 changed files with 0 additions and 117 deletions

View File

@ -51,9 +51,6 @@
*/ */
#include "clvmd-common.h" #include "clvmd-common.h"
#include <pthread.h>
#include "clvmd-comms.h" #include "clvmd-comms.h"
#include "clvm.h" #include "clvm.h"
#include "clvmd.h" #include "clvmd.h"

View File

@ -39,8 +39,6 @@
#include <arpa/inet.h> /* for htonl, ntohl */ #include <arpa/inet.h> /* for htonl, ntohl */
#ifdef linux #ifdef linux
# include <malloc.h>
/* /*
* Kernel version 2.6.36 and higher has * Kernel version 2.6.36 and higher has
* new OOM killer adjustment interface. * new OOM killer adjustment interface.

View File

@ -16,8 +16,6 @@
#include "log.h" #include "log.h"
#include "lvm2cmd.h" #include "lvm2cmd.h"
#include "errors.h"
#include "libdevmapper-event.h"
#include "dmeventd_lvm.h" #include "dmeventd_lvm.h"
#include <pthread.h> #include <pthread.h>

View File

@ -19,8 +19,6 @@
#include "libdevmapper-event.h" #include "libdevmapper-event.h"
#include "dmeventd_lvm.h" #include "dmeventd_lvm.h"
#include "lvm-string.h"
#include <sys/wait.h> #include <sys/wait.h>
#include <syslog.h> /* FIXME Replace syslog with multilog */ #include <syslog.h> /* FIXME Replace syslog with multilog */
/* FIXME Missing openlog? */ /* FIXME Missing openlog? */

View File

@ -19,8 +19,6 @@
#include "libdevmapper-event.h" #include "libdevmapper-event.h"
#include "dmeventd_lvm.h" #include "dmeventd_lvm.h"
#include "lvm-string.h"
#include <sys/wait.h> #include <sys/wait.h>
#include <syslog.h> /* FIXME Replace syslog with multilog */ #include <syslog.h> /* FIXME Replace syslog with multilog */
/* FIXME Missing openlog? */ /* FIXME Missing openlog? */

View File

@ -21,7 +21,6 @@
#include <assert.h> #include <assert.h>
#include <pthread.h> #include <pthread.h>
#include <malloc.h>
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>

View File

@ -103,7 +103,6 @@ SOURCES =\
misc/lvm-string.c \ misc/lvm-string.c \
misc/lvm-wrappers.c \ misc/lvm-wrappers.c \
misc/lvm-percent.c \ misc/lvm-percent.c \
misc/util.c \
mm/memlock.c \ mm/memlock.c \
report/properties.c \ report/properties.c \
report/report.c \ report/report.c \

View File

@ -14,7 +14,6 @@
*/ */
#include "lib.h" #include "lib.h"
#include "str_list.h"
#include "dev_manager.h" #include "dev_manager.h"
#include "lvm-string.h" #include "lvm-string.h"
#include "fs.h" #include "fs.h"

1
lib/cache/lvmetad.c vendored
View File

@ -20,7 +20,6 @@
#include "lvmcache.h" #include "lvmcache.h"
#include "lvmetad-client.h" #include "lvmetad-client.h"
#include "format-text.h" // TODO for disk_locn, used as a DA representation #include "format-text.h" // TODO for disk_locn, used as a DA representation
#include "filter.h"
static int _using_lvmetad = 0; static int _using_lvmetad = 0;
static daemon_handle _lvmetad; static daemon_handle _lvmetad;

View File

@ -21,14 +21,12 @@
#include "device.h" #include "device.h"
#include "str_list.h" #include "str_list.h"
#include "toolcontext.h" #include "toolcontext.h"
#include "lvm-string.h"
#include "lvm-file.h" #include "lvm-file.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <ctype.h>
#include <assert.h> #include <assert.h>
struct config_file { struct config_file {

View File

@ -14,8 +14,6 @@
#include "lib.h" #include "lib.h"
#include "metadata.h" #include "metadata.h"
#include "xlate.h"
#include "filter.h"
#ifdef linux #ifdef linux

View File

@ -16,15 +16,10 @@
#include "toolcontext.h" #include "toolcontext.h"
#include "segtype.h" #include "segtype.h"
#include "display.h" #include "display.h"
#include "text_export.h"
#include "text_import.h"
#include "config.h" #include "config.h"
#include "str_list.h" #include "str_list.h"
#include "targets.h"
#include "lvm-string.h"
#include "activate.h" #include "activate.h"
#include "str_list.h" #include "str_list.h"
#include "metadata.h"
static const char *_errseg_name(const struct lv_segment *seg) static const char *_errseg_name(const struct lv_segment *seg)
{ {

View File

@ -15,7 +15,6 @@
#include "lib.h" #include "lib.h"
#include "filter-md.h" #include "filter-md.h"
#include "metadata.h"
#ifdef linux #ifdef linux

View File

@ -14,7 +14,6 @@
#include "lib.h" #include "lib.h"
#include "filter-sysfs.h" #include "filter-sysfs.h"
#include "lvm-string.h"
#ifdef linux #ifdef linux

View File

@ -25,7 +25,6 @@
#include "segtype.h" #include "segtype.h"
#include "pv_alloc.h" #include "pv_alloc.h"
#include "display.h" #include "display.h"
#include "lvmcache.h"
#include "metadata.h" #include "metadata.h"
#include <time.h> #include <time.h>

View File

@ -16,7 +16,6 @@
#include "lib.h" #include "lib.h"
#include "label.h" #include "label.h"
#include "metadata.h" #include "metadata.h"
#include "lvmcache.h"
#include "disk_rep.h" #include "disk_rep.h"
#include "sptype_names.h" #include "sptype_names.h"
#include "lv_alloc.h" #include "lv_alloc.h"

View File

@ -16,7 +16,6 @@
#include "lib.h" #include "lib.h"
#include "label.h" #include "label.h"
#include "metadata.h" #include "metadata.h"
#include "xlate.h"
#include "disk_rep.h" #include "disk_rep.h"
#include "pool_label.h" #include "pool_label.h"

View File

@ -25,7 +25,6 @@
#include <dirent.h> #include <dirent.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/file.h>
#include <fcntl.h> #include <fcntl.h>
#include <time.h> #include <time.h>

View File

@ -16,7 +16,6 @@
#include "lib.h" #include "lib.h"
#include "archiver.h" #include "archiver.h"
#include "format-text.h" #include "format-text.h"
#include "lvm-file.h"
#include "lvm-string.h" #include "lvm-string.h"
#include "lvmcache.h" #include "lvmcache.h"
#include "toolcontext.h" #include "toolcontext.h"

View File

@ -27,12 +27,10 @@
#include "crc.h" #include "crc.h"
#include "xlate.h" #include "xlate.h"
#include "label.h" #include "label.h"
#include "memlock.h"
#include "lvmcache.h" #include "lvmcache.h"
#include "lvmetad.h" #include "lvmetad.h"
#include <unistd.h> #include <unistd.h>
#include <sys/file.h>
#include <sys/param.h> #include <sys/param.h>
#include <limits.h> #include <limits.h>
#include <dirent.h> #include <dirent.h>

View File

@ -16,9 +16,6 @@
#include "lib.h" #include "lib.h"
#include "metadata.h" #include "metadata.h"
#include "import-export.h" #include "import-export.h"
#include "display.h"
#include "toolcontext.h"
#include "lvmcache.h"
/* FIXME Use tidier inclusion method */ /* FIXME Use tidier inclusion method */
static struct text_vg_version_ops *(_text_vsn_list[2]); static struct text_vg_version_ops *(_text_vsn_list[2]);

View File

@ -19,7 +19,6 @@
#include "label.h" #include "label.h"
#include "xlate.h" #include "xlate.h"
#include "lvmcache.h" #include "lvmcache.h"
#include "lvmetad.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>

View File

@ -15,16 +15,6 @@
#include "lib.h" #include "lib.h"
#include "toolcontext.h" #include "toolcontext.h"
#include "segtype.h" #include "segtype.h"
#include "display.h"
#include "text_export.h"
#include "text_import.h"
#include "config.h"
#include "str_list.h"
#include "targets.h"
#include "lvm-string.h"
#include "activate.h"
#include "str_list.h"
#include "metadata.h"
static const char *_freeseg_name(const struct lv_segment *seg) static const char *_freeseg_name(const struct lv_segment *seg)
{ {

View File

@ -16,10 +16,7 @@
#include "lib.h" #include "lib.h"
#include "device.h" #include "device.h"
#include "memlock.h" #include "memlock.h"
#include "lvm-string.h"
#include "lvm-file.h"
#include "defaults.h" #include "defaults.h"
#include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include <syslog.h> #include <syslog.h>

View File

@ -15,7 +15,6 @@
#include "lib.h" #include "lib.h"
#include "metadata.h" #include "metadata.h"
#include "toolcontext.h"
#include "lv_alloc.h" #include "lv_alloc.h"
#include "pv_alloc.h" #include "pv_alloc.h"
#include "str_list.h" #include "str_list.h"

View File

@ -30,7 +30,6 @@
#include "locking.h" #include "locking.h"
#include "archiver.h" #include "archiver.h"
#include "defaults.h" #include "defaults.h"
#include "filter-persistent.h"
#include <math.h> #include <math.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -24,7 +24,6 @@
#include "lvm-string.h" #include "lvm-string.h"
#include "str_list.h" #include "str_list.h"
#include "locking.h" /* FIXME Should not be used in this file */ #include "locking.h" /* FIXME Should not be used in this file */
#include "memlock.h"
#include "defaults.h" /* FIXME: should this be defaults.h? */ #include "defaults.h" /* FIXME: should this be defaults.h? */

View File

@ -17,9 +17,7 @@
#include "metadata.h" #include "metadata.h"
#include "pv_alloc.h" #include "pv_alloc.h"
#include "toolcontext.h" #include "toolcontext.h"
#include "archiver.h"
#include "locking.h" #include "locking.h"
#include "lvmcache.h"
#include "defaults.h" #include "defaults.h"
static struct pv_segment *_alloc_pv_segment(struct dm_pool *mem, static struct pv_segment *_alloc_pv_segment(struct dm_pool *mem,

View File

@ -15,7 +15,6 @@
#include "lib.h" #include "lib.h"
#include "pv_map.h" #include "pv_map.h"
#include "pv_alloc.h"
#include <assert.h> #include <assert.h>

View File

@ -17,12 +17,9 @@
#include "toolcontext.h" #include "toolcontext.h"
#include "segtype.h" #include "segtype.h"
#include "display.h" #include "display.h"
#include "archiver.h"
#include "activate.h" #include "activate.h"
#include "lv_alloc.h" #include "lv_alloc.h"
#include "lvm-string.h" #include "lvm-string.h"
#include "str_list.h"
#include "memlock.h"
#define RAID_REGION_SIZE 1024 #define RAID_REGION_SIZE 1024

View File

@ -25,7 +25,6 @@
#include "lvm-string.h" #include "lvm-string.h"
#include "targets.h" #include "targets.h"
#include "activate.h" #include "activate.h"
#include "sharedlib.h"
#include "str_list.h" #include "str_list.h"
#include <sys/utsname.h> #include <sys/utsname.h>

View File

@ -15,7 +15,6 @@
#include "lib.h" #include "lib.h"
#include "lvm-file.h" #include "lvm-file.h"
#include "lvm-string.h"
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -17,7 +17,6 @@
#include "device.h" #include "device.h"
#include "memlock.h" #include "memlock.h"
#include "lvm-string.h" #include "lvm-string.h"
#include "lvm-file.h"
#include "defaults.h" #include "defaults.h"
#include "metadata-exported.h" #include "metadata-exported.h"

View File

@ -15,9 +15,7 @@
#include "lib.h" #include "lib.h"
#include "config.h" #include "config.h"
#include "lvm-string.h"
#include "sharedlib.h" #include "sharedlib.h"
#include "toolcontext.h"
#include <limits.h> #include <limits.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,22 +0,0 @@
/*
* Copyright (C) 2007 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License v.2.1.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Return the address of the last file name component of NAME.
* If NAME ends in a slash, return the empty string.
*/
#include "lib.h"
/* empty for now. */

View File

@ -17,12 +17,9 @@
#include "metadata.h" #include "metadata.h"
#include "segtype.h" #include "segtype.h"
#include "text_export.h" #include "text_export.h"
#include "text_import.h"
#include "config.h"
#include "activate.h" #include "activate.h"
#include "str_list.h" #include "str_list.h"
#ifdef DMEVENTD #ifdef DMEVENTD
# include "sharedlib.h"
# include "libdevmapper-event.h" # include "libdevmapper-event.h"
#endif #endif

View File

@ -21,7 +21,6 @@
#include "display.h" #include "display.h"
#include "activate.h" #include "activate.h"
#include "segtype.h" #include "segtype.h"
#include "str_list.h"
#include "lvmcache.h" #include "lvmcache.h"
#include <stddef.h> /* offsetof() */ #include <stddef.h> /* offsetof() */

View File

@ -17,14 +17,12 @@
#include "metadata.h" #include "metadata.h"
#include "segtype.h" #include "segtype.h"
#include "text_export.h" #include "text_export.h"
#include "text_import.h"
#include "config.h" #include "config.h"
#include "activate.h" #include "activate.h"
#include "str_list.h" #include "str_list.h"
#include "defaults.h" #include "defaults.h"
#ifdef DMEVENTD #ifdef DMEVENTD
# include "sharedlib.h"
# include "libdevmapper-event.h" # include "libdevmapper-event.h"
#endif #endif

View File

@ -17,14 +17,8 @@
#include "segtype.h" #include "segtype.h"
#include "display.h" #include "display.h"
#include "text_export.h" #include "text_export.h"
#include "text_import.h"
#include "config.h" #include "config.h"
#include "str_list.h"
#include "targets.h"
#include "lvm-string.h"
#include "activate.h" #include "activate.h"
#include "str_list.h"
#include "metadata.h"
static const char *_unknown_name(const struct lv_segment *seg) static const char *_unknown_name(const struct lv_segment *seg)
{ {

View File

@ -16,14 +16,9 @@
#include "toolcontext.h" #include "toolcontext.h"
#include "segtype.h" #include "segtype.h"
#include "display.h" #include "display.h"
#include "text_export.h"
#include "text_import.h"
#include "config.h" #include "config.h"
#include "str_list.h" #include "str_list.h"
#include "targets.h"
#include "lvm-string.h"
#include "activate.h" #include "activate.h"
#include "metadata.h"
static const char *_zero_name(const struct lv_segment *seg) static const char *_zero_name(const struct lv_segment *seg)
{ {

View File

@ -16,7 +16,6 @@
#include "libdm-targets.h" #include "libdm-targets.h"
#include "libdm-common.h" #include "libdm-common.h"
#include "kdev_t.h" #include "kdev_t.h"
#include "dm-ioctl.h"
#include <stdarg.h> #include <stdarg.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -30,7 +30,6 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <libgen.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -14,7 +14,6 @@
*/ */
#include "tools.h" #include "tools.h"
#include "lv_alloc.h"
#include <fcntl.h> #include <fcntl.h>

View File

@ -17,13 +17,10 @@
#include "lvm2cmdline.h" #include "lvm2cmdline.h"
#include "label.h" #include "label.h"
#include "memlock.h" #include "memlock.h"
#include "lvm-version.h"
#include "lvm2cmd.h" #include "lvm2cmd.h"
#include <signal.h> #include <signal.h>
#include <syslog.h>
#include <libgen.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include <sys/resource.h> #include <sys/resource.h>

View File

@ -19,12 +19,9 @@
#include "lvm-version.h" #include "lvm-version.h"
#include "stub.h" #include "stub.h"
#include "lvm2cmd.h"
#include "last-path-component.h" #include "last-path-component.h"
#include <signal.h> #include <signal.h>
#include <syslog.h>
#include <libgen.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include <sys/resource.h> #include <sys/resource.h>

View File

@ -14,11 +14,7 @@
*/ */
#include "tools.h" #include "tools.h"
#include "lv_alloc.h"
#include "xlate.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h>
const char *command_name(struct cmd_context *cmd) const char *command_name(struct cmd_context *cmd)
{ {

View File

@ -14,7 +14,6 @@
*/ */
#include "tools.h" #include "tools.h"
#include "lv_alloc.h"
static int _remove_pv(struct volume_group *vg, struct pv_list *pvl, int silent) static int _remove_pv(struct volume_group *vg, struct pv_list *pvl, int silent)
{ {