Skip to content

Commit

Permalink
fix compilation error on gcc7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkuck authored and dwalkes committed Mar 20, 2021
1 parent 6657e96 commit dd5c9c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sculld/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void sculld_vma_close(struct vm_area_struct *vma)
* is individually decreased, and would drop to 0.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
typedef int vm_fault_t
typedef int vm_fault_t;
#endif
static vm_fault_t sculld_vma_nopage(struct vm_fault *vmf)
{
Expand Down
2 changes: 1 addition & 1 deletion scullp/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void scullp_vma_close(struct vm_area_struct *vma)
* is individually decreased, and would drop to 0.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
typedef int vm_fault_t
typedef int vm_fault_t;
#endif
static vm_fault_t scullp_vma_nopage(struct vm_fault *vmf)
{
Expand Down
2 changes: 1 addition & 1 deletion scullv/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void scullv_vma_close(struct vm_area_struct *vma)
* is individually decreased, and would drop to 0.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
typedef int vm_fault_t
typedef int vm_fault_t;
#endif

static vm_fault_t scullv_vma_nopage(struct vm_fault *vmf)
Expand Down
2 changes: 1 addition & 1 deletion simple/simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int simple_remap_mmap(struct file *filp, struct vm_area_struct *vma)
* The nopage version.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
typedef int vm_fault_t
typedef int vm_fault_t;
#endif

static vm_fault_t simple_vma_nopage(struct vm_fault *vmf)
Expand Down

0 comments on commit dd5c9c7

Please sign in to comment.