Skip to content

Commit 978d16f

Browse files
author
Ley Foon Tan
committed
FogBugz #186973: nios2: Fix warning from cacheflush.h
Fixed this warning by adding <linux/mm_types.h> and remove unused cacheflush.h in process.c. Example warning message: arch/nios2/include/asm/cacheflush.h:21:2: warning: 'struct vm_area_struct' declared inside parameter list Signed-off-by: Ley Foon Tan <[email protected]>
1 parent a404337 commit 978d16f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/nios2/include/asm/cacheflush.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#ifndef _ASM_NIOS2_CACHEFLUSH_H
1313
#define _ASM_NIOS2_CACHEFLUSH_H
1414

15+
#include <linux/mm_types.h>
16+
1517
struct mm_struct;
1618

1719
extern void flush_cache_all(void);

arch/nios2/kernel/process.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include <asm/unistd.h>
2626
#include <asm/traps.h>
27-
#include <asm/cacheflush.h>
2827
#include <asm/cpuinfo.h>
2928

3029
asmlinkage void ret_from_fork(void);

0 commit comments

Comments
 (0)