From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbcD2Sw7 (ORCPT ); Fri, 29 Apr 2016 14:52:59 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:35664 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751303AbcD2Sw6 (ORCPT ); Fri, 29 Apr 2016 14:52:58 -0400 MIME-Version: 1.0 In-Reply-To: <4235157.5fsGtDGIFX@wuerfel> References: <1461919995-21001-1-git-send-email-arnd@arndb.de> <20160429094218.61b26849@gandalf.local.home> <4235157.5fsGtDGIFX@wuerfel> From: Andy Lutomirski Date: Fri, 29 Apr 2016 11:52:37 -0700 Message-ID: Subject: Re: [PATCH] sched/core: don't include asm/mmu_context from drivers To: Arnd Bergmann Cc: "linux-arm-kernel@lists.infradead.org" , 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 29, 2016 at 8:37 AM, Arnd Bergmann wrote: > 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 This variant looks considerably nicer to me. --Andy