Skip to content

Commit

Permalink
[Build] solved from Fedora using RHEL MINOR version number 99
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Jul 20, 2024
1 parent c258c1a commit a03489f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions aarch64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -5470,7 +5470,9 @@ inline void SMBIOS_Decoder(void)
#endif /* CONFIG_DMI */
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) || (RHEL_MAJOR >= 9)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) \
|| ((RHEL_MAJOR == 8) && ((RHEL_MINOR < 3) || (RHEL_MINOR > 8))) \
|| ((RHEL_MAJOR >= 9) && (RHEL_MINOR > 0) && (RHEL_MINOR < 99))
static char *CoreFreqK_DevNode(const struct device *dev, umode_t *mode)
#else
static char *CoreFreqK_DevNode(struct device *dev, umode_t *mode)
Expand Down Expand Up @@ -5614,7 +5616,9 @@ static int CoreFreqK_Create_Device_Level_Up(INIT_ARG *pArg)
struct device *tmpDev;
UNUSED(pArg);

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) || (RHEL_MAJOR >= 9)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) \
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9) \
&& (RHEL_MINOR > 0) && (RHEL_MINOR < 99))
CoreFreqK.clsdev = class_create(DRV_DEVNAME);
#else
CoreFreqK.clsdev = class_create(THIS_MODULE, DRV_DEVNAME);
Expand Down
5 changes: 3 additions & 2 deletions x86_64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -23861,7 +23861,7 @@ inline void SMBIOS_Decoder(void)

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) \
|| ((RHEL_MAJOR == 8) && ((RHEL_MINOR < 3) || (RHEL_MINOR > 8))) \
|| ((RHEL_MAJOR == 9) && (RHEL_MINOR > 0))
|| ((RHEL_MAJOR >= 9) && (RHEL_MINOR > 0) && (RHEL_MINOR < 99))
static char *CoreFreqK_DevNode(const struct device *dev, umode_t *mode)
#else
static char *CoreFreqK_DevNode(struct device *dev, umode_t *mode)
Expand Down Expand Up @@ -24013,7 +24013,8 @@ static int CoreFreqK_Create_Device_Level_Up(INIT_ARG *pArg)
UNUSED(pArg);

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0) \
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9))
|| (defined(RHEL_MAJOR) && (RHEL_MAJOR >= 9) \
&& (RHEL_MINOR > 0) && (RHEL_MINOR < 99))
CoreFreqK.clsdev = class_create(DRV_DEVNAME);
#else
CoreFreqK.clsdev = class_create(THIS_MODULE, DRV_DEVNAME);
Expand Down

0 comments on commit a03489f

Please sign in to comment.