build: do not #include "config.h" in each file
authorNiels de Vos <ndevos@redhat.com>
Mon, 18 May 2015 14:26:02 +0000 (16:26 +0200)
committerPranith Kumar Karampuri <pkarampu@redhat.com>
Fri, 29 May 2015 12:43:17 +0000 (05:43 -0700)
commit8a9328e37b8c63d60583184dc8dab12f85810682
tree0fa017379bf5e9dfaa2e6d8132c73cc1090a3d52
parent5d912230a7d4f9979c10ff15da724624bd8e069d
build: do not #include "config.h" in each file

Instead of including config.h in each file, and have the additional
config.h included from the compiler commandline (-include option).

When a .c file tests for a certain #define, and config.h was not
included, incorrect assumtions were made. With this change, it can not
happen again.

BUG: 1222319
Change-Id: I4f9097b8740b81ecfe8b218d52ca50361f74cb64
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/10808
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
394 files changed:
api/src/gfapi-messages.h
api/src/glfs-master.c
api/src/glfs-mgmt.c
api/src/glfs-resolve.c
api/src/glfs.c
cli/src/cli-cmd-global.c
cli/src/cli-cmd-misc.c
cli/src/cli-cmd-parser.c
cli/src/cli-cmd-peer.c
cli/src/cli-cmd-snapshot.c
cli/src/cli-cmd-system.c
cli/src/cli-cmd-volume.c
cli/src/cli-cmd.c
cli/src/cli-cmd.h
cli/src/cli-quotad-client.c
cli/src/cli-rl.c
cli/src/cli-rpc-ops.c
cli/src/cli.c
cli/src/cli.h
cli/src/input.c
cli/src/registry.c
configure.ac
geo-replication/src/gsyncd.c
geo-replication/src/procdiggy.c
glusterfsd/src/glusterfsd-messages.h
glusterfsd/src/glusterfsd-mgmt.c
glusterfsd/src/glusterfsd.c
glusterfsd/src/glusterfsd.h
libglusterfs/src/call-stub.c
libglusterfs/src/call-stub.h
libglusterfs/src/client_t.c
libglusterfs/src/client_t.h
libglusterfs/src/cluster-syncop.h
libglusterfs/src/common-utils.c
libglusterfs/src/common-utils.h
libglusterfs/src/compat-errno.c
libglusterfs/src/compat-errno.h
libglusterfs/src/compat.c
libglusterfs/src/compat.h
libglusterfs/src/ctx.c
libglusterfs/src/daemon.h
libglusterfs/src/defaults.c
libglusterfs/src/defaults.h
libglusterfs/src/dict.c
libglusterfs/src/dict.h
libglusterfs/src/event-epoll.c
libglusterfs/src/event-history.h
libglusterfs/src/event-poll.c
libglusterfs/src/event.c
libglusterfs/src/event.h
libglusterfs/src/fd.c
libglusterfs/src/fd.h
libglusterfs/src/gf-dirent.c
libglusterfs/src/gf-dirent.h
libglusterfs/src/gfdb/gfdb_data_store.h
libglusterfs/src/gfdb/gfdb_data_store_types.h
libglusterfs/src/gfdb/gfdb_sqlite3.h
libglusterfs/src/gfdb/gfdb_sqlite3_helper.h
libglusterfs/src/glfs-message-id.h
libglusterfs/src/globals.c
libglusterfs/src/glusterfs.h
libglusterfs/src/graph-print.c
libglusterfs/src/graph.c
libglusterfs/src/hashfn.c
libglusterfs/src/hashfn.h
libglusterfs/src/iatt.h
libglusterfs/src/inode.c
libglusterfs/src/inode.h
libglusterfs/src/lkowner.h
libglusterfs/src/locking.h
libglusterfs/src/logging.c
libglusterfs/src/logging.h
libglusterfs/src/lvm-defaults.h
libglusterfs/src/options.c
libglusterfs/src/options.h
libglusterfs/src/stack.h
libglusterfs/src/store.c
libglusterfs/src/store.h
libglusterfs/src/strfd.c
libglusterfs/src/syncop-utils.c
libglusterfs/src/syncop.c
libglusterfs/src/syncop.h
libglusterfs/src/syscall.c
libglusterfs/src/template-component-messages.h
libglusterfs/src/timer.c
libglusterfs/src/timer.h
libglusterfs/src/trie.h
libglusterfs/src/xlator.c
libglusterfs/src/xlator.h
rpc/rpc-lib/src/auth-glusterfs.c
rpc/rpc-lib/src/auth-null.c
rpc/rpc-lib/src/auth-unix.c
rpc/rpc-lib/src/rpc-clnt-ping.c
rpc/rpc-lib/src/rpc-clnt-ping.h
rpc/rpc-lib/src/rpc-clnt.c
rpc/rpc-lib/src/rpc-drc.c
rpc/rpc-lib/src/rpc-drc.h
rpc/rpc-lib/src/rpc-lib-messages.h
rpc/rpc-lib/src/rpc-transport.c
rpc/rpc-lib/src/rpc-transport.h
rpc/rpc-lib/src/rpcsvc.c
rpc/rpc-lib/src/rpcsvc.h
rpc/rpc-lib/src/xdr-common.h
rpc/rpc-lib/src/xdr-rpc.c
rpc/rpc-lib/src/xdr-rpc.h
rpc/rpc-lib/src/xdr-rpcclnt.c
rpc/rpc-lib/src/xdr-rpcclnt.h
rpc/rpc-transport/rdma/src/rdma.c
rpc/rpc-transport/rdma/src/rdma.h
rpc/rpc-transport/rdma/src/rpc-trans-rdma-messages.h
rpc/rpc-transport/socket/src/socket.c
rpc/rpc-transport/socket/src/socket.h
rpc/xdr/src/msg-nfs3.c
rpc/xdr/src/msg-nfs3.h
tests/basic/logchecks-messages.h
xlators/cluster/afr/src/afr-common.c
xlators/cluster/afr/src/afr-dir-read.c
xlators/cluster/afr/src/afr-dir-write.c
xlators/cluster/afr/src/afr-inode-read.c
xlators/cluster/afr/src/afr-inode-write.c
xlators/cluster/afr/src/afr-messages.h
xlators/cluster/afr/src/afr-open.c
xlators/cluster/afr/src/afr-self-heal-common.c
xlators/cluster/afr/src/afr-self-heal-data.c
xlators/cluster/afr/src/afr-self-heal-entry.c
xlators/cluster/afr/src/afr-self-heal-metadata.c
xlators/cluster/afr/src/afr-self-heal-name.c
xlators/cluster/afr/src/afr-self-heald.c
xlators/cluster/afr/src/afr.c
xlators/cluster/afr/src/afr.h
xlators/cluster/afr/src/pump.c
xlators/cluster/dht/src/dht-common.c
xlators/cluster/dht/src/dht-common.h
xlators/cluster/dht/src/dht-diskusage.c
xlators/cluster/dht/src/dht-hashfn.c
xlators/cluster/dht/src/dht-helper.c
xlators/cluster/dht/src/dht-inode-read.c
xlators/cluster/dht/src/dht-inode-write.c
xlators/cluster/dht/src/dht-layout.c
xlators/cluster/dht/src/dht-linkfile.c
xlators/cluster/dht/src/dht-messages.h
xlators/cluster/dht/src/dht-rebalance.c
xlators/cluster/dht/src/dht-rename.c
xlators/cluster/dht/src/dht-selfheal.c
xlators/cluster/dht/src/dht-shared.c
xlators/cluster/dht/src/dht.c
xlators/cluster/dht/src/nufa.c
xlators/cluster/dht/src/switch.c
xlators/cluster/dht/src/tier.c
xlators/cluster/dht/src/tier.h
xlators/cluster/dht/src/unittest/dht_layout_mock.c
xlators/cluster/ha/src/ha.c
xlators/cluster/map/src/map-helper.c
xlators/cluster/map/src/map.c
xlators/cluster/stripe/src/stripe.h
xlators/debug/error-gen/src/error-gen.c
xlators/debug/error-gen/src/error-gen.h
xlators/debug/io-stats/src/io-stats.c
xlators/debug/trace/src/trace.h
xlators/encryption/crypt/src/atom.c
xlators/encryption/crypt/src/crypt.c
xlators/encryption/crypt/src/crypt.h
xlators/encryption/crypt/src/data.c
xlators/encryption/crypt/src/keys.c
xlators/encryption/crypt/src/metadata.c
xlators/encryption/rot-13/src/rot-13.c
xlators/encryption/rot-13/src/rot-13.h
xlators/features/arbiter/src/arbiter.c
xlators/features/arbiter/src/arbiter.h
xlators/features/barrier/src/barrier.c
xlators/features/bit-rot/src/bitd/bit-rot-scrub.c
xlators/features/bit-rot/src/bitd/bit-rot.c
xlators/features/bit-rot/src/bitd/bit-rot.h
xlators/features/bit-rot/src/stub/bit-rot-common.h
xlators/features/bit-rot/src/stub/bit-rot-stub.c
xlators/features/bit-rot/src/stub/bit-rot-stub.h
xlators/features/changelog/src/changelog-encoders.c
xlators/features/changelog/src/changelog-helpers.c
xlators/features/changelog/src/changelog-rt.c
xlators/features/changelog/src/changelog.c
xlators/features/changetimerecorder/src/changetimerecorder.h
xlators/features/changetimerecorder/src/ctr-helper.h
xlators/features/compress/src/cdc-helper.c
xlators/features/compress/src/cdc.c
xlators/features/filter/src/filter.c
xlators/features/ganesha/src/ganesha.c
xlators/features/ganesha/src/ganesha.h
xlators/features/gfid-access/src/gfid-access.c
xlators/features/gfid-access/src/gfid-access.h
xlators/features/glupy/src/glupy.c
xlators/features/glupy/src/glupy.h
xlators/features/index/src/index.c
xlators/features/locks/src/clear.c
xlators/features/locks/src/clear.h
xlators/features/locks/src/common.c
xlators/features/locks/src/entrylk.c
xlators/features/locks/src/inodelk.c
xlators/features/locks/src/locks.h
xlators/features/locks/src/posix.c
xlators/features/locks/src/reservelk.c
xlators/features/locks/tests/unit-test.c
xlators/features/mac-compat/src/mac-compat.c
xlators/features/marker/src/marker-common.c
xlators/features/marker/src/marker-common.h
xlators/features/marker/src/marker-quota-helper.c
xlators/features/marker/src/marker-quota-helper.h
xlators/features/marker/src/marker-quota.c
xlators/features/marker/src/marker-quota.h
xlators/features/marker/src/marker.c
xlators/features/marker/src/marker.h
xlators/features/path-convertor/src/path.c
xlators/features/protect/src/prot_client.c
xlators/features/protect/src/prot_dht.c
xlators/features/protect/src/prot_server.c
xlators/features/qemu-block/src/bdrv-xlator.c
xlators/features/qemu-block/src/bh-syncop.c
xlators/features/qemu-block/src/clock-timer.c
xlators/features/qemu-block/src/coroutine-synctask.c
xlators/features/qemu-block/src/monitor-logging.c
xlators/features/qemu-block/src/qb-coroutines.c
xlators/features/qemu-block/src/qemu-block.c
xlators/features/quiesce/src/quiesce.c
xlators/features/quota/src/quota-enforcer-client.c
xlators/features/quota/src/quota.h
xlators/features/read-only/src/read-only-common.c
xlators/features/read-only/src/read-only-common.h
xlators/features/read-only/src/read-only.c
xlators/features/read-only/src/worm.c
xlators/features/shard/src/shard.h
xlators/features/snapview-client/src/snapview-client.c
xlators/features/snapview-client/src/snapview-client.h
xlators/features/snapview-server/src/snapview-server-helpers.c
xlators/features/snapview-server/src/snapview-server-mgmt.c
xlators/features/snapview-server/src/snapview-server.c
xlators/features/snapview-server/src/snapview-server.h
xlators/features/trash/src/trash.c
xlators/features/trash/src/trash.h
xlators/features/upcall/src/upcall-cache-invalidation.h
xlators/features/upcall/src/upcall-internal.c
xlators/features/upcall/src/upcall-messages.h
xlators/features/upcall/src/upcall.c
xlators/features/upcall/src/upcall.h
xlators/lib/src/libxlator.h
xlators/meta/src/active-link.c
xlators/meta/src/cmdline-file.c
xlators/meta/src/frames-file.c
xlators/meta/src/graph-dir.c
xlators/meta/src/graphs-dir.c
xlators/meta/src/history-file.c
xlators/meta/src/logfile-link.c
xlators/meta/src/logging-dir.c
xlators/meta/src/loglevel-file.c
xlators/meta/src/mallinfo-file.c
xlators/meta/src/measure-file.c
xlators/meta/src/meminfo-file.c
xlators/meta/src/meta-defaults.c
xlators/meta/src/meta-helpers.c
xlators/meta/src/meta.c
xlators/meta/src/meta.h
xlators/meta/src/name-file.c
xlators/meta/src/option-file.c
xlators/meta/src/options-dir.c
xlators/meta/src/private-file.c
xlators/meta/src/process_uuid-file.c
xlators/meta/src/profile-file.c
xlators/meta/src/root-dir.c
xlators/meta/src/subvolume-link.c
xlators/meta/src/subvolumes-dir.c
xlators/meta/src/top-link.c
xlators/meta/src/type-file.c
xlators/meta/src/version-file.c
xlators/meta/src/view-dir.c
xlators/meta/src/volfile-file.c
xlators/meta/src/xlator-dir.c
xlators/mgmt/glusterd/src/glusterd-bitd-svc.h
xlators/mgmt/glusterd/src/glusterd-bitrot.c
xlators/mgmt/glusterd/src/glusterd-brick-ops.c
xlators/mgmt/glusterd/src/glusterd-conn-helper.h
xlators/mgmt/glusterd/src/glusterd-conn-mgmt.h
xlators/mgmt/glusterd/src/glusterd-ganesha.c
xlators/mgmt/glusterd/src/glusterd-geo-rep.c
xlators/mgmt/glusterd/src/glusterd-geo-rep.h
xlators/mgmt/glusterd/src/glusterd-handler.c
xlators/mgmt/glusterd/src/glusterd-handshake.c
xlators/mgmt/glusterd/src/glusterd-hooks.c
xlators/mgmt/glusterd/src/glusterd-hooks.h
xlators/mgmt/glusterd/src/glusterd-locks.c
xlators/mgmt/glusterd/src/glusterd-locks.h
xlators/mgmt/glusterd/src/glusterd-log-ops.c
xlators/mgmt/glusterd/src/glusterd-messages.h
xlators/mgmt/glusterd/src/glusterd-mgmt.h
xlators/mgmt/glusterd/src/glusterd-mountbroker.c
xlators/mgmt/glusterd/src/glusterd-nfs-svc.h
xlators/mgmt/glusterd/src/glusterd-op-sm.c
xlators/mgmt/glusterd/src/glusterd-op-sm.h
xlators/mgmt/glusterd/src/glusterd-pmap.c
xlators/mgmt/glusterd/src/glusterd-pmap.h
xlators/mgmt/glusterd/src/glusterd-proc-mgmt.h
xlators/mgmt/glusterd/src/glusterd-quota.c
xlators/mgmt/glusterd/src/glusterd-quotad-svc.h
xlators/mgmt/glusterd/src/glusterd-rebalance.c
xlators/mgmt/glusterd/src/glusterd-replace-brick.c
xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
xlators/mgmt/glusterd/src/glusterd-scrub-svc.h
xlators/mgmt/glusterd/src/glusterd-server-quorum.c
xlators/mgmt/glusterd/src/glusterd-server-quorum.h
xlators/mgmt/glusterd/src/glusterd-shd-svc.h
xlators/mgmt/glusterd/src/glusterd-sm.c
xlators/mgmt/glusterd/src/glusterd-sm.h
xlators/mgmt/glusterd/src/glusterd-snapd-svc-helper.h
xlators/mgmt/glusterd/src/glusterd-snapd-svc.h
xlators/mgmt/glusterd/src/glusterd-snapshot-utils.c
xlators/mgmt/glusterd/src/glusterd-snapshot.c
xlators/mgmt/glusterd/src/glusterd-statedump.c
xlators/mgmt/glusterd/src/glusterd-statedump.h
xlators/mgmt/glusterd/src/glusterd-store.c
xlators/mgmt/glusterd/src/glusterd-store.h
xlators/mgmt/glusterd/src/glusterd-svc-helper.h
xlators/mgmt/glusterd/src/glusterd-svc-mgmt.h
xlators/mgmt/glusterd/src/glusterd-utils.c
xlators/mgmt/glusterd/src/glusterd-utils.h
xlators/mgmt/glusterd/src/glusterd-volgen.c
xlators/mgmt/glusterd/src/glusterd-volgen.h
xlators/mgmt/glusterd/src/glusterd-volume-ops.c
xlators/mgmt/glusterd/src/glusterd-volume-set.c
xlators/mgmt/glusterd/src/glusterd.c
xlators/mgmt/glusterd/src/glusterd.h
xlators/mount/fuse/src/fuse-bridge.h
xlators/mount/fuse/src/fuse-resolve.c
xlators/nfs/server/src/acl3.c
xlators/nfs/server/src/mount3.c
xlators/nfs/server/src/mount3.h
xlators/nfs/server/src/nfs-common.c
xlators/nfs/server/src/nfs-common.h
xlators/nfs/server/src/nfs-fops.c
xlators/nfs/server/src/nfs-fops.h
xlators/nfs/server/src/nfs-generics.c
xlators/nfs/server/src/nfs-generics.h
xlators/nfs/server/src/nfs-inodes.c
xlators/nfs/server/src/nfs-inodes.h
xlators/nfs/server/src/nfs-messages.h
xlators/nfs/server/src/nfs.c
xlators/nfs/server/src/nfs.h
xlators/nfs/server/src/nfs3-fh.c
xlators/nfs/server/src/nfs3-fh.h
xlators/nfs/server/src/nfs3-helpers.c
xlators/nfs/server/src/nfs3-helpers.h
xlators/nfs/server/src/nfs3.c
xlators/nfs/server/src/nfs3.h
xlators/nfs/server/src/nlm4.c
xlators/nfs/server/src/nlm4.h
xlators/performance/io-cache/src/io-cache.c
xlators/performance/io-cache/src/io-cache.h
xlators/performance/io-cache/src/ioc-inode.c
xlators/performance/io-cache/src/page.c
xlators/performance/io-threads/src/io-threads.c
xlators/performance/io-threads/src/io-threads.h
xlators/performance/md-cache/src/md-cache.c
xlators/performance/quick-read/src/quick-read.h
xlators/performance/read-ahead/src/page.c
xlators/performance/read-ahead/src/read-ahead.c
xlators/performance/read-ahead/src/read-ahead.h
xlators/performance/readdir-ahead/src/readdir-ahead.c
xlators/performance/symlink-cache/src/symlink-cache.c
xlators/performance/write-behind/src/write-behind.c
xlators/playground/template/src/template.c
xlators/playground/template/src/template.h
xlators/protocol/auth/addr/src/addr.c
xlators/protocol/auth/login/src/login.c
xlators/protocol/client/src/client-callback.c
xlators/protocol/client/src/client-handshake.c
xlators/protocol/client/src/client-helpers.c
xlators/protocol/client/src/client-rpc-fops.c
xlators/protocol/client/src/client.c
xlators/protocol/server/src/authenticate.c
xlators/protocol/server/src/authenticate.h
xlators/protocol/server/src/server-handshake.c
xlators/protocol/server/src/server-helpers.c
xlators/protocol/server/src/server-messages.h
xlators/protocol/server/src/server-resolve.c
xlators/protocol/server/src/server-rpc-fops.c
xlators/protocol/server/src/server.c
xlators/storage/bd/src/bd-aio.c
xlators/storage/bd/src/bd-aio.h
xlators/storage/bd/src/bd-helper.c
xlators/storage/bd/src/bd.c
xlators/storage/bd/src/bd.h
xlators/storage/posix/src/posix-aio.c
xlators/storage/posix/src/posix-aio.h
xlators/storage/posix/src/posix-handle.c
xlators/storage/posix/src/posix-handle.h
xlators/storage/posix/src/posix-helpers.c
xlators/storage/posix/src/posix.c
xlators/storage/posix/src/posix.h