Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2467878imd; Fri, 2 Nov 2018 11:56:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5eZ7FkGfnUftXc6JVBKed2Q+VukmmaBK04OY+/P0+QWokHDtpYeeZCk0PPk0L8161jOjhU9 X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10-v6mr12774647plb.130.1541184976885; Fri, 02 Nov 2018 11:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184976; cv=none; d=google.com; s=arc-20160816; b=g87J9OX7FaH3oYnc5ipALsAPtbCqB5xXOXGyr1YQg4YEc8MM0J8r4TOZgaMkgjjHHE a4Mvc64JP5qC3xg3RL52ZgJDaCuJ9VjvOGRssg+gk3qMhXHUU7emmj0B+P9ztcncgWEY 49UBmPp4j/BacOu1jMQ7B1gQlE4lMNdGIymvB82NQ+wAYOIDvspSITH8J0fFammfhFFT PfdR2+BW9bgr/ZdqUqWnOZd9Kke239AzTyEv4l0AXAQLJZ0wi/NhW2mO2+d0i2nFIvf1 jmKvfTtLMmXeyIXQk0ZfisC+4qmQ4XyUseMI5WTjoiXQpc2/OvMrM2h07jkG/a+t9y5d GvfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LyxylQsEOAKO9YnrpN6j8Cv17Xvxh0WHRz+EZRQzaJA=; b=D6Slm+xa5ZgKJ96raLeHYLH2N0+g/kR2jt4dEqTDwF4JDUixqV9TlpYgNfIYUrDDMW 1ir6PUXaStN0onQk4LG3UwmM5qPVOih6vQ1gjmyU7JI/fp1O4wMXxz+yeKbyDYhraXaI hOfq1iUgXSW2zOMCucth+r2HVCVNfGAedxFO0lVJaWXqrY+Ljg/bXBtw4MqFiLXKrXnu DMBO/RAJjAsptiwpo6JDKvsx5wWZ4YwLC6bm333dIFslancIT5LsTo/qDhkW0jSxfKij 5iywqN4EdQyC5gEXjkO4Vt1y5htHR7MsyrSKeNsShCgXFb/wrN/lJDlDE0WpQDbc1j8+ nlCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X7qyfqoq; 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 x3-v6si36164956pfb.122.2018.11.02.11.56.02; Fri, 02 Nov 2018 11:56:16 -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=X7qyfqoq; 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 S1731403AbeKCEDj (ORCPT + 99 others); Sat, 3 Nov 2018 00:03:39 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:46721 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbeKCEDj (ORCPT ); Sat, 3 Nov 2018 00:03:39 -0400 Received: by mail-lf1-f68.google.com with SMTP id o2-v6so1994286lfl.13; Fri, 02 Nov 2018 11:55:22 -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; bh=LyxylQsEOAKO9YnrpN6j8Cv17Xvxh0WHRz+EZRQzaJA=; b=X7qyfqoqkp+N7mxKcSrgRg9XsAAOyEXsx/+dUdRFnIcRu8D4/jClPFxe3eDrt3L9/M VTsknkbeAzuLsVLMhNhh8Lei6M8UQEV58CLPlOOuTQpHLPyDtIPBwFAOPMaw5RqqunoJ nTbij41a5EEvZcuUziWtP2Dk7u/2mh00w24W3J/km13RykEGSQKqE+fsImQ3efyIb11e zyMn+EO6vOM2nzTgp3SRRBddUE3yrUUB88njAAnXoFowZT/Ozu5CLAyLiOwZ40Vg4T4F PZkXJ5A53YlBSTZT3T5UIyqAlS2jm2sC/0jsW2Pa38ekphLBYkSU5lL5U9EvSNZRChSA 17EQ== 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; bh=LyxylQsEOAKO9YnrpN6j8Cv17Xvxh0WHRz+EZRQzaJA=; b=Lt4EaOXbFV5NRQu41WcaUy+QP7PSKYpzytPs75PS9ssZjf+dmoIYjiQn/KPDHshZcP hM7n0jpja/R/k5KcTh0FxNYGuw/ostLSik94yEjynaR8qmNPMacaoM6vRfFMuc+k1hfW n251CfpbxzCC5bHCPv0tlKXYoiW3x2BC8BUXL1gu90S6hUPQ3pWwiQ7X/lMOaNgQQ/1L OGKMq8oM2pnKn87VkVBwjk1Rg+DTm/3uxpAGb4Je4mA5tljD/ppx7NH94aPU7CwcBFLX kEscw/QVCndVFxlSoLgCIlv0r8SDHHf9yqJxvlBrMcFq7oc8fiDYuZdS55RyDAwjy+qJ l9yQ== X-Gm-Message-State: AGRZ1gIZW0NJ81tGUn/9OPJvfrkEz42DkVOTchxl0uNHVdR/JPJjBBPT yiyFhxmNmWodr4klCXA8kicB7+YYSStmOAYyJcM= X-Received: by 2002:a19:24c6:: with SMTP id k189mr7810182lfk.77.1541184921233; Fri, 02 Nov 2018 11:55:21 -0700 (PDT) MIME-Version: 1.0 References: <20181102152637.GA3105@hp-pavilion-15-notebook-pc-brajeswar> <20181102182905.3klrdw4dxapeoiib@tower> In-Reply-To: <20181102182905.3klrdw4dxapeoiib@tower> From: Souptick Joarder Date: Sat, 3 Nov 2018 00:28:41 +0530 Message-ID: Subject: Re: [PATCH] include/asm/cmpxchg.h: Remove duplicate header To: mcree@orcon.net.nz, Brajeswar Ghosh , rth@twiddle.net, ink@jurassic.park.msu.ru, Matt Turner , parri.andrea@gmail.com, mingo@kernel.org, paulmck@linux.vnet.ibm.com, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Sabyasachi Gupta 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 Hi Michael, On Fri, Nov 2, 2018 at 11:59 PM Michael Cree wrote: > > On Fri, Nov 02, 2018 at 08:56:37PM +0530, Brajeswar Ghosh wrote: > > Remove asm/xchg.h which is included more than once > > > > Signed-off-by: Brajeswar Ghosh > > --- > > arch/alpha/include/asm/cmpxchg.h | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/arch/alpha/include/asm/cmpxchg.h b/arch/alpha/include/asm/cmpxchg.h > > index 6c7c39452471..bcbdac0744f9 100644 > > --- a/arch/alpha/include/asm/cmpxchg.h > > +++ b/arch/alpha/include/asm/cmpxchg.h > > @@ -36,7 +36,6 @@ > > #undef ____cmpxchg > > #define ____xchg(type, args...) __xchg ##type(args) > > #define ____cmpxchg(type, args...) __cmpxchg ##type(args) > > -#include > > It's amazing the number of times we get a patch to remove that. > > Instead of just automatically removing a second include of a > header file, why don't you take a closer look to see what it > actually does? 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 ??