summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-09-19 11:38:31 +0000
committerMax Krummenacher <max.krummenacher@toradex.com>2019-09-19 13:46:09 +0200
commit5abb34056de22ab2dfcc05cbcd70c90405f8ea4b (patch)
tree65289bcb3a3ac4795e3098fee577437e3c98b2ff
parentd3f76b6ebb8cc19141224a946922958e1c45d25b (diff)
tegra: dc: events.c: fix error about unknown pragmaApalis-TK1_Console-Image_3.0b3.118-20191231
Fixes: '3f76b6ebb8c tegra: dc: events.c: fix error about packed' if GCC < 9.0.1 is used. | events.c:195:32: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas] | #pragma GCC diagnostic warning "-Waddress-of-packed-member" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--drivers/video/tegra/dc/ext/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/ext/events.c b/drivers/video/tegra/dc/ext/events.c
index fa325b03f2f7..e2d3c46519b5 100644
--- a/drivers/video/tegra/dc/ext/events.c
+++ b/drivers/video/tegra/dc/ext/events.c
@@ -192,6 +192,7 @@ int tegra_dc_ext_queue_hotplug(struct tegra_dc_ext_control *control, int output)
pack.hotplug.handle = output;
#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic warning "-Waddress-of-packed-member"
tegra_dc_ext_queue_event(control, &pack.event);
#pragma GCC diagnostic pop
@@ -226,6 +227,7 @@ int tegra_dc_ext_queue_bandwidth_renegotiate(
pack.bandwidth.handle = output;
#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic warning "-Waddress-of-packed-member"
tegra_dc_ext_queue_event(control, &pack.event);
#pragma GCC diagnostic pop