Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2474120imd; Fri, 2 Nov 2018 12:02:55 -0700 (PDT) X-Google-Smtp-Source: AJdET5fFTlv6dnX6i6s221IzkvYKvVavS5991Iw/47ioszuz1zLO/pB0WskHBYmtIIxCUAWBscfx X-Received: by 2002:a63:62c3:: with SMTP id w186mr12078690pgb.345.1541185375622; Fri, 02 Nov 2018 12:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541185375; cv=none; d=google.com; s=arc-20160816; b=AzZuVkR3Wg7zVQbbFNt+Xc5WgU4BYkj9CXVJT/CcIGGWzA3TfFlQzbmOadSgcKG4zk yLYSdQu0QRDkYFEKHVWPko34Kyr3kjdR/OdS6VUZATltHhcG4KEr2XCk3N6klgpDhjTG lJ0ZV+c9jR437LZuG/pfk5m3VYQMb2nV3luU1PxL1Vc5QXpsBhRpx6VyZux7xhznQJT7 i2thPGn6mG0Jc4k2HA/8nCVUnLj9YKk3HAB8SRSKRRmvsJekEiIJjJQqgVMW4bl8h5t9 y8BxfisFFgyY+mw2KrSsKLcrqQz9A3epbtewUEbQ7r6arCNPNgYO7mqAQoKTF+17W46o Qm4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IhU2XrXFH1Kd1kmLevrD6bAw5GU/51Fr/Y3DBQC8Uo4=; b=wGR9UTTtr3tShFmNmo8mmI114AN8/cNfl7tQmK7HMOZW8LyEXNeBYVzrRAjk5gglPC BCARF8R3k9j1nEznkF2XhCtL47l5FMps/v6DB9sz+QXKZehIL0W7R/d3vezYAqNQjePy NemXBCGWTDG7LEFFJJx+oLOmUXsMQjnrF/DFHW/m87l+p4wZQ6ELMINibpldvUAQEPH7 n89OAyUoAW6KUi8v2ucjf72WKIMnewanQkMd9/g6EYWZIupRapHYUIJvJTsgMwKtinsl RhT/t7S0s4bMQ9qUBKPctXkFb9aDvMLSAeUCcGJq6ARB2b8J7rKEb0n391q5MfkFpdFv Yavw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uyLPVGUf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si26748908pgk.497.2018.11.02.12.02.40; Fri, 02 Nov 2018 12:02:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uyLPVGUf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbeKCEJt (ORCPT + 99 others); Sat, 3 Nov 2018 00:09:49 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:38791 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbeKCEJs (ORCPT ); Sat, 3 Nov 2018 00:09:48 -0400 Received: by mail-it1-f196.google.com with SMTP id k141-v6so2734745itk.3; Fri, 02 Nov 2018 12:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IhU2XrXFH1Kd1kmLevrD6bAw5GU/51Fr/Y3DBQC8Uo4=; b=uyLPVGUfxtvGIuY4oZxPSD3ztYWoyWW/md8zYE3HJrjiFR8SRWMUkTetTfbGuOf2Ac /Gu7xL5l5a5Tjsn+WW1jdUmlJ5FC6FPZCi4JrM7B8wSOJX/fRirhUg4vSs8jCgnYnyij blqDJ4AHO/45pHHV0BYsu19iaefn2112IHa7ELWXJqFpUHrXJaeBJtXvp1DgjznqcNsE wtbtMoThH1cmBD7lksigWNSbDSTFNsS+tLmWQdmgPupnTj3DPJuHpbrKUr4ibXqf8NnH RV0pyx3hx+rDENUX7S1L3u4NginaXgqgcCrt98cRpWzgnQEZ03LCkr7JeZmP7ic6X/7q +8iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IhU2XrXFH1Kd1kmLevrD6bAw5GU/51Fr/Y3DBQC8Uo4=; b=F7RF2bJ1MsWzmCXNEsI6a9hg60ZoZPn0cBGnFuHvrzNxkwzf469ViPpzQZGwUCKqtM 8AMQR1seVhWyelvfTfGK5QyZywEGatgiDQHXpfr1NV/CvpCPnENmszG8gT1azVRP3kQf vt16c2nRZNpUIAo/25RybMsoS5Kflje+HxCG0VKreEdc8rB7zrFCOnXBPt+daBcnO/TC ECDhbneSWRtUMDcNAmy12lIs19sCIGWx2TcByzjQvN2uhD7u+c/07OQ/eLn3mz8L4mSc 7oxtW25XeE8I1LDyMCcKFQTGOz0XMqHAbQRBmnHl99NOV5NQEvnWo59VRux552Aj/XLi RAkA== X-Gm-Message-State: AGRZ1gIeFWBPVda5yYt+Tf7gcbUo4zRof62KEhwtpIZB2UMO9vDF7f+V gPkze9XvNCE2l4lIAD280sseP4cpLwrra3YzOJw= X-Received: by 2002:a24:5712:: with SMTP id u18-v6mr207201ita.32.1541185290207; Fri, 02 Nov 2018 12:01:30 -0700 (PDT) MIME-Version: 1.0 References: <20181102152637.GA3105@hp-pavilion-15-notebook-pc-brajeswar> <20181102182905.3klrdw4dxapeoiib@tower> In-Reply-To: From: Matt Turner Date: Fri, 2 Nov 2018 12:01:18 -0700 Message-ID: Subject: Re: [PATCH] include/asm/cmpxchg.h: Remove duplicate header To: jrdr.linux@gmail.com Cc: Michael Cree , brajeswar.linux@gmail.com, Richard Henderson , Ivan Kokshaysky , Andrea Parri , Ingo Molnar , "Paul E. McKenney" , linux-alpha , LKML , sabyasachi.linux@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 2, 2018 at 11:55 AM Souptick Joarder wrote: > We run the static analyser "make includecheck" which list out files where > duplicate headers can be removed and based on that we thought to remove > from this file. Didn't understood about the existence of second include ?? #define ____xchg(type, args...) __xchg ## type ## _local(args) #define ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args) #include [snip] #undef ____xchg #undef ____cmpxchg #define ____xchg(type, args...) __xchg ##type(args) #define ____cmpxchg(type, args...) __cmpxchg ##type(args) #include asm/xchg.h has a comment at the top that says /* * xchg/xchg_local and cmpxchg/cmpxchg_local share the same code * except that local version do not have the expensive memory barrier. * So this file is included twice from asm/cmpxchg.h. */