OSDN Git Service

mmc: mxcmmc: Fix missing parentheses and brace
authorKees Cook <keescook@chromium.org>
Thu, 12 Jul 2018 19:59:37 +0000 (12:59 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Jul 2018 09:45:44 +0000 (11:45 +0200)
commit3b1074bf9817bf43d4da375aa5f4b6c88f1d953e
treedcc6dcf7a02c7892dfaa95030362d6bc1085cff7
parent9d3cce1e8b8561fed5f383d22a4d6949db4eadbe
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: b189e7589f6d3 ("mmc: mxcmmc: handle highmem pages")
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mxcmmc.c