[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFrB_U4cHHsj3VupDS8-kf-vOcUeOhzO99HZhpt2+xMA2g@mail.gmail.com>
Date: Fri, 15 May 2020 09:09:22 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Jerome Pouiller <Jerome.Pouiller@...abs.com>
Cc: "linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mmc: fix compilation of user API
On Mon, 11 May 2020 at 18:19, Jerome Pouiller
<Jerome.Pouiller@...abs.com> wrote:
>
> From: Jérôme Pouiller <jerome.pouiller@...abs.com>
>
> 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@...abs.com>
Applied for next and by adding a stable tag, thanks!
Kind regards
Uffe
> ---
> include/uapi/linux/mmc/ioctl.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/uapi/linux/mmc/ioctl.h b/include/uapi/linux/mmc/ioctl.h
> index 00c08120f3ba..27a39847d55c 100644
> --- a/include/uapi/linux/mmc/ioctl.h
> +++ b/include/uapi/linux/mmc/ioctl.h
> @@ -3,6 +3,7 @@
> #define LINUX_MMC_IOCTL_H
>
> #include <linux/types.h>
> +#include <linux/major.h>
>
> struct mmc_ioc_cmd {
> /*
> --
> 2.26.2
>
Powered by blists - more mailing lists