lkml.org 
[lkml]   [2022]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip: x86/irq] x86/PCI: Fix coding style in PIRQ table search functions
    The following commit has been merged into the x86/irq branch of tip:

    Commit-ID: 449972c67ea78158bcd55d6a5ce6f941f8a4afa0
    Gitweb: https://git.kernel.org/tip/449972c67ea78158bcd55d6a5ce6f941f8a4afa0
    Author: Maciej W. Rozycki <macro@orcam.me.uk>
    AuthorDate: Thu, 06 Jan 2022 11:24:21
    Committer: Thomas Gleixner <tglx@linutronix.de>
    CommitterDate: Wed, 02 Feb 2022 21:27:55 +01:00

    x86/PCI: Fix coding style in PIRQ table search functions

    Remove extraneous spaces around casts.

    Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Link: https://lore.kernel.org/r/alpine.DEB.2.21.2201022143470.56863@angie.orcam.me.uk

    ---
    arch/x86/pci/irq.c | 10 ++++------
    1 file changed, 4 insertions(+), 6 deletions(-)

    diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c
    index b0d0640..9be1580 100644
    --- a/arch/x86/pci/irq.c
    +++ b/arch/x86/pci/irq.c
    @@ -76,7 +76,7 @@ static inline struct irq_routing_table *pirq_check_routing_table(u8 *addr)
    int i;
    u8 sum;

    - rt = (struct irq_routing_table *) addr;
    + rt = (struct irq_routing_table *)addr;
    if (rt->signature != PIRQ_SIGNATURE ||
    rt->version != PIRQ_VERSION ||
    rt->size % 16 ||
    @@ -160,19 +160,19 @@ static inline struct irq_routing_table *pirq_convert_irt_table(u8 *addr)
    /*
    * Search 0xf0000 -- 0xfffff for the PCI IRQ Routing Table.
    */
    -
    static struct irq_routing_table * __init pirq_find_routing_table(void)
    {
    u8 *addr;
    struct irq_routing_table *rt;

    if (pirq_table_addr) {
    - rt = pirq_check_routing_table((u8 *) __va(pirq_table_addr));
    + rt = pirq_check_routing_table((u8 *)__va(pirq_table_addr));
    if (rt)
    return rt;
    printk(KERN_WARNING "PCI: PIRQ table NOT found at pirqaddr\n");
    }
    - for (addr = (u8 *) __va(0xf0000); addr < (u8 *) __va(0x100000); addr += 16) {
    +
    + for (addr = (u8 *)__va(0xf0000); addr < (u8 *)__va(0x100000); addr += 16) {
    rt = pirq_check_routing_table(addr);
    if (rt)
    return rt;
    @@ -191,7 +191,6 @@ static struct irq_routing_table * __init pirq_find_routing_table(void)
    * bridges. It's a gross hack, but since there are no other known
    * ways how to get a list of buses, we have to go this way.
    */
    -
    static void __init pirq_peer_trick(void)
    {
    struct irq_routing_table *rt = pirq_table;
    @@ -226,7 +225,6 @@ static void __init pirq_peer_trick(void)
    * Code for querying and setting of IRQ routes on various interrupt routers.
    * PIC Edge/Level Control Registers (ELCR) 0x4d0 & 0x4d1.
    */
    -
    void elcr_set_level_irq(unsigned int irq)
    {
    unsigned char mask = 1 << (irq & 7);
    \
     
     \ /
      Last update: 2022-02-02 21:31    [W:2.672 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site