From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751615AbdF1SVx (ORCPT ); Wed, 28 Jun 2017 14:21:53 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:53022 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbdF1SVr (ORCPT ); Wed, 28 Jun 2017 14:21:47 -0400 Date: Wed, 28 Jun 2017 20:21:16 +0200 (CEST) From: Thomas Gleixner To: Mark Rutland cc: Sebastian Andrzej Siewior , Andrey Ryabinin , Ingo Molnar , Dmitry Vyukov , Peter Zijlstra , Will Deacon , "H. Peter Anvin" , kasan-dev , "x86@kernel.org" , LKML , Andrew Morton , "linux-mm@kvack.org" , Linus Torvalds Subject: Re: [PATCH] locking/atomics: don't alias ____ptr In-Reply-To: <20170628155445.GD8252@leverpostej> Message-ID: References: <85d51d3551b676ba1fc40e8fbddd2eadd056d8dd.1498140838.git.dvyukov@google.com> <20170628100246.7nsvhblgi3xjbc4m@breakpoint.cc> <1c1cbbfb-8e34-dd33-0e73-bbb2a758e962@virtuozzo.com> <20170628121246.qnk2csgzbgpqrmw3@linutronix.de> <20170628141420.GK5981@leverpostej> <20170628155445.GD8252@leverpostej> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Jun 2017, Mark Rutland wrote: > On Wed, Jun 28, 2017 at 05:24:24PM +0200, Thomas Gleixner wrote: > Given we're gonig to clean things up, we may as well avoid the backwards > include of , whcih was only there as > a bodge: > > For the UP arches we do: > # echo '#include ' >arch/xxx/include/asm/atomic.h > # mv include/asm-generic/atomic.h include/asm-generic/atomic_up.h > > Then we add a : > > #ifndef __LINUX_ATOMIC_INSTRUMENTED_H > #define __LINUX_ATOMIC INSTRUMENTED_H > > #include > > #if CONFIG_ATOMIC_INSTRUMENTED_H > > #endif > > #endif /* __LINUX_ATOMIC_ARCH_H */ > > ... and make incldue that rather than . > > That way the instrumentation's orthogonal to the UP-ness of the arch, > and we can fold any other instrumentation in there, or later move it > directly into Sounds like a plan. Thanks, tglx