Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drbd: split off drbd_config into separate file

To be more similar to what we do in the out-of-tree module and ease the
upstreaming process.

Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com>
Reviewed-by: Joel Colledge <joel.colledge@linbit.com>
Link: https://lore.kernel.org/r/20230113123506.144082-4-christoph.boehmwalder@linbit.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Böhmwalder and committed by
Jens Axboe
20f2a34a 4e2da933

+18 -7
+1 -1
drivers/block/drbd/drbd_buildtag.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 - #include <linux/drbd.h> 2 + #include <linux/drbd_config.h> 3 3 #include <linux/module.h> 4 4 5 5 const char *drbd_buildtag(void)
+1
drivers/block/drbd/drbd_int.h
··· 34 34 #include <linux/prefetch.h> 35 35 #include <linux/drbd_genl_api.h> 36 36 #include <linux/drbd.h> 37 + #include <linux/drbd_config.h> 37 38 #include "drbd_strings.h" 38 39 #include "drbd_state.h" 39 40 #include "drbd_protocol.h"
-6
include/linux/drbd.h
··· 38 38 39 39 #endif 40 40 41 - extern const char *drbd_buildtag(void); 42 - #define REL_VERSION "8.4.11" 43 - #define PRO_VERSION_MIN 86 44 - #define PRO_VERSION_MAX 101 45 - 46 - 47 41 enum drbd_io_error_p { 48 42 EP_PASS_ON, /* FIXME should the better be named "Ignore"? */ 49 43 EP_CALL_HELPER,
+16
include/linux/drbd_config.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * drbd_config.h 4 + * DRBD's compile time configuration. 5 + */ 6 + 7 + #ifndef DRBD_CONFIG_H 8 + #define DRBD_CONFIG_H 9 + 10 + extern const char *drbd_buildtag(void); 11 + 12 + #define REL_VERSION "8.4.11" 13 + #define PRO_VERSION_MIN 86 14 + #define PRO_VERSION_MAX 101 15 + 16 + #endif