]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/platform/uv: Remove the uv_partition_coherence_id() macro
authorChristoph Hellwig <hch@lst.de>
Mon, 4 May 2020 17:15:18 +0000 (19:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 May 2020 13:32:19 +0000 (15:32 +0200)
uv_partition_coherence_id() is only used once.  Just open code it in the
only user.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Not-acked-by: Dimitri Sivanich <sivanich@hpe.com>
Cc: Russ Anderson <rja@hpe.com>
Link: https://lkml.kernel.org/r/20200504171527.2845224-3-hch@lst.de
arch/x86/include/asm/uv/bios.h
arch/x86/platform/uv/uv_sysfs.c

index fc85dafa5e496eb2e5ace4f8b55a493746291212..2fcc3ac12e76cdeac1b3e5e72783a18d70b0de60 100644 (file)
@@ -140,7 +140,6 @@ extern long sn_partition_id;
 extern long sn_coherency_id;
 extern long sn_region_size;
 extern long system_serial_number;
-#define uv_partition_coherence_id()    (sn_coherency_id)
 
 extern struct kobject *sgi_uv_kobj;    /* /sys/firmware/sgi_uv */
 
index 62214731fea5e54bca7b7c99f494fcac026dcc68..266773e2fb379ea92241a8dd0d3e26a07a7987d3 100644 (file)
@@ -21,7 +21,7 @@ static ssize_t partition_id_show(struct kobject *kobj,
 static ssize_t coherence_id_show(struct kobject *kobj,
                        struct kobj_attribute *attr, char *buf)
 {
-       return snprintf(buf, PAGE_SIZE, "%ld\n", uv_partition_coherence_id());
+       return snprintf(buf, PAGE_SIZE, "%ld\n", sn_coherency_id);
 }
 
 static struct kobj_attribute partition_id_attr =