PCI: pciehp: remove unused EMI() macro
PATCH 1/1 PCI: pciehp: remove unused EMI() macro
EMI() macro seems to be unused. So removing it. Thanks Mika Westerberg <[email protected]> for pointing it out.
--- drivers/pci/hotplug/pciehp.h | 1 - 1 file changed, 1 deletion(-)
drivers/pci/hotplug/pciehp.h +0 -1
@@ -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)#define NO_CMD_CMPL (ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS)#define PSN (ctrl) (((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19)
Signature · 1 line
2.7.4
Quoted 5 lines · Ani Sinha
EMI()macro seems to be unused. So removing it. Thanks Mika Westerberg <[email protected]> for pointing it out.Signed-off-by Ani Sinha <[email protected]>
Hi Ani,
Quoted 14 lines · Ani Sinha
EMI()macro seems to be unused. So removing it. Thanks Mika Westerberg <[email protected]> for pointing it out.Signed-off-by Ani Sinha <[email protected]>--- drivers/pci/hotplug/pciehp.h | 1 - 1 file changed, 1 deletion(-)drivers/pci/hotplug/pciehp.h +0
-0
drivers/pci/hotplug/pciehp.h struct controller { · line 151
Quoted 4 lines
drivers/pci/hotplug/pciehp.h +0
-1@@ -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
Quoted 6 lines
drivers/pci/hotplug/pciehp.h +0
-0#define NO_CMD_CMPL (ctrl) ((ctrl)->slot_cap & PCI_EXP_SLTCAP_NCCS)#define PSN (ctrl) (((ctrl)->slot_cap & PCI_EXP_SLTCAP_PSN) >> 19)Signature · 1 line
2.7.4
Quoted 28 lines · Bjorn Helgaas
Hi Ani,
Quoted 14 lines · Ani Sinha
EMI()macro seems to be unused. So removing it. Thanks Mika Westerberg <[email protected]> for pointing it out.Signed-off-by Ani Sinha <[email protected]>--- drivers/pci/hotplug/pciehp.h | 1 - 1 file changed, 1 deletion(-)drivers/pci/hotplug/pciehp.h +0
-0drivers/pci/hotplug/pciehp.h struct controller { · line 151
Quoted 4 lines
drivers/pci/hotplug/pciehp.h +0
-1@@ -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_RMremoval (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.
Quoted 3 lines
I like the subject of this one ("Removed unused ..."), but please capitalize it as you did for the
HP_SUPR_RMone so it matches previous history.
I have sent an updated patch few days back.
ani