From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918AbbIISvI (ORCPT ); Wed, 9 Sep 2015 14:51:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58524 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545AbbIISvF (ORCPT ); Wed, 9 Sep 2015 14:51:05 -0400 Date: Tue, 8 Sep 2015 21:00:32 -0700 From: Greg Kroah-Hartman To: Boqun Feng Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Jonathan Corbet , Shradha Shah , Kishon Vijay Abraham I , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Aybuke Ozdemir , Davidlohr Bueso , linux-net-drivers@solarflare.com, linux-doc@vger.kernel.org, netdev@vger.kernel.org, speakup@linux-speakup.org, devel@driverdev.osuosl.org Subject: Re: [PATCH v2] atomics,cmpxchg: Privatize the inclusion of asm/cmpxchg.h Message-ID: <20150909040032.GB5497@kroah.com> References: <1441762024-2081-1-git-send-email-boqun.feng@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441762024-2081-1-git-send-email-boqun.feng@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 09, 2015 at 09:27:04AM +0800, Boqun Feng wrote: > After commit: > > atomics: add acquire/release/relaxed variants of some atomic operations > > Architectures may only provide {cmp,}xchg_relaxed definitions in > asm/cmpxchg.h. Other variants, such as {cmp,}xchg, may be built in > linux/atomic.h, which means simply including asm/cmpxchg.h may not get > the definitions of all the{cmp,}xchg variants. Therefore, we should > privatize the inclusions of asm/cmpxchg.h to keep it only included in > arch/* and replace the inclusions outside with linux/atomic.h > > Acked-by: Will Deacon > Signed-off-by: Boqun Feng > --- > v1 --> v2: > 1. rebase on current master branch of tip tree > 2. remove documentation modification > Acked-by: Greg Kroah-Hartman