Skip to content

Commit 2781746

Browse files
committed
Fix compilation issues on Rocky Linux 9.x
1 parent d885c82 commit 2781746

File tree

12 files changed

+19
-71
lines changed

12 files changed

+19
-71
lines changed

drivers/dahdi/dahdi-base.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@
8282

8383
#include "hpec/hpec_user.h"
8484

85-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
86-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
87-
#include <asm/types.h>
88-
#else
89-
#include <stdbool.h>
90-
#endif
91-
9285
#if defined(EMPULSE) && defined(EMFLASH)
9386
#error "You cannot define both EMPULSE and EMFLASH"
9487
#endif

drivers/dahdi/voicebus/vpmoct.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@
3030
#include <linux/timer.h>
3131
#include "dahdi/kernel.h"
3232

33-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
34-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
35-
#include <asm/types.h>
36-
#else
37-
#include <stdbool.h>
38-
#endif
39-
4033
#define VPMOCT_FIRM_HEADER_LEN 32
4134
#define VPMOCT_BOOT_RAM_LEN 128
4235
#define VPMOCT_FLASH_BUF_SECTIONS 4

drivers/dahdi/wcaxx-base.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
#include <linux/firmware.h>
3535
#include <linux/crc32.h>
3636

37-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
38-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
39-
#include <asm/types.h>
40-
#else
41-
#include <stdbool.h>
42-
#endif
43-
4437
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
4538
/* Define this if you would like to load the modules in parallel. While this
4639
* can speed up loads when multiple cards handled by this driver are installed,

drivers/dahdi/wct4xxp/base.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@
4242
#include <linux/crc32.h>
4343
#include <linux/slab.h>
4444

45-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
46-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
47-
#include <asm/types.h>
48-
#else
49-
#include <stdbool.h>
50-
#endif
51-
5245
#include <dahdi/kernel.h>
5346

5447
#include "wct4xxp.h"

drivers/dahdi/wct4xxp/vpm450m.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@
2929

3030
#include <dahdi/kernel.h>
3131

32-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
33-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
34-
#include <asm/types.h>
35-
#else
36-
#include <stdbool.h>
37-
#endif
38-
3932
#include "vpm450m.h"
4033
#include <oct612x.h>
4134

drivers/dahdi/wctc4xxp/base.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@
4040
#include <linux/timer.h>
4141
#include <dahdi/kernel.h>
4242

43-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
44-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
45-
#include <asm/types.h>
46-
#else
47-
#include <stdbool.h>
48-
#endif
49-
50-
5143
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
5244
#include <linux/sched/signal.h>
5345
#endif /* 4.11.0 */

drivers/dahdi/wctdm24xxp/base.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ Tx Gain - W/Pre-Emphasis: -23.99 to 0.00 db
5454
#include <linux/crc32.h>
5555
#include <linux/slab.h>
5656

57-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
58-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
59-
#include <asm/types.h>
60-
#else
61-
#include <stdbool.h>
62-
#endif
63-
6457
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)
6558
/* Define this if you would like to load the modules in parallel. While this
6659
* can speed up loads when multiple cards handled by this driver are installed,

drivers/dahdi/wcte13xp-base.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636
#include <linux/crc32.h>
3737
#include <dahdi/kernel.h>
3838

39-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
40-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
41-
#include <asm/types.h>
42-
#else
43-
#include <stdbool.h>
44-
#endif
45-
4639
#include "wct4xxp/wct4xxp.h" /* For certain definitions */
4740
#include "wcxb.h"
4841
#include "wcxb_spi.h"

drivers/dahdi/wcte43x-base.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@
4343
#include <linux/firmware.h>
4444
#include <oct612x.h>
4545

46-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
47-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
48-
#include <asm/types.h>
49-
#else
50-
#include <stdbool.h>
51-
#endif
52-
5346
#include <dahdi/kernel.h>
5447

5548
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)

drivers/dahdi/wcxb.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@
3636

3737
#include <dahdi/kernel.h>
3838

39-
/* Linux kernel 5.16 and greater has removed user-space headers from the kernel include path */
40-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 16, 0)
41-
#include <asm/types.h>
42-
#else
43-
#include <stdbool.h>
44-
#endif
45-
4639
#include "wcxb.h"
4740
#include "wcxb_spi.h"
4841
#include "wcxb_flash.h"

0 commit comments

Comments
 (0)