From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753878AbcD2Pjj (ORCPT ); Fri, 29 Apr 2016 11:39:39 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:55397 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbcD2PjM (ORCPT ); Fri, 29 Apr 2016 11:39:12 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Steven Rostedt , Russell King , Ard Biesheuvel , Peter Zijlstra , Frederic Weisbecker , linux-kernel@vger.kernel.org, Ingo Molnar , Andy Lutomirski , Thomas Gleixner , Borislav Petkov , Mel Gorman Subject: Re: [PATCH] sched/core: don't include asm/mmu_context from drivers Date: Fri, 29 Apr 2016 17:37:48 +0200 Message-ID: <4235157.5fsGtDGIFX@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160429094218.61b26849@gandalf.local.home> References: <1461919995-21001-1-git-send-email-arnd@arndb.de> <20160429094218.61b26849@gandalf.local.home> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:d+HZ5hjJD4Gdtuyw0qaMeomsLUNTDl5NDpxJAisRxPHZuUw42AL sTbrTRNqzxEPuWJYMMcmatJZHewn9TJmJ5cRAUVgTUWi7m4R16/zu1aqrirWUuFIsOM0dB8 DmSGpdHUxW+Oq90TsztJ0PHlTez3IFQ7domSdpxVeMhxa/CIehwXtpozvTvq6xYzN/a2/4Y PSOclASR9zIoiuzGlDLvg== X-UI-Out-Filterresults: notjunk:1;V01:K0:HP7GS7xmHxk=:rrBChDYL8h0hI7OUorDiVu 9v+xxdlnIxfOne8G7h/LL6J3HdIDzsiLZTpt36zgF9Hh0C1UInYu+kRbLnAK42I2OsRRxY3vw KoGAVAOGDi1ZGI6b/JIWzf0hOsRgDfrV8ymYrRXa13r/He6JZzbnxnLK94F96X5Hn2rt0iIoC 8cwORfBIJAYbuDrHTsu2tgorwi6K3hX4Wh/G2aJYZGhfmwtYSD0gSRmXGR6MbdLHU75/hHnpg W0WAcWsvYb3LftB2+GXRmU0ER+T/unXPFpCcQDrnBqcwfEZQDxnuXx4E9Sj9A9/CwxlSFMQ7n 3MaKV6dG/+ogMTWX9Byp7iww7kO0id4kHsrNJ5sMYABXwmOj70NMo+rIVivpHXYxoKrrq4loV YyDTrYs+gpZ8klncQvzHw9n7Rn8Ay8Urt2IiqW86KS5QL+1MV0tzV1GmDdfjjhoSjwkmWo/vq OdvyoIzo76xdfXFJn/MvHqW85Pt7nE5rWcABi+y8j9lRnYdbAB47707azELMbw9/XGb4+B8jJ vMSkNXxdJnc89Clr/MMe8rxhrpDwVDSVCpyx5J9H0XkcVRutIeUjRQ/pIg3O2Nj+NylkvdddJ 1LZn2ibK+tOyTdZDEFbVR7fE5U9BbPsxiyiHbDefgDyVhA7j+N8tqjLYED4hqMlC14PU7E8Cj 4lPJ3FCvhaaDo85NSepCeuciObGVWDxcIjgo8E647mNiWxAlyft02ApHPPaRWk2O3va4dAVjN cYo8sJv7E4t7CURw Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 29 April 2016 09:42:18 Steven Rostedt wrote: > On Fri, 29 Apr 2016 10:52:32 +0200 > Arnd Bergmann wrote: > > > This reverts the earlier fix attempt and works around the problem > > by including both linux/mmu_context.h and asm/mmu_context.h from > > kernel/sched/core.c. This is not a good solution but seems less > > hacky than the alternatives. > > What about simply not compiling finish_arch_post_lock_switch() when > building modules? > > (untested, not compiled or anything) > > Signed-off-by: Steven Rostedt > It should work as well. I think I suggested doing that the last time the problem came up a few years ago, but we ended up not including the header instead, so I kept doing that. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Fri, 29 Apr 2016 17:37:48 +0200 Subject: [PATCH] sched/core: don't include asm/mmu_context from drivers In-Reply-To: <20160429094218.61b26849@gandalf.local.home> References: <1461919995-21001-1-git-send-email-arnd@arndb.de> <20160429094218.61b26849@gandalf.local.home> Message-ID: <4235157.5fsGtDGIFX@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Friday 29 April 2016 09:42:18 Steven Rostedt wrote: > On Fri, 29 Apr 2016 10:52:32 +0200 > Arnd Bergmann wrote: > > > This reverts the earlier fix attempt and works around the problem > > by including both linux/mmu_context.h and asm/mmu_context.h from > > kernel/sched/core.c. This is not a good solution but seems less > > hacky than the alternatives. > > What about simply not compiling finish_arch_post_lock_switch() when > building modules? > > (untested, not compiled or anything) > > Signed-off-by: Steven Rostedt > It should work as well. I think I suggested doing that the last time the problem came up a few years ago, but we ended up not including the header instead, so I kept doing that. Arnd