Skip to content

Commit dd5c9c7

Browse files
donaldkuckdwalkes
authored andcommitted
fix compilation error on gcc7.5
1 parent 6657e96 commit dd5c9c7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: sculld/mmap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void sculld_vma_close(struct vm_area_struct *vma)
5656
* is individually decreased, and would drop to 0.
5757
*/
5858
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
59-
typedef int vm_fault_t
59+
typedef int vm_fault_t;
6060
#endif
6161
static vm_fault_t sculld_vma_nopage(struct vm_fault *vmf)
6262
{

Diff for: scullp/mmap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void scullp_vma_close(struct vm_area_struct *vma)
5757
* is individually decreased, and would drop to 0.
5858
*/
5959
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
60-
typedef int vm_fault_t
60+
typedef int vm_fault_t;
6161
#endif
6262
static vm_fault_t scullp_vma_nopage(struct vm_fault *vmf)
6363
{

Diff for: scullv/mmap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void scullv_vma_close(struct vm_area_struct *vma)
5858
* is individually decreased, and would drop to 0.
5959
*/
6060
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
61-
typedef int vm_fault_t
61+
typedef int vm_fault_t;
6262
#endif
6363

6464
static vm_fault_t scullv_vma_nopage(struct vm_fault *vmf)

Diff for: simple/simple.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int simple_remap_mmap(struct file *filp, struct vm_area_struct *vma)
9292
* The nopage version.
9393
*/
9494
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
95-
typedef int vm_fault_t
95+
typedef int vm_fault_t;
9696
#endif
9797

9898
static vm_fault_t simple_vma_nopage(struct vm_fault *vmf)

0 commit comments

Comments
 (0)