OSDN Git Service

Android: Fix build breakages.
authorMohan Srinivasan <srmohan@google.com>
Thu, 8 Sep 2016 00:39:42 +0000 (17:39 -0700)
committerTodd Kjos <tkjos@google.com>
Thu, 8 Sep 2016 00:46:58 +0000 (00:46 +0000)
The IO latency histogram change broke allmodconfig and
allnoconfig builds. This fixes those breakages.

Change-Id: I9cdae655b40ed155468f3cef25cdb74bb56c4d3e
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
block/blk-core.c
include/linux/mmc/host.h

index 8407132..64f3455 100644 (file)
@@ -3560,6 +3560,7 @@ blk_zero_latency_hist(struct io_latency_state *s)
        s->latency_reads_elems = 0;
        s->latency_writes_elems = 0;
 }
+EXPORT_SYMBOL(blk_zero_latency_hist);
 
 ssize_t
 blk_latency_hist_show(struct io_latency_state *s, char *buf)
@@ -3621,3 +3622,4 @@ blk_latency_hist_show(struct io_latency_state *s, char *buf)
        }
        return bytes_written;
 }
+EXPORT_SYMBOL(blk_latency_hist_show);
index e4862f7..97b2b0b 100644 (file)
@@ -380,8 +380,10 @@ struct mmc_host {
        } embedded_sdio_data;
 #endif
 
+#ifdef CONFIG_BLOCK
        int                     latency_hist_enabled;
        struct io_latency_state io_lat_s;
+#endif
 
        unsigned long           private[0] ____cacheline_aligned;
 };