@@ -1567,65 +1567,65 @@ enum pci_fixup_pass {
1567
1567
/* Anonymous variables would be nice... */
1568
1568
#define DECLARE_PCI_FIXUP_SECTION (section , name , vendor , device , class , \
1569
1569
class_shift , hook ) \
1570
- static const struct pci_fixup __pci_fixup_##name __used \
1570
+ static const struct pci_fixup __PASTE( __pci_fixup_##name,__LINE__) __used \
1571
1571
__attribute__((__section__(#section), aligned((sizeof(void *))))) \
1572
1572
= { vendor, device, class, class_shift, hook };
1573
1573
1574
1574
#define DECLARE_PCI_FIXUP_CLASS_EARLY (vendor , device , class , \
1575
1575
class_shift , hook ) \
1576
1576
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_early, \
1577
- vendor##device## hook, vendor, device, class, class_shift, hook)
1577
+ hook, vendor, device, class, class_shift, hook)
1578
1578
#define DECLARE_PCI_FIXUP_CLASS_HEADER (vendor , device , class , \
1579
1579
class_shift , hook ) \
1580
1580
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_header, \
1581
- vendor##device## hook, vendor, device, class, class_shift, hook)
1581
+ hook, vendor, device, class, class_shift, hook)
1582
1582
#define DECLARE_PCI_FIXUP_CLASS_FINAL (vendor , device , class , \
1583
1583
class_shift , hook ) \
1584
1584
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_final, \
1585
- vendor##device## hook, vendor, device, class, class_shift, hook)
1585
+ hook, vendor, device, class, class_shift, hook)
1586
1586
#define DECLARE_PCI_FIXUP_CLASS_ENABLE (vendor , device , class , \
1587
1587
class_shift , hook ) \
1588
1588
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_enable, \
1589
- vendor##device## hook, vendor, device, class, class_shift, hook)
1589
+ hook, vendor, device, class, class_shift, hook)
1590
1590
#define DECLARE_PCI_FIXUP_CLASS_RESUME (vendor , device , class , \
1591
1591
class_shift , hook ) \
1592
1592
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \
1593
- resume##vendor##device## hook, vendor, device, class, \
1593
+ resume##hook, vendor, device, class, \
1594
1594
class_shift, hook)
1595
1595
#define DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY (vendor , device , class , \
1596
1596
class_shift , hook ) \
1597
1597
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \
1598
- resume_early##vendor##device## hook, vendor, device, \
1598
+ resume_early##hook, vendor, device, \
1599
1599
class, class_shift, hook)
1600
1600
#define DECLARE_PCI_FIXUP_CLASS_SUSPEND (vendor , device , class , \
1601
1601
class_shift , hook ) \
1602
1602
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \
1603
- suspend##vendor##device## hook, vendor, device, class, \
1603
+ suspend##hook, vendor, device, class, \
1604
1604
class_shift, hook)
1605
1605
1606
1606
#define DECLARE_PCI_FIXUP_EARLY (vendor , device , hook ) \
1607
1607
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_early, \
1608
- vendor##device## hook, vendor, device, PCI_ANY_ID, 0, hook)
1608
+ hook, vendor, device, PCI_ANY_ID, 0, hook)
1609
1609
#define DECLARE_PCI_FIXUP_HEADER (vendor , device , hook ) \
1610
1610
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_header, \
1611
- vendor##device## hook, vendor, device, PCI_ANY_ID, 0, hook)
1611
+ hook, vendor, device, PCI_ANY_ID, 0, hook)
1612
1612
#define DECLARE_PCI_FIXUP_FINAL (vendor , device , hook ) \
1613
1613
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_final, \
1614
- vendor##device## hook, vendor, device, PCI_ANY_ID, 0, hook)
1614
+ hook, vendor, device, PCI_ANY_ID, 0, hook)
1615
1615
#define DECLARE_PCI_FIXUP_ENABLE (vendor , device , hook ) \
1616
1616
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_enable, \
1617
- vendor##device## hook, vendor, device, PCI_ANY_ID, 0, hook)
1617
+ hook, vendor, device, PCI_ANY_ID, 0, hook)
1618
1618
#define DECLARE_PCI_FIXUP_RESUME (vendor , device , hook ) \
1619
1619
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \
1620
- resume##vendor##device## hook, vendor, device, \
1620
+ resume##hook, vendor, device, \
1621
1621
PCI_ANY_ID, 0, hook)
1622
1622
#define DECLARE_PCI_FIXUP_RESUME_EARLY (vendor , device , hook ) \
1623
1623
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \
1624
- resume_early##vendor##device## hook, vendor, device, \
1624
+ resume_early##hook, vendor, device, \
1625
1625
PCI_ANY_ID, 0, hook)
1626
1626
#define DECLARE_PCI_FIXUP_SUSPEND (vendor , device , hook ) \
1627
1627
DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \
1628
- suspend##vendor##device## hook, vendor, device, \
1628
+ suspend##hook, vendor, device, \
1629
1629
PCI_ANY_ID, 0, hook)
1630
1630
1631
1631
#ifdef CONFIG_PCI_QUIRKS
0 commit comments