linux/drivers/md/dm-vdo
Masahiro Yamada b1992c3772 kbuild: use $(src) instead of $(srctree)/$(src) for source directory
Kbuild conventionally uses $(obj)/ for generated files, and $(src)/ for
checked-in source files. It is merely a convention without any functional
difference. In fact, $(obj) and $(src) are exactly the same, as defined
in scripts/Makefile.build:

    src := $(obj)

When the kernel is built in a separate output directory, $(src) does
not accurately reflect the source directory location. While Kbuild
resolves this discrepancy by specifying VPATH=$(srctree) to search for
source files, it does not cover all cases. For example, when adding a
header search path for local headers, -I$(srctree)/$(src) is typically
passed to the compiler.

This introduces inconsistency between upstream and downstream Makefiles
because $(src) is used instead of $(srctree)/$(src) for the latter.

To address this inconsistency, this commit changes the semantics of
$(src) so that it always points to the directory in the source tree.

Going forward, the variables used in Makefiles will have the following
meanings:

  $(obj)     - directory in the object tree
  $(src)     - directory in the source tree  (changed by this commit)
  $(objtree) - the top of the kernel object tree
  $(srctree) - the top of the kernel source tree

Consequently, $(srctree)/$(src) in upstream Makefiles need to be replaced
with $(src).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
2024-05-10 04:34:52 +09:00
..
indexer dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
action-manager.c dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
action-manager.h dm vdo: add administrative state and action manager 2024-02-20 13:43:14 -05:00
admin-state.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
admin-state.h dm vdo: add administrative state and action manager 2024-02-20 13:43:14 -05:00
block-map.c dm vdo block-map: Remove stray semicolon 2024-03-04 15:07:57 -05:00
block-map.h dm vdo: cleanup style for comments in structs 2024-02-20 13:43:19 -05:00
completion.c dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
completion.h dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
constants.h dm vdo: cleanup style for comments in structs 2024-02-20 13:43:19 -05:00
cpu.h dm vdo: add specialized request queueing functionality 2024-02-20 13:43:13 -05:00
data-vio.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
data-vio.h dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
dedupe.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
dedupe.h dm vdo: remove all sysfs interfaces 2024-03-04 15:07:56 -05:00
dm-vdo-target.c dm vdo: remove meaningless version number constant 2024-03-04 23:11:11 -05:00
dump.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
dump.h dm vdo: add debugging support 2024-02-20 13:43:15 -05:00
encodings.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
encodings.h dm vdo: remove unnecessary indexer.h includes 2024-03-04 15:07:55 -05:00
errors.c dm vdo string-utils: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
errors.h dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
flush.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
flush.h dm vdo wait-queue: add proper namespace to interface 2024-02-20 13:43:16 -05:00
funnel-queue.c dm vdo funnel-queue: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
funnel-queue.h dm vdo funnel-queue: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
funnel-workqueue.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
funnel-workqueue.h dm vdo: add specialized request queueing functionality 2024-02-20 13:43:13 -05:00
int-map.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
int-map.h dm vdo int-map: remove unused parameter from vdo_int_map_create 2024-02-20 13:43:16 -05:00
io-submitter.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
io-submitter.h dm vdo: fix various blk_opf_t sparse warnings 2024-02-20 13:43:18 -05:00
Kconfig dm vdo: use a proper Makefile for dm-vdo 2024-02-20 13:43:17 -05:00
logger.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
logger.h dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
logical-zone.c dm vdo string-utils: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
logical-zone.h dm vdo: add flush support 2024-02-20 13:43:14 -05:00
Makefile kbuild: use $(src) instead of $(srctree)/$(src) for source directory 2024-05-10 04:34:52 +09:00
memory-alloc.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
memory-alloc.h dm vdo memory-alloc: return VDO_SUCCESS on success 2024-03-04 15:07:56 -05:00
message-stats.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
message-stats.h dm vdo: add statistics reporting 2024-02-20 13:43:15 -05:00
murmurhash3.c dm vdo murmurhash3: use kernel byteswapping routines instead of GCC ones 2024-03-29 09:45:54 -04:00
murmurhash3.h
numeric.h dm vdo: add deduplication index storage interface 2024-02-20 13:43:14 -05:00
packer.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
packer.h dm vdo: remove internal ticket references 2024-03-04 15:07:55 -05:00
permassert.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
permassert.h dm vdo indexer: update ASSERT and ASSERT_LOG_ONLY usage 2024-03-04 15:07:56 -05:00
physical-zone.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
physical-zone.h dm vdo: add the block allocators and physical zones 2024-02-20 13:43:15 -05:00
priority-table.c dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
priority-table.h dm vdo: add basic hash map data structures 2024-02-20 13:43:13 -05:00
recovery-journal.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
recovery-journal.h dm vdo: cleanup style for comments in structs 2024-02-20 13:43:19 -05:00
repair.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
repair.h dm vdo: add repair of damaged vdo volumes 2024-02-20 13:43:15 -05:00
slab-depot.c dm vdo string-utils: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
slab-depot.h dm vdo memory-alloc: change from uds_ to vdo_ namespace 2024-03-04 15:07:56 -05:00
statistics.h dm vdo: cleanup style for comments in structs 2024-02-20 13:43:19 -05:00
status-codes.c dm vdo: remove vdo_perform_once 2024-03-04 23:11:11 -05:00
status-codes.h dm vdo: remove all sysfs interfaces 2024-03-04 15:07:56 -05:00
string-utils.c dm vdo string-utils: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
string-utils.h dm vdo string-utils: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
thread-device.c dm vdo thread-device: rename all methods to reflect vdo-only use 2024-03-01 09:26:24 -05:00
thread-device.h dm vdo thread-device: rename all methods to reflect vdo-only use 2024-03-01 09:26:24 -05:00
thread-registry.c dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
thread-registry.h dm vdo thread-registry: rename all methods to reflect vdo-only use 2024-03-01 09:26:20 -05:00
thread-utils.c dm vdo: remove vdo_perform_once 2024-03-04 23:11:11 -05:00
thread-utils.h dm vdo: remove vdo_perform_once 2024-03-04 23:11:11 -05:00
time-utils.h dm vdo: add basic logging and support utilities 2024-02-20 13:43:13 -05:00
types.h dm vdo data-vio: rename is_trim flag to is_discard 2024-02-20 13:43:17 -05:00
vdo.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
vdo.h dm vdo: remove all sysfs interfaces 2024-03-04 15:07:56 -05:00
vio.c dm vdo logger: change from uds_ to vdo_ namespace 2024-03-04 15:07:57 -05:00
vio.h dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESS 2024-03-04 15:07:56 -05:00
wait-queue.c dm vdo wait-queue: rename to vdo_waitq_dequeue_waiter 2024-02-20 13:43:16 -05:00
wait-queue.h dm vdo wait-queue: rename to vdo_waitq_dequeue_waiter 2024-02-20 13:43:16 -05:00