Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b1074bf authored by Kees Cook's avatar Kees Cook Committed by Ulf Hansson
Browse files

mmc: mxcmmc: Fix missing parentheses and brace



Looks like the adjusted syntax wasn't fully build tested. This fixes
failures with powerpc builds:

drivers/mmc/host/mxcmmc.c: In function ‘mxcmci_swap_buffers’:
drivers/mmc/host/mxcmmc.c:296:51: error: expected ‘)’ before ‘;’ token
   void *buf = kmap_atomic(sg_page(sg) + sg->offset;
                                                   ^
drivers/mmc/host/mxcmmc.c:299:1: error: expected ‘,’ or ‘;’ before ‘}’ token
 }
 ^

Fixes: b189e758 ("mmc: mxcmmc: handle highmem pages")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 9d3cce1e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -293,10 +293,11 @@ static void mxcmci_swap_buffers(struct mmc_data *data)
	int i;

	for_each_sg(data->sg, sg, data->sg_len, i) {
		void *buf = kmap_atomic(sg_page(sg) + sg->offset;
		void *buf = kmap_atomic(sg_page(sg) + sg->offset);
		buffer_swap32(buf, sg->length);
		kunmap_atomic(buf);
	}
}
#else
static inline void mxcmci_swap_buffers(struct mmc_data *data) {}
#endif