summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-07-13 16:12:05 +0200
committerChristoph Hellwig <hch@lst.de>2017-10-19 16:37:08 +0200
commitacfef4f126a716018127dcf147be0cc16c304e72 (patch)
tree078986818b0108957177ef9b19972c0e238211d2 /drivers/block
parentd89e2378a97fafdc74cbf997e7c88af75b81610a (diff)
downloadlinux-acfef4f126a716018127dcf147be0cc16c304e72.tar.bz2
floppy: consolidate the dummy fd_cacheflush definition
Only mips defines this helper, so remove all the other arch definitions. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/floppy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 60c086a53609..a54183935aa1 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -275,6 +275,10 @@ static int set_next_request(void);
#define fd_dma_mem_alloc(size) __get_dma_pages(GFP_KERNEL, get_order(size))
#endif
+#ifndef fd_cacheflush
+#define fd_cacheflush(addr, size) /* nothing... */
+#endif
+
static inline void fallback_on_nodma_alloc(char **addr, size_t l)
{
#ifdef FLOPPY_CAN_FALLBACK_ON_NODMA