summaryrefslogtreecommitdiff
path: root/src/drivers/spi/spi_flash.c
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2019-10-04 02:48:26 +0300
committerPatrick Georgi <pgeorgi@google.com>2019-10-09 22:15:18 +0000
commit1c3dbdbbf6b15125529618f8aa97ff5e75630cd0 (patch)
treeccbfb6f1a5111f946c6b2db1acba13f4e0185def /src/drivers/spi/spi_flash.c
parentfa6024e15e2af42be515064c404cb50e3892e3d4 (diff)
downloadcoreboot-1c3dbdbbf6b15125529618f8aa97ff5e75630cd0.tar.xz
drivers/spi: ignore -Wvla on clang too
Change-Id: I99bc6877680b32f2bae78437ab0482baa65496d8 Signed-off-by: Greg V <greg@unrelenting.technology> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35865 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/drivers/spi/spi_flash.c')
-rw-r--r--src/drivers/spi/spi_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 5dbe1f4d8e..9dfecea6dc 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -100,8 +100,8 @@ int spi_flash_cmd(const struct spi_slave *spi, u8 cmd, void *response, size_t le
#pragma GCC diagnostic push
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic ignored "-Wstack-usage="
-#pragma GCC diagnostic ignored "-Wvla"
#endif
+#pragma GCC diagnostic ignored "-Wvla"
int spi_flash_cmd_write(const struct spi_slave *spi, const u8 *cmd,
size_t cmd_len, const void *data, size_t data_len)
{