]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: fix compilation of user API
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 11 May 2020 16:19:02 +0000 (18:19 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:14 +0000 (11:22 +0200)
commit1729889697c79c435bfeb5038d09fb88c8331afa
tree0685f636d52f9a88033b254ff8c72c0cbeb59263
parenta90a7693074cccc2d0ff5cb6f6f246191d151bf4
mmc: fix compilation of user API

The definitions of MMC_IOC_CMD  and of MMC_IOC_MULTI_CMD rely on
MMC_BLOCK_MAJOR:

    #define MMC_IOC_CMD       _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd)
    #define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1, struct mmc_ioc_multi_cmd)

However, MMC_BLOCK_MAJOR is defined in linux/major.h and
linux/mmc/ioctl.h did not include it.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200511161902.191405-1-Jerome.Pouiller@silabs.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
include/uapi/linux/mmc/ioctl.h