Skip to content

Commit

Permalink
nilfs2-kmod10: add template of kern_feature.h header file
Browse files Browse the repository at this point in the history
This file accommodates kernel differences depending on versions and
distributions.

This initial version of kern_feature.h does not contain any valid
declarations.

Signed-off-by: Ryusuke Konishi <[email protected]>
  • Loading branch information
konis committed Aug 20, 2024
1 parent 85c2bf9 commit eab80d2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions fs/nilfs2/kern_feature.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Kernel dependent features
*/

#ifndef NILFS_KERN_FEATURE_H
#define NILFS_KERN_FEATURE_H

#include <linux/version.h>
#ifndef LINUX_VERSION_CODE
# include <generated/uapi/linux/version.h>
#endif

/*
* Please define as 0/1 here if you want to override
*/

/*
* for Red Hat Enterprise Linux 10.x clones
*/
#if defined(RHEL_MAJOR) && (RHEL_MAJOR == 10)
# if defined(RHEL_RELEASE_N)
# endif
#endif

/*
* defaults
*/

/*
* defaults dependent to kernel versions
*/
#ifdef LINUX_VERSION_CODE
#endif /* LINUX_VERSION_CODE */


#include <linux/fs.h>

#endif /* NILFS_KERN_FEATURE_H */

0 comments on commit eab80d2

Please sign in to comment.