From: Colin Ian King Date: Thu, 29 Jun 2017 18:12:19 +0000 (+0100) Subject: mmc: rtsx_usb_sdmmc: make array 'width' static const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b388dc3c9a4a418235c789bf69b6d38ac1e5c6fd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: rtsx_usb_sdmmc: make array 'width' static const array width is on-stack and not modified and should be made static const. Signed-off-by: Colin Ian King Signed-off-by: Ulf Hansson --- 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,