min/max: remove sparse warnings when they're nested
[cascardo/linux.git] / drivers / spi / spi-loopback-test.c
index faa1b13..50e620f 100644 (file)
@@ -405,7 +405,7 @@ struct rx_ranges {
        u8 *end;
 };
 
-int rx_ranges_cmp(void *priv, struct list_head *a, struct list_head *b)
+static int rx_ranges_cmp(void *priv, struct list_head *a, struct list_head *b)
 {
        struct rx_ranges *rx_a = list_entry(a, struct rx_ranges, list);
        struct rx_ranges *rx_b = list_entry(b, struct rx_ranges, list);