parisc: Mark image_size __maybe_unused in perf_write()
authorHelge Deller <deller@gmx.de>
Fri, 30 Jun 2023 10:31:14 +0000 (12:31 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 30 Jun 2023 15:14:14 +0000 (17:14 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/perf.c

index d46b6709ec56c415ec9d6965ff9ae1de52b0e3f9..90b04d8af21208e6206242b402d5caf20ba415e5 100644 (file)
@@ -288,7 +288,7 @@ static ssize_t perf_read(struct file *file, char __user *buf, size_t cnt, loff_t
 static ssize_t perf_write(struct file *file, const char __user *buf,
        size_t count, loff_t *ppos)
 {
-       size_t image_size;
+       size_t image_size __maybe_unused;
        uint32_t image_type;
        uint32_t interface_type;
        uint32_t test;