parisc: drivers: Fix sparse warning
authorHelge Deller <deller@gmx.de>
Thu, 31 Aug 2023 20:08:32 +0000 (22:08 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 31 Aug 2023 20:09:15 +0000 (22:09 +0200)
Fix "warning: directive in macro's argument list" warning.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/drivers.c

index 8f4b77648491a4b38f15bc1df1c12cfe9c1b0c8e..ed8b759480614beb459a81c0a03278273c75c1f0 100644 (file)
@@ -925,9 +925,9 @@ static __init void qemu_header(void)
        pr_info("#define PARISC_MODEL \"%s\"\n\n",
                        boot_cpu_data.pdc.sys_model_name);
 
+       #define p ((unsigned long *)&boot_cpu_data.pdc.model)
        pr_info("#define PARISC_PDC_MODEL 0x%lx, 0x%lx, 0x%lx, "
                "0x%lx, 0x%lx, 0x%lx, 0x%lx, 0x%lx, 0x%lx\n\n",
-       #define p ((unsigned long *)&boot_cpu_data.pdc.model)
                p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]);
        #undef p