public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] um: Include missing header file in os-linux/mem.c
@ 2010-06-15  8:06 Liu Aleaxander
  2010-06-15 23:16 ` [uml-devel] " Boaz Harrosh
  0 siblings, 1 reply; 5+ messages in thread
From: Liu Aleaxander @ 2010-06-15  8:06 UTC (permalink / raw)
  To: jdike, user-mode-linux-devel, linux-kernel

The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
header file, so include it.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
---
 arch/um/os-Linux/mem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c
index 93a11d7..e696144 100644
--- a/arch/um/os-Linux/mem.c
+++ b/arch/um/os-Linux/mem.c
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <string.h>
+#include <sys/stat.h>
 #include <sys/mman.h>
 #include <sys/param.h>
 #include "init.h"


-- 
Thanks & regards
Liu Aleaxander

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [uml-devel] [PATCH] um: Include missing header file in os-linux/mem.c
  2010-06-15  8:06 [PATCH] um: Include missing header file in os-linux/mem.c Liu Aleaxander
@ 2010-06-15 23:16 ` Boaz Harrosh
  2010-06-16  5:27   ` Liu Aleaxander
  0 siblings, 1 reply; 5+ messages in thread
From: Boaz Harrosh @ 2010-06-15 23:16 UTC (permalink / raw)
  To: Liu Aleaxander; +Cc: jdike, user-mode-linux-devel, linux-kernel

On 06/15/2010 04:06 AM, Liu Aleaxander wrote:
> The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
> header file, so include it.
> 

Yes. I have the same patch.

Apparently it's new for Fedora 13. Previous Fedora's are compiling fine.
I guess something has changed with the new gcc headers include sequence

Thanks
Boaz 

> Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
> ---
>  arch/um/os-Linux/mem.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c
> index 93a11d7..e696144 100644
> --- a/arch/um/os-Linux/mem.c
> +++ b/arch/um/os-Linux/mem.c
> @@ -10,6 +10,7 @@
>  #include <errno.h>
>  #include <fcntl.h>
>  #include <string.h>
> +#include <sys/stat.h>
>  #include <sys/mman.h>
>  #include <sys/param.h>
>  #include "init.h"
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [uml-devel] [PATCH] um: Include missing header file in  os-linux/mem.c
  2010-06-15 23:16 ` [uml-devel] " Boaz Harrosh
@ 2010-06-16  5:27   ` Liu Aleaxander
  2010-06-29  8:35     ` Boaz Harrosh
  0 siblings, 1 reply; 5+ messages in thread
From: Liu Aleaxander @ 2010-06-16  5:27 UTC (permalink / raw)
  To: Boaz Harrosh; +Cc: jdike, user-mode-linux-devel, linux-kernel

On Wed, Jun 16, 2010 at 7:16 AM, Boaz Harrosh <bharrosh@panasas.com> wrote:
> On 06/15/2010 04:06 AM, Liu Aleaxander wrote:
>> The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
>> header file, so include it.
>>
>
> Yes. I have the same patch.
>
> Apparently it's new for Fedora 13. Previous Fedora's are compiling fine.

Same here:)

> I guess something has changed with the new gcc headers include sequence



-- 
Thanks & regards
Liu Aleaxander

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [uml-devel] [PATCH] um: Include missing header file in  os-linux/mem.c
  2010-06-16  5:27   ` Liu Aleaxander
@ 2010-06-29  8:35     ` Boaz Harrosh
  2010-06-29 18:50       ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Boaz Harrosh @ 2010-06-29  8:35 UTC (permalink / raw)
  To: Liu Aleaxander
  Cc: Jeff Dike, user-mode-linux-devel, linux-kernel, Andrew Morton

On 06/15/2010 11:06 AM, Liu Aleaxander wrote:
> The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
> header file, so include it.
> 
> Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
> ---
>  arch/um/os-Linux/mem.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c
> index 93a11d7..e696144 100644
> --- a/arch/um/os-Linux/mem.c
> +++ b/arch/um/os-Linux/mem.c
> @@ -10,6 +10,7 @@
>  #include <errno.h>
>  #include <fcntl.h>
>  #include <string.h>
> +#include <sys/stat.h>
>  #include <sys/mman.h>
>  #include <sys/param.h>
>  #include "init.h"
> 

On 06/15/2010 04:06 AM, Liu Aleaxander wrote:
> On Wed, Jun 16, 2010 at 7:16 AM, Boaz Harrosh <bharrosh@panasas.com> wrote:
>>
>> Yes. I have the same patch.
>>
>> Apparently it's new for Fedora 13. Previous Fedora's are compiling fine.
> 
> Same here:)
> 
>> I guess something has changed with the new gcc headers include sequence
> 

Andrew? Jeff? someone?

I saw that some uml patches where pushed for -rc4. What about this patch?
could some one push this patch? It's for FC13 compilation?

It might be needed for stable@ as well. I'll try to test with old Kernels.
Am back on an FC12 in the office so it'll take some time.

Liu could you test to see that older Kernels need this patch as well?

Thanks
Boaz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [uml-devel] [PATCH] um: Include missing header file in  os-linux/mem.c
  2010-06-29  8:35     ` Boaz Harrosh
@ 2010-06-29 18:50       ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2010-06-29 18:50 UTC (permalink / raw)
  To: Boaz Harrosh
  Cc: Liu Aleaxander, Jeff Dike, user-mode-linux-devel, linux-kernel,
	stable

On Tue, 29 Jun 2010 11:35:00 +0300
Boaz Harrosh <bharrosh@panasas.com> wrote:

> On 06/15/2010 11:06 AM, Liu Aleaxander wrote:
> > The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
> > header file, so include it.
> > 
> > Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
> > ---
> >  arch/um/os-Linux/mem.c |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c
> > index 93a11d7..e696144 100644
> > --- a/arch/um/os-Linux/mem.c
> > +++ b/arch/um/os-Linux/mem.c
> > @@ -10,6 +10,7 @@
> >  #include <errno.h>
> >  #include <fcntl.h>
> >  #include <string.h>
> > +#include <sys/stat.h>
> >  #include <sys/mman.h>
> >  #include <sys/param.h>
> >  #include "init.h"
> > 
> 
> On 06/15/2010 04:06 AM, Liu Aleaxander wrote:
> > On Wed, Jun 16, 2010 at 7:16 AM, Boaz Harrosh <bharrosh@panasas.com> wrote:
> >>
> >> Yes. I have the same patch.
> >>
> >> Apparently it's new for Fedora 13. Previous Fedora's are compiling fine.
> > 
> > Same here:)
> > 
> >> I guess something has changed with the new gcc headers include sequence
> > 
> 
> Andrew? Jeff? someone?

I got it.

> I saw that some uml patches where pushed for -rc4. What about this patch?
> could some one push this patch? It's for FC13 compilation?
> 
> It might be needed for stable@ as well. I'll try to test with old Kernels.
> Am back on an FC12 in the office so it'll take some time.

Yes, it's needed in -stable.  People will want to compile 2.6.34 under
FC13.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-29 18:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15  8:06 [PATCH] um: Include missing header file in os-linux/mem.c Liu Aleaxander
2010-06-15 23:16 ` [uml-devel] " Boaz Harrosh
2010-06-16  5:27   ` Liu Aleaxander
2010-06-29  8:35     ` Boaz Harrosh
2010-06-29 18:50       ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox