linux-csky.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/5] csky: Remove mm.h from asm/uaccess.h
       [not found] ` <20200320094856.3453859-1-bigeasy@linutronix.de>
@ 2020-03-20  9:48   ` Sebastian Andrzej Siewior
  2020-03-21 11:24     ` Guo Ren
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-03-20  9:48 UTC (permalink / raw)
  To: tglx
  Cc: arnd, balbi, bhelgaas, bigeasy, dave, davem, gregkh, joel,
	kurt.schwemmer, kvalo, linux-kernel, linux-pci, linux-usb,
	linux-wireless, linuxppc-dev, logang, mingo, mpe, netdev, oleg,
	paulmck, peterz, rdunlap, rostedt, torvalds, will, Guo Ren,
	linux-csky, kbuild test robot

The defconfig compiles without linux/mm.h. With mm.h included the
include chain leands to:
|   CC      kernel/locking/percpu-rwsem.o
| In file included from include/linux/huge_mm.h:8,
|                  from include/linux/mm.h:567,
|                  from arch/csky/include/asm/uaccess.h:,
|                  from include/linux/uaccess.h:11,
|                  from include/linux/sched/task.h:11,
|                  from include/linux/sched/signal.h:9,
|                  from include/linux/rcuwait.h:6,
|                  from include/linux/percpu-rwsem.h:8,
|                  from kernel/locking/percpu-rwsem.c:6:
| include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore'
|  1422 |  struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS];

once rcuwait.h includes linux/sched/signal.h.

Remove the linux/mm.h include.

Cc: Guo Ren <guoren@kernel.org>
Cc: linux-csky@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 arch/csky/include/asm/uaccess.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/csky/include/asm/uaccess.h b/arch/csky/include/asm/uaccess.h
index eaa1c3403a424..abefa125b93cf 100644
--- a/arch/csky/include/asm/uaccess.h
+++ b/arch/csky/include/asm/uaccess.h
@@ -11,7 +11,6 @@
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/sched.h>
-#include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/version.h>
 #include <asm/segment.h>
-- 
2.26.0.rc2


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

* Re: [PATCH 2/5] csky: Remove mm.h from asm/uaccess.h
  2020-03-20  9:48   ` [PATCH 2/5] csky: Remove mm.h from asm/uaccess.h Sebastian Andrzej Siewior
@ 2020-03-21 11:24     ` Guo Ren
  2020-03-21 12:08       ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Guo Ren @ 2020-03-21 11:24 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: Thomas Gleixner, Arnd Bergmann, balbi, bhelgaas, dave,
	David Miller, gregkh, joel, kurt.schwemmer, kvalo,
	Linux Kernel Mailing List, linux-pci, linux-usb, linux-wireless,
	linuxppc-dev, logang, mingo, Michael Ellerman, netdev, oleg,
	paulmck, Peter Zijlstra, Randy Dunlap, Steven Rostedt, torvalds,
	Will Deacon, linux-csky, kbuild test robot

Tested and Acked by me.

Queued for next pull request, thx

On Fri, Mar 20, 2020 at 5:49 PM Sebastian Andrzej Siewior
<bigeasy@linutronix.de> wrote:
>
> The defconfig compiles without linux/mm.h. With mm.h included the
> include chain leands to:
> |   CC      kernel/locking/percpu-rwsem.o
> | In file included from include/linux/huge_mm.h:8,
> |                  from include/linux/mm.h:567,
> |                  from arch/csky/include/asm/uaccess.h:,
> |                  from include/linux/uaccess.h:11,
> |                  from include/linux/sched/task.h:11,
> |                  from include/linux/sched/signal.h:9,
> |                  from include/linux/rcuwait.h:6,
> |                  from include/linux/percpu-rwsem.h:8,
> |                  from kernel/locking/percpu-rwsem.c:6:
> | include/linux/fs.h:1422:29: error: array type has incomplete element type 'struct percpu_rw_semaphore'
> |  1422 |  struct percpu_rw_semaphore rw_sem[SB_FREEZE_LEVELS];
>
> once rcuwait.h includes linux/sched/signal.h.
>
> Remove the linux/mm.h include.
>
> Cc: Guo Ren <guoren@kernel.org>
> Cc: linux-csky@vger.kernel.org
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
>  arch/csky/include/asm/uaccess.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/csky/include/asm/uaccess.h b/arch/csky/include/asm/uaccess.h
> index eaa1c3403a424..abefa125b93cf 100644
> --- a/arch/csky/include/asm/uaccess.h
> +++ b/arch/csky/include/asm/uaccess.h
> @@ -11,7 +11,6 @@
>  #include <linux/errno.h>
>  #include <linux/types.h>
>  #include <linux/sched.h>
> -#include <linux/mm.h>
>  #include <linux/string.h>
>  #include <linux/version.h>
>  #include <asm/segment.h>
> --
> 2.26.0.rc2
>


-- 
Best Regards
 Guo Ren

ML: https://lore.kernel.org/linux-csky/

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

* Re: [PATCH 2/5] csky: Remove mm.h from asm/uaccess.h
  2020-03-21 11:24     ` Guo Ren
@ 2020-03-21 12:08       ` Thomas Gleixner
  2020-03-21 14:11         ` Guo Ren
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2020-03-21 12:08 UTC (permalink / raw)
  To: Guo Ren, Sebastian Andrzej Siewior
  Cc: Arnd Bergmann, balbi, bhelgaas, dave, David Miller, gregkh, joel,
	kurt.schwemmer, kvalo, Linux Kernel Mailing List, linux-pci,
	linux-usb, linux-wireless, linuxppc-dev, logang, mingo,
	Michael Ellerman, netdev, oleg, paulmck, Peter Zijlstra,
	Randy Dunlap, Steven Rostedt, torvalds, Will Deacon, linux-csky,
	kbuild test robot

Guo Ren <guoren@kernel.org> writes:

> Tested and Acked by me.
>
> Queued for next pull request, thx

Can we please route that with the rcuwait changes to avoid breakage
unless you ship it to Linus right away?

Thanks,

        tglx

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

* Re: [PATCH 2/5] csky: Remove mm.h from asm/uaccess.h
  2020-03-21 12:08       ` Thomas Gleixner
@ 2020-03-21 14:11         ` Guo Ren
  0 siblings, 0 replies; 4+ messages in thread
From: Guo Ren @ 2020-03-21 14:11 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Sebastian Andrzej Siewior, Arnd Bergmann, balbi, Bjorn Helgaas,
	dave, David Miller, gregkh, joel, kurt.schwemmer, kvalo,
	Linux Kernel Mailing List, linux-pci, linux-usb, linux-wireless,
	linuxppc-dev, logang, mingo, Michael Ellerman, netdev, oleg,
	paulmck, Peter Zijlstra, Randy Dunlap, Steven Rostedt, torvalds,
	Will Deacon, linux-csky, kbuild test robot

On Sat, Mar 21, 2020 at 8:08 PM Thomas Gleixner <tglx@linutronix.de> wrote:
>
> Guo Ren <guoren@kernel.org> writes:
>
> > Tested and Acked by me.
> >
> > Queued for next pull request, thx
>
> Can we please route that with the rcuwait changes to avoid breakage
> unless you ship it to Linus right away?

Ok, I won't queue it.

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

end of thread, other threads:[~2020-03-21 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200318204408.010461877@linutronix.de>
     [not found] ` <20200320094856.3453859-1-bigeasy@linutronix.de>
2020-03-20  9:48   ` [PATCH 2/5] csky: Remove mm.h from asm/uaccess.h Sebastian Andrzej Siewior
2020-03-21 11:24     ` Guo Ren
2020-03-21 12:08       ` Thomas Gleixner
2020-03-21 14:11         ` Guo Ren

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).