* [PATCH] arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error
@ 2014-03-24 12:17 Chen Gang
2014-03-24 12:29 ` 回复: " 管雪涛
0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2014-03-24 12:17 UTC (permalink / raw)
To: gxt, linux-kernel@vger.kernel.org
Need include "asm/pgtable.h" to include "asm-generic/pgtable-nopmd.h",
so can let 'pmd_t' defined. The related error with allmodconfig:
CC arch/unicore32/mm/alignment.o
In file included from arch/unicore32/mm/alignment.c:24:
arch/unicore32/include/asm/tlbflush.h:135: error: expected ‘)’ before ‘*’ token
arch/unicore32/include/asm/tlbflush.h:154: error: expected ‘)’ before ‘*’ token
In file included from arch/unicore32/mm/alignment.c:27:
arch/unicore32/mm/mm.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
arch/unicore32/mm/mm.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
arch/unicore32/mm/mm.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[1]: *** [arch/unicore32/mm/alignment.o] Error 1
make: *** [arch/unicore32/mm] Error 2
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
arch/unicore32/mm/alignment.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/unicore32/mm/alignment.c b/arch/unicore32/mm/alignment.c
index de7dc5f..24e8360 100644
--- a/arch/unicore32/mm/alignment.c
+++ b/arch/unicore32/mm/alignment.c
@@ -21,6 +21,7 @@
#include <linux/sched.h>
#include <linux/uaccess.h>
+#include <asm/pgtable.h>
#include <asm/tlbflush.h>
#include <asm/unaligned.h>
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* 回复: [PATCH] arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error
2014-03-24 12:17 [PATCH] arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error Chen Gang
@ 2014-03-24 12:29 ` 管雪涛
2014-03-24 12:34 ` Chen Gang
0 siblings, 1 reply; 3+ messages in thread
From: 管雪涛 @ 2014-03-24 12:29 UTC (permalink / raw)
To: Chen Gang; +Cc: gxt, linux-kernel
Thanks,
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
> Need include "asm/pgtable.h" to include "asm-generic/pgtable-nopmd.h",
> so can let 'pmd_t' defined. The related error with allmodconfig:
>
> CC arch/unicore32/mm/alignment.o
> In file included from arch/unicore32/mm/alignment.c:24:
> arch/unicore32/include/asm/tlbflush.h:135: error: expected ‘)’ before ‘*’ token
> arch/unicore32/include/asm/tlbflush.h:154: error: expected ‘)’ before ‘*’ token
> In file included from arch/unicore32/mm/alignment.c:27:
> arch/unicore32/mm/mm.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> arch/unicore32/mm/mm.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> arch/unicore32/mm/mm.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> make[1]: *** [arch/unicore32/mm/alignment.o] Error 1
> make: *** [arch/unicore32/mm] Error 2
>
>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
> arch/unicore32/mm/alignment.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/unicore32/mm/alignment.c b/arch/unicore32/mm/alignment.c
> index de7dc5f..24e8360 100644
> --- a/arch/unicore32/mm/alignment.c
> +++ b/arch/unicore32/mm/alignment.c
> @@ -21,6 +21,7 @@
> #include <linux/sched.h>
> #include <linux/uaccess.h>
>
> +#include <asm/pgtable.h>
> #include <asm/tlbflush.h>
> #include <asm/unaligned.h>
>
> --
> 1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 回复: [PATCH] arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error
2014-03-24 12:29 ` 回复: " 管雪涛
@ 2014-03-24 12:34 ` Chen Gang
0 siblings, 0 replies; 3+ messages in thread
From: Chen Gang @ 2014-03-24 12:34 UTC (permalink / raw)
To: 管雪涛; +Cc: gxt, linux-kernel
On 03/24/2014 08:29 PM, 管雪涛 wrote:
> Thanks,
>
> Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
>
Thank you too.
> ----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
>> Need include "asm/pgtable.h" to include "asm-generic/pgtable-nopmd.h",
>> so can let 'pmd_t' defined. The related error with allmodconfig:
>>
>> CC arch/unicore32/mm/alignment.o
>> In file included from arch/unicore32/mm/alignment.c:24:
>> arch/unicore32/include/asm/tlbflush.h:135: error: expected ‘)’ before ‘*’ token
>> arch/unicore32/include/asm/tlbflush.h:154: error: expected ‘)’ before ‘*’ token
>> In file included from arch/unicore32/mm/alignment.c:27:
>> arch/unicore32/mm/mm.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
>> arch/unicore32/mm/mm.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
>> arch/unicore32/mm/mm.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
>> make[1]: *** [arch/unicore32/mm/alignment.o] Error 1
>> make: *** [arch/unicore32/mm] Error 2
>>
>>
>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
>> ---
>> arch/unicore32/mm/alignment.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/unicore32/mm/alignment.c b/arch/unicore32/mm/alignment.c
>> index de7dc5f..24e8360 100644
>> --- a/arch/unicore32/mm/alignment.c
>> +++ b/arch/unicore32/mm/alignment.c
>> @@ -21,6 +21,7 @@
>> #include <linux/sched.h>
>> #include <linux/uaccess.h>
>>
>> +#include <asm/pgtable.h>
>> #include <asm/tlbflush.h>
>> #include <asm/unaligned.h>
>>
>> --
>> 1.7.9.5
>
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-24 12:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 12:17 [PATCH] arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error Chen Gang
2014-03-24 12:29 ` 回复: " 管雪涛
2014-03-24 12:34 ` Chen Gang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox