btrfs-progs: kerncompat: re-add __init to include/kerncompat.h

Now that we're properly separated with libbtrfs/kerncompat.h and
include/kerncompat.h, go ahead and add the __init definition back so we
can have it available for the kernel synced files.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Josef Bacik 2023-04-19 17:13:45 -04:00 committed by David Sterba
parent 4c078a8536
commit c0c5ca1522

View File

@ -578,11 +578,7 @@ struct work_struct {
typedef struct wait_queue_head_s {
} wait_queue_head_t;
/*
* __init cannot be defined in kerncompat.h as it's still part of libbtrfs and
* the macro name is too generic and can break build.
#define __init
*/
#define __cold
#endif