[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFoMJXR_xp_V8KpuoT+8eGjW=4LXfudCuR67PZGbGeOWWA@mail.gmail.com>
Date: Tue, 11 Jul 2017 16:43:50 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Colin King <colin.king@...onical.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mmc: rtsx_usb_sdmmc: make array 'width' static const
On 29 June 2017 at 20:12, Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> array width is on-stack and not modified and should be
> made static const.
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Thanks, applied for next!
Kind regards
Uffe
> ---
> drivers/mmc/host/rtsx_usb_sdmmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c
> index 12d2fbe9c520..76da1687ab37 100644
> --- a/drivers/mmc/host/rtsx_usb_sdmmc.c
> +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c
> @@ -909,7 +909,7 @@ static int sd_set_bus_width(struct rtsx_usb_sdmmc *host,
> unsigned char bus_width)
> {
> int err = 0;
> - u8 width[] = {
> + static const u8 width[] = {
> [MMC_BUS_WIDTH_1] = SD_BUS_WIDTH_1BIT,
> [MMC_BUS_WIDTH_4] = SD_BUS_WIDTH_4BIT,
> [MMC_BUS_WIDTH_8] = SD_BUS_WIDTH_8BIT,
> --
> 2.11.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists