forked from intel/ethernet-linux-idpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kcompat_defs.h
39 lines (32 loc) · 930 Bytes
/
kcompat_defs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (C) 2019-2024 Intel Corporation */
#ifndef _KCOMPAT_DEFS_H_
#define _KCOMPAT_DEFS_H_
#ifndef LINUX_VERSION_CODE
#include <linux/version.h>
#else
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
#endif /* LINUX_VERSION_CODE */
#ifndef UTS_RELEASE
#include <generated/utsrelease.h>
#endif
/*
* Include the definitions file for HAVE/NEED flags for the standard upstream
* kernels.
*
* Then, based on the distribution we detect, load the distribution specific
* definitions file that customizes the definitions for the target
* distribution.
*/
#include "kcompat_std_defs.h"
#ifdef CONFIG_SUSE_KERNEL
#include "kcompat_sles_defs.h"
#elif UBUNTU_VERSION_CODE
#include "kcompat_ubuntu_defs.h"
#elif RHEL_RELEASE_CODE
#include "kcompat_rhel_defs.h"
#endif
#include "kcompat_generated_defs.h"
#endif /* _KCOMPAT_DEFS_H_ */