Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 3ae95e0

Browse files
authored
Merge pull request #104 from intel/b4
Build error fixes for kernel 5.3 and later
2 parents a62f311 + efcde02 commit 3ae95e0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ KDIR := /lib/modules/$(shell uname -r)/build
1313
PWD := $(shell pwd)
1414

1515
default:
16-
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
16+
$(MAKE) -C $(KDIR) M=$(PWD) modules
1717

1818
install: default
1919
$(MAKE) INSTALL_MOD_DIR=kernel/drivers/intel/sgx -C $(KDIR) M=$(PWD) modules_install

sgx_page_cache.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ static unsigned int sgx_nr_high_pages;
8686
static struct task_struct *ksgxswapd_tsk;
8787
static DECLARE_WAIT_QUEUE_HEAD(ksgxswapd_waitq);
8888

89-
static int sgx_test_and_clear_young_cb(pte_t *ptep, pgtable_t token,
90-
unsigned long addr, void *data)
89+
static int sgx_test_and_clear_young_cb(pte_t *ptep,
90+
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0))
91+
pgtable_t token,
92+
#endif
93+
unsigned long addr, void *data)
9194
{
9295
pte_t pte;
9396
int ret;

0 commit comments

Comments
 (0)