Skip to content

Commit

Permalink
btrfs-progs: move include from toplevel directory to include/
Browse files Browse the repository at this point in the history
In order to reduce number of files in the toplevel directory,

Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
kdave committed Feb 28, 2023
1 parent 6020961 commit 140234d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Expand Up @@ -55,9 +55,9 @@
/autom4te.cache
/config.cache
/config/*
/config.h
/config.h.in
/config.h.in~
/include/config.h
/include/config.h.in
/include/config.h.in~
/config.log
/config.status
/configure
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Expand Up @@ -89,14 +89,15 @@ ENABLE_WARNING_FLAGS := $(call cc-option, -Wimplicit-fallthrough)
# Common build flags
CFLAGS = $(SUBST_CFLAGS) \
-std=gnu11 \
-include config.h \
-include include/config.h \
-DBTRFS_FLAT_INCLUDES \
-D_XOPEN_SOURCE=700 \
-fno-strict-aliasing \
-fPIC \
-Wall \
-Wunused-but-set-parameter \
-I$(TOPDIR) \
-I$(TOPDIR)/include \
$(CRYPTO_CFLAGS) \
-DCOMPRESSION_LZO=$(COMPRESSION_LZO) \
-DCOMPRESSION_ZSTD=$(COMPRESSION_ZSTD) \
Expand Down Expand Up @@ -695,15 +696,15 @@ quick-test: quick-test.o $(objects) libbtrfsutil.a $(libs_shared)
@echo " [LD] $@"
$(Q)$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)

ioctl-test.o: tests/ioctl-test.c ioctl.h kerncompat.h kernel-shared/ctree.h
ioctl-test.o: tests/ioctl-test.c include/ioctl.h include/kerncompat.h kernel-shared/ctree.h
@echo " [CC] $@"
$(Q)$(CC) $(CFLAGS) -c $< -o $@

ioctl-test-32.o: tests/ioctl-test.c ioctl.h kerncompat.h kernel-shared/ctree.h
ioctl-test-32.o: tests/ioctl-test.c include/ioctl.h include/kerncompat.h kernel-shared/ctree.h
@echo " [CC32] $@"
$(Q)$(CC) $(CFLAGS) -m32 -c $< -o $@

ioctl-test-64.o: tests/ioctl-test.c ioctl.h kerncompat.h kernel-shared/ctree.h
ioctl-test-64.o: tests/ioctl-test.c include/ioctl.h include/kerncompat.h kernel-shared/ctree.h
@echo " [CC64] $@"
$(Q)$(CC) $(CFLAGS) -m64 -c $< -o $@

Expand Down Expand Up @@ -852,7 +853,7 @@ clean-gen:
configure.lineno config.status.lineno Makefile.inc \
Documentation/Makefile tags TAGS \
cscope.files cscope.out cscope.in.out cscope.po.out \
config.log config.h config.h.in~ aclocal.m4 \
config.log include/config.h include/config.h.in~ aclocal.m4 \
configure autom4te.cache/ config/

clean-dep:
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -427,7 +427,7 @@ AC_SUBST([BTRFS_UTIL_VERSION_MAJOR])
AC_SUBST([BTRFS_UTIL_VERSION_MINOR])
AC_SUBST([BTRFS_UTIL_VERSION_PATCH])

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([include/config.h])

AC_CONFIG_FILES([
Makefile.inc
Expand Down
2 changes: 1 addition & 1 deletion crypto/hash-speedtest.c
Expand Up @@ -14,7 +14,7 @@
* Boston, MA 021110-1307, USA.
*/

#include "../kerncompat.h"
#include "kerncompat.h"
#include <time.h>
#include <getopt.h>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion crypto/hash-vectest.c
Expand Up @@ -14,7 +14,7 @@
* Boston, MA 021110-1307, USA.
*/

#include "../kerncompat.h"
#include "kerncompat.h"
#include "crypto/hash.h"
#include "crypto/crc32c.h"
#include "crypto/sha.h"
Expand Down
2 changes: 1 addition & 1 deletion crypto/hash.h
Expand Up @@ -17,7 +17,7 @@
#ifndef CRYPTO_HASH_H
#define CRYPTO_HASH_H

#include "../kerncompat.h"
#include "kerncompat.h"

#define CRYPTO_HASH_SIZE_MAX 32

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 140234d

Please sign in to comment.