* [PATCH] crash_dump: fix compilation error (on MIPS at least)
@ 2013-12-04 15:58 Qais Yousef
2013-12-04 21:30 ` Vivek Goyal
2013-12-05 13:58 ` Vivek Goyal
0 siblings, 2 replies; 7+ messages in thread
From: Qais Yousef @ 2013-12-04 15:58 UTC (permalink / raw)
To: linux-kernel
Cc: Qais Yousef, Andrew Morton, Michael Holzheu, Vivek Goyal,
linux-mips, stable
In file included from kernel/crash_dump.c:2:0:
include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
when CONFIG_CRASH_DUMP=y
The error was traced back to this commit:
9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
include <asm/pgtable.h> to get the missing definition
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: <linux-mips@linux-mips.org>
Cc: <stable@vger.kernel.org> # 3.12
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
---
I haven't tried any other architecture except mips.
If OK this should be considered for stable 3.12 (CCed).
include/linux/crash_dump.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
index fe68a5a..7032518 100644
--- a/include/linux/crash_dump.h
+++ b/include/linux/crash_dump.h
@@ -6,6 +6,8 @@
#include <linux/proc_fs.h>
#include <linux/elf.h>
+#include <asm/pgtable.h> /* for pgprot_t */
+
#define ELFCORE_ADDR_MAX (-1ULL)
#define ELFCORE_ADDR_ERR (-2ULL)
--
1.7.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
2013-12-04 15:58 [PATCH] crash_dump: fix compilation error (on MIPS at least) Qais Yousef
@ 2013-12-04 21:30 ` Vivek Goyal
2013-12-05 8:52 ` Qais Yousef
2013-12-05 13:58 ` Vivek Goyal
1 sibling, 1 reply; 7+ messages in thread
From: Vivek Goyal @ 2013-12-04 21:30 UTC (permalink / raw)
To: Qais Yousef
Cc: linux-kernel, Andrew Morton, Michael Holzheu, linux-mips, stable
On Wed, Dec 04, 2013 at 03:58:22PM +0000, Qais Yousef wrote:
> In file included from kernel/crash_dump.c:2:0:
> include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
>
> when CONFIG_CRASH_DUMP=y
>
> The error was traced back to this commit:
>
> 9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
>
> include <asm/pgtable.h> to get the missing definition
pgprot_t definition for mips seems to be in asm/page.h. So why are you
including asm/pgtable.h and not asm/page.h? For other architectures it
seems to be in other files. That means those arch will have broken
compilation now.
So question is, is there any arch specific file which one can include
and be covered for pgprot_t definition for all the arches.
Thanks
Vivek
>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Cc: <linux-mips@linux-mips.org>
> Cc: <stable@vger.kernel.org> # 3.12
> Reviewed-by: James Hogan <james.hogan@imgtec.com>
> Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
> ---
> I haven't tried any other architecture except mips.
> If OK this should be considered for stable 3.12 (CCed).
>
> include/linux/crash_dump.h | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
> index fe68a5a..7032518 100644
> --- a/include/linux/crash_dump.h
> +++ b/include/linux/crash_dump.h
> @@ -6,6 +6,8 @@
> #include <linux/proc_fs.h>
> #include <linux/elf.h>
>
> +#include <asm/pgtable.h> /* for pgprot_t */
> +
> #define ELFCORE_ADDR_MAX (-1ULL)
> #define ELFCORE_ADDR_ERR (-2ULL)
>
> --
> 1.7.1
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] crash_dump: fix compilation error (on MIPS at least)
2013-12-04 21:30 ` Vivek Goyal
@ 2013-12-05 8:52 ` Qais Yousef
0 siblings, 0 replies; 7+ messages in thread
From: Qais Yousef @ 2013-12-05 8:52 UTC (permalink / raw)
To: Vivek Goyal
Cc: linux-kernel@vger.kernel.org, Andrew Morton, Michael Holzheu,
linux-mips@linux-mips.org, stable@vger.kernel.org
> -----Original Message-----
> From: Vivek Goyal [mailto:vgoyal@redhat.com]
> Sent: 04 December 2013 21:30
> To: Qais Yousef
> Cc: linux-kernel@vger.kernel.org; Andrew Morton; Michael Holzheu; linux-
> mips@linux-mips.org; stable@vger.kernel.org
> Subject: Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
>
> On Wed, Dec 04, 2013 at 03:58:22PM +0000, Qais Yousef wrote:
> > In file included from kernel/crash_dump.c:2:0:
> > include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
> >
> > when CONFIG_CRASH_DUMP=y
> >
> > The error was traced back to this commit:
> >
> > 9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
> >
> > include <asm/pgtable.h> to get the missing definition
>
> pgprot_t definition for mips seems to be in asm/page.h. So why are you including
> asm/pgtable.h and not asm/page.h? For other architectures it seems to be in
> other files. That means those arch will have broken compilation now.
I didn't include asm/page.h because I didn't think it'll fix the problem for other arches.
>
> So question is, is there any arch specific file which one can include and be covered
> for pgprot_t definition for all the arches.
I asked the same question and asm/pgtable.h was the answer.
Thanks,
Qais
>
> Thanks
> Vivek
>
> >
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
> > Cc: Vivek Goyal <vgoyal@redhat.com>
> > Cc: <linux-mips@linux-mips.org>
> > Cc: <stable@vger.kernel.org> # 3.12
> > Reviewed-by: James Hogan <james.hogan@imgtec.com>
> > Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
> > ---
> > I haven't tried any other architecture except mips.
> > If OK this should be considered for stable 3.12 (CCed).
> >
> > include/linux/crash_dump.h | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
> > index fe68a5a..7032518 100644
> > --- a/include/linux/crash_dump.h
> > +++ b/include/linux/crash_dump.h
> > @@ -6,6 +6,8 @@
> > #include <linux/proc_fs.h>
> > #include <linux/elf.h>
> >
> > +#include <asm/pgtable.h> /* for pgprot_t */
> > +
> > #define ELFCORE_ADDR_MAX (-1ULL)
> > #define ELFCORE_ADDR_ERR (-2ULL)
> >
> > --
> > 1.7.1
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
2013-12-04 15:58 [PATCH] crash_dump: fix compilation error (on MIPS at least) Qais Yousef
2013-12-04 21:30 ` Vivek Goyal
@ 2013-12-05 13:58 ` Vivek Goyal
2013-12-11 11:43 ` Qais Yousef
1 sibling, 1 reply; 7+ messages in thread
From: Vivek Goyal @ 2013-12-05 13:58 UTC (permalink / raw)
To: Qais Yousef
Cc: linux-kernel, Andrew Morton, Michael Holzheu, linux-mips, stable
On Wed, Dec 04, 2013 at 03:58:22PM +0000, Qais Yousef wrote:
> In file included from kernel/crash_dump.c:2:0:
> include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
>
> when CONFIG_CRASH_DUMP=y
>
> The error was traced back to this commit:
>
> 9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
>
> include <asm/pgtable.h> to get the missing definition
>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Cc: <linux-mips@linux-mips.org>
> Cc: <stable@vger.kernel.org> # 3.12
> Reviewed-by: James Hogan <james.hogan@imgtec.com>
> Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
> ---
Looks good to me.
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Vivek
> I haven't tried any other architecture except mips.
> If OK this should be considered for stable 3.12 (CCed).
>
> include/linux/crash_dump.h | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
> index fe68a5a..7032518 100644
> --- a/include/linux/crash_dump.h
> +++ b/include/linux/crash_dump.h
> @@ -6,6 +6,8 @@
> #include <linux/proc_fs.h>
> #include <linux/elf.h>
>
> +#include <asm/pgtable.h> /* for pgprot_t */
> +
> #define ELFCORE_ADDR_MAX (-1ULL)
> #define ELFCORE_ADDR_ERR (-2ULL)
>
> --
> 1.7.1
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] crash_dump: fix compilation error (on MIPS at least)
2013-12-05 13:58 ` Vivek Goyal
@ 2013-12-11 11:43 ` Qais Yousef
2013-12-12 14:42 ` Vivek Goyal
0 siblings, 1 reply; 7+ messages in thread
From: Qais Yousef @ 2013-12-11 11:43 UTC (permalink / raw)
To: Vivek Goyal
Cc: linux-kernel@vger.kernel.org, Andrew Morton, Michael Holzheu,
linux-mips@linux-mips.org, stable@vger.kernel.org
> -----Original Message-----
> From: Vivek Goyal [mailto:vgoyal@redhat.com]
> Sent: 05 December 2013 13:59
> To: Qais Yousef
> Cc: linux-kernel@vger.kernel.org; Andrew Morton; Michael Holzheu; linux-
> mips@linux-mips.org; stable@vger.kernel.org
> Subject: Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
>
> On Wed, Dec 04, 2013 at 03:58:22PM +0000, Qais Yousef wrote:
> > In file included from kernel/crash_dump.c:2:0:
> > include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
> >
> > when CONFIG_CRASH_DUMP=y
> >
> > The error was traced back to this commit:
> >
> > 9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
> >
> > include <asm/pgtable.h> to get the missing definition
> >
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
> > Cc: Vivek Goyal <vgoyal@redhat.com>
> > Cc: <linux-mips@linux-mips.org>
> > Cc: <stable@vger.kernel.org> # 3.12
> > Reviewed-by: James Hogan <james.hogan@imgtec.com>
> > Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
> > ---
>
> Looks good to me.
>
> Acked-by: Vivek Goyal <vgoyal@redhat.com>
>
> Vivek
Hi,
I failed to see this picked up by anyone. I'm not sure which tree it should go to to be honest. Do I need to add more people to the Cc? Or am I just being impatient? :)
Thanks,
Qais
>
> > I haven't tried any other architecture except mips.
> > If OK this should be considered for stable 3.12 (CCed).
> >
> > include/linux/crash_dump.h | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
> > index fe68a5a..7032518 100644
> > --- a/include/linux/crash_dump.h
> > +++ b/include/linux/crash_dump.h
> > @@ -6,6 +6,8 @@
> > #include <linux/proc_fs.h>
> > #include <linux/elf.h>
> >
> > +#include <asm/pgtable.h> /* for pgprot_t */
> > +
> > #define ELFCORE_ADDR_MAX (-1ULL)
> > #define ELFCORE_ADDR_ERR (-2ULL)
> >
> > --
> > 1.7.1
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
2013-12-11 11:43 ` Qais Yousef
@ 2013-12-12 14:42 ` Vivek Goyal
2014-01-08 16:22 ` Qais Yousef
0 siblings, 1 reply; 7+ messages in thread
From: Vivek Goyal @ 2013-12-12 14:42 UTC (permalink / raw)
To: Qais Yousef, Andrew Morton
Cc: linux-kernel@vger.kernel.org, Michael Holzheu,
linux-mips@linux-mips.org, stable@vger.kernel.org
Generally akpm picks the kexec/kdump arch independent changes.
Andrew, can you please consider this patch for inclusion.
Thanks
Vivek
On Wed, Dec 11, 2013 at 11:43:32AM +0000, Qais Yousef wrote:
> > -----Original Message-----
> > From: Vivek Goyal [mailto:vgoyal@redhat.com]
> > Sent: 05 December 2013 13:59
> > To: Qais Yousef
> > Cc: linux-kernel@vger.kernel.org; Andrew Morton; Michael Holzheu; linux-
> > mips@linux-mips.org; stable@vger.kernel.org
> > Subject: Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
> >
> > On Wed, Dec 04, 2013 at 03:58:22PM +0000, Qais Yousef wrote:
> > > In file included from kernel/crash_dump.c:2:0:
> > > include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
> > >
> > > when CONFIG_CRASH_DUMP=y
> > >
> > > The error was traced back to this commit:
> > >
> > > 9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
> > >
> > > include <asm/pgtable.h> to get the missing definition
> > >
> > > Cc: Andrew Morton <akpm@linux-foundation.org>
> > > Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
> > > Cc: Vivek Goyal <vgoyal@redhat.com>
> > > Cc: <linux-mips@linux-mips.org>
> > > Cc: <stable@vger.kernel.org> # 3.12
> > > Reviewed-by: James Hogan <james.hogan@imgtec.com>
> > > Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
> > > ---
> >
> > Looks good to me.
> >
> > Acked-by: Vivek Goyal <vgoyal@redhat.com>
> >
> > Vivek
>
> Hi,
>
> I failed to see this picked up by anyone. I'm not sure which tree it should go to to be honest. Do I need to add more people to the Cc? Or am I just being impatient? :)
>
> Thanks,
> Qais
>
> >
> > > I haven't tried any other architecture except mips.
> > > If OK this should be considered for stable 3.12 (CCed).
> > >
> > > include/linux/crash_dump.h | 2 ++
> > > 1 files changed, 2 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
> > > index fe68a5a..7032518 100644
> > > --- a/include/linux/crash_dump.h
> > > +++ b/include/linux/crash_dump.h
> > > @@ -6,6 +6,8 @@
> > > #include <linux/proc_fs.h>
> > > #include <linux/elf.h>
> > >
> > > +#include <asm/pgtable.h> /* for pgprot_t */
> > > +
> > > #define ELFCORE_ADDR_MAX (-1ULL)
> > > #define ELFCORE_ADDR_ERR (-2ULL)
> > >
> > > --
> > > 1.7.1
> > >
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] crash_dump: fix compilation error (on MIPS at least)
2013-12-12 14:42 ` Vivek Goyal
@ 2014-01-08 16:22 ` Qais Yousef
0 siblings, 0 replies; 7+ messages in thread
From: Qais Yousef @ 2014-01-08 16:22 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-kernel@vger.kernel.org, Michael Holzheu,
linux-mips@linux-mips.org, stable@vger.kernel.org,
Vivek Goyal (vgoyal@redhat.com)
Ping.
> -----Original Message-----
> From: Vivek Goyal [mailto:vgoyal@redhat.com]
> Sent: 12 December 2013 14:42
> To: Qais Yousef; Andrew Morton
> Cc: linux-kernel@vger.kernel.org; Michael Holzheu; linux-mips@linux-mips.org;
> stable@vger.kernel.org
> Subject: Re: [PATCH] crash_dump: fix compilation error (on MIPS at least)
>
> Generally akpm picks the kexec/kdump arch independent changes.
>
> Andrew, can you please consider this patch for inclusion.
>
> Thanks
> Vivek
>
> On Wed, Dec 11, 2013 at 11:43:32AM +0000, Qais Yousef wrote:
> > > -----Original Message-----
> > > From: Vivek Goyal [mailto:vgoyal@redhat.com]
> > > Sent: 05 December 2013 13:59
> > > To: Qais Yousef
> > > Cc: linux-kernel@vger.kernel.org; Andrew Morton; Michael Holzheu;
> > > linux- mips@linux-mips.org; stable@vger.kernel.org
> > > Subject: Re: [PATCH] crash_dump: fix compilation error (on MIPS at
> > > least)
> > >
> > > On Wed, Dec 04, 2013 at 03:58:22PM +0000, Qais Yousef wrote:
> > > > In file included from kernel/crash_dump.c:2:0:
> > > > include/linux/crash_dump.h:22:27: error: unknown type name ‘pgprot_t’
> > > >
> > > > when CONFIG_CRASH_DUMP=y
> > > >
> > > > The error was traced back to this commit:
> > > >
> > > > 9cb218131de1 vmcore: introduce remap_oldmem_pfn_range()
> > > >
> > > > include <asm/pgtable.h> to get the missing definition
> > > >
> > > > Cc: Andrew Morton <akpm@linux-foundation.org>
> > > > Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
> > > > Cc: Vivek Goyal <vgoyal@redhat.com>
> > > > Cc: <linux-mips@linux-mips.org>
> > > > Cc: <stable@vger.kernel.org> # 3.12
> > > > Reviewed-by: James Hogan <james.hogan@imgtec.com>
> > > > Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
> > > > ---
> > >
> > > Looks good to me.
> > >
> > > Acked-by: Vivek Goyal <vgoyal@redhat.com>
> > >
> > > Vivek
> >
> > Hi,
> >
> > I failed to see this picked up by anyone. I'm not sure which tree it
> > should go to to be honest. Do I need to add more people to the Cc? Or
> > am I just being impatient? :)
> >
> > Thanks,
> > Qais
> >
> > >
> > > > I haven't tried any other architecture except mips.
> > > > If OK this should be considered for stable 3.12 (CCed).
> > > >
> > > > include/linux/crash_dump.h | 2 ++
> > > > 1 files changed, 2 insertions(+), 0 deletions(-)
> > > >
> > > > diff --git a/include/linux/crash_dump.h
> > > > b/include/linux/crash_dump.h index fe68a5a..7032518 100644
> > > > --- a/include/linux/crash_dump.h
> > > > +++ b/include/linux/crash_dump.h
> > > > @@ -6,6 +6,8 @@
> > > > #include <linux/proc_fs.h>
> > > > #include <linux/elf.h>
> > > >
> > > > +#include <asm/pgtable.h> /* for pgprot_t */
> > > > +
> > > > #define ELFCORE_ADDR_MAX (-1ULL)
> > > > #define ELFCORE_ADDR_ERR (-2ULL)
> > > >
> > > > --
> > > > 1.7.1
> > > >
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-01-08 16:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04 15:58 [PATCH] crash_dump: fix compilation error (on MIPS at least) Qais Yousef
2013-12-04 21:30 ` Vivek Goyal
2013-12-05 8:52 ` Qais Yousef
2013-12-05 13:58 ` Vivek Goyal
2013-12-11 11:43 ` Qais Yousef
2013-12-12 14:42 ` Vivek Goyal
2014-01-08 16:22 ` Qais Yousef
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).