lkml.org 
[lkml]   [2008]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[mmotm][PATCH] fix arch/ia64/kernel/msi_ia64.c warning
    Date
    fix following warning.

    arch/ia64/kernel/msi_ia64.c:145: warning: initialization from incompatible pointer type

    Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    CC: Rusty Russell <rusty@rustcorp.com.au>
    CC: Mike Travis <travis@sgi.com>
    CC: "Luck, Tony" <tony.luck@intel.com>
    ---
    arch/ia64/kernel/msi_ia64.c | 5 +++--
    1 file changed, 3 insertions(+), 2 deletions(-)

    Index: b/arch/ia64/kernel/msi_ia64.c
    ===================================================================
    --- a/arch/ia64/kernel/msi_ia64.c
    +++ b/arch/ia64/kernel/msi_ia64.c
    @@ -49,11 +49,12 @@
    static struct irq_chip ia64_msi_chip;

    #ifdef CONFIG_SMP
    -static void ia64_set_msi_irq_affinity(unsigned int irq, cpumask_t cpu_mask)
    +static void ia64_set_msi_irq_affinity(unsigned int irq,
    + const cpumask_t *cpu_mask)
    {
    struct msi_msg msg;
    u32 addr, data;
    - int cpu = first_cpu(cpu_mask);
    + int cpu = first_cpu(*cpu_mask);

    if (!cpu_online(cpu))
    return;




    \
     
     \ /
      Last update: 2008-12-01 04:07    [W:0.110 / U:7.296 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site