Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3871073ybz; Mon, 20 Apr 2020 10:59:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJQmcYCyEhLCmYH6rpolmZBmTZfVjcCefhlaj7lERACjPnxIBisz99R2NuUktK7xBMu9SeO X-Received: by 2002:aa7:dcd4:: with SMTP id w20mr9481339edu.282.1587405575625; Mon, 20 Apr 2020 10:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587405575; cv=none; d=google.com; s=arc-20160816; b=Veq2yoJhYdAi0o0XdJXyNjNVuz7L6cIUOZWulNhog426/DCTFIvkTPGyc82sNvnOMw PMhIULpkFyE3J7svBQq2dcTw2WLQWrDDAlkVvYU1wsacXI4Lhho8NWF+r/LtPsyLEl5t nTKvZF6+rmkfOqRtjEYAekF6aFirsRNASYnEJs/tiqDYXOis3Un7suenQTf+QObTr/hd RvfQXOD4gzwhDQXMZ1aQpbbutrsane5YAnWxaozZrzcYxv1RmNUvdew4oDjZCY7b03R0 Q/dlYx6smqux2qekUwJ8OQvkxKvbrc6yJ+LJJPzErB6FzLFife47kKKAn06cJSmOz7/s RdEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=loee4JPi7PX1tLMOkWSGXvgskeCXhE5/FgRdqihooGA=; b=i+M6c/ug62HlnzDOlgpBRulP+zoTbEr2pMOIIflYfv1lYAE35c1u8N8Df9TBf2KG3A fVdvbG3nKb0/L5mHrk7gosX14rVgfS83Z8iB15pucxx7tXwkuDb+BadTc46uCX9uD6E4 Js/DZfBzeXV35ESZoe6Xdj53+ew1F8QCzhmraTzAK/HgJDteEwp/BgeTc/w+XzluJslB y4WEKXu3rl0cp+Au/BP+n2S+qyx+41d2+WqQu49Zuf35HA63TPS4dKq5MWgPtR8cNNfu X2Yo5AAwy68jfiFyPw19bmFcm5syADxVatQjMmLjWAjjcwMj+4nUPJmfylmcS1BzATbc yb+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=isVsuct1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v15si99598edq.394.2020.04.20.10.59.12; Mon, 20 Apr 2020 10:59:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=isVsuct1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbgDTR5h (ORCPT + 99 others); Mon, 20 Apr 2020 13:57:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:34548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbgDTR5h (ORCPT ); Mon, 20 Apr 2020 13:57:37 -0400 Received: from localhost (mobile-166-175-186-98.mycingular.net [166.175.186.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6E8E520B1F; Mon, 20 Apr 2020 17:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587405456; bh=1QfeIdYAdaoPYZPVIY/AQvVUA98AZnRFonLWpP+zWZ8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=isVsuct1teVVrXGWhe+smoFYkCAXLHWLHhmKq/KoBg4bf+k2drAK+0l5uReYejijn nvYkJdhR17R072goe6KIZH1F/jL2+a6tlZnk3piC/Xbq8JCFRwn09DWzJeQi2lyN9E UotslwHOshcxVcY+mmLz9luaeplq+d51jUDdJKOo= Date: Mon, 20 Apr 2020 12:57:34 -0500 From: Bjorn Helgaas To: Ani Sinha Cc: linux-kernel@vger.kernel.org, ani@anirban.org, Andy Shevchenko , Keith Busch , Frederick Lawler , Denis Efremov , Mika Westerberg , Lukas Wunner , linux-pci@vger.kernel.org Subject: Re: [PATCH] PCI: pciehp: remove unused EMI() macro Message-ID: <20200420175734.GA53587@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1587387114-38475-1-git-send-email-ani@anisinha.ca> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ani, On Mon, Apr 20, 2020 at 06:21:41PM +0530, Ani Sinha wrote: > EMI() macro seems to be unused. So removing it. Thanks > Mika Westerberg for > pointing it out. > > Signed-off-by: Ani Sinha > --- > drivers/pci/hotplug/pciehp.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h > index 5747967..4fd200d 100644 > --- a/drivers/pci/hotplug/pciehp.h > +++ b/drivers/pci/hotplug/pciehp.h > @@ -148,7 +148,6 @@ struct controller { > #define MRL_SENS(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_MRLSP) > #define ATTN_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_AIP) > #define PWR_LED(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_PIP) > -#define EMI(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_EIP) Thanks for the patch! Can you squash it together with the HP_SUPR_RM removal (and also check for any other unused ones at the same time)? For trivial things like this, I'd rather merge one patch that removes several unused things at once instead of several patches. I like the subject of this one ("Removed unused ..."), but please capitalize it as you did for the HP_SUPR_RM one so it matches previous history. Bjorn > #define NO_CMD_CMPL(ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS) > #define PSN(ctrl) (((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19) > > -- > 2.7.4 >