From: Mohan Srinivasan Date: Thu, 8 Sep 2016 00:39:42 +0000 (-0700) Subject: Android: Fix build breakages. X-Git-Tag: firefly_0821_release~176^2~308 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=34363937f74d63305d45f699c3bc1b7f4d48fbf4;p=firefly-linux-kernel-4.4.55.git Android: Fix build breakages. The IO latency histogram change broke allmodconfig and allnoconfig builds. This fixes those breakages. Change-Id: I9cdae655b40ed155468f3cef25cdb74bb56c4d3e Signed-off-by: Mohan Srinivasan --- diff --git a/block/blk-core.c b/block/blk-core.c index b20ada4ad68e..32e5bd63f6ae 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -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); diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index e4862f7cdede..97b2b0b1f99d 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -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; };