blob: 9c6276beb7d486f4e3407d97aa64af34487cad9e [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 9b8f1df41f7579da63c27763ff184d351e4c7fef Mon Sep 17 00:00:00 2001
2From: Simon Dawson <spdawson@gmail.com>
3Date: Sun, 4 Jan 2015 12:06:18 +0100
4Subject: [PATCH] Fix compiler warning flags
5
6 When building for bfin, the build fails as follows.
7
8 cc1: error: unrecognized command line option "-Wno-packed-bitfield-compat"
9
10An example of an autobuild failure arising from this is the following.
11
12 http://autobuild.buildroot.net/results/92e/92e472004812a3616f62d766a9ea07a997a66e89/
13 http://autobuild.buildroot.net/results/6e7/6e7b48ad9768349d983985c3067c4267cde80541/
14
15Clearly, not all toolchains provide a gcc that understands
16the -Wno-packed-bitfield-compat flag; remove usage of this flag.
17
18Wno-packed-bitfield-compat option was added in gcc 4.4.
19
20[Romain:
21 - This patch is also needed for bfin toolchains which use gcc 4.3.5
22 - Add a link to bfin build failure]
23Signed-off-by: Simon Dawson <spdawson@gmail.com>
24Signed-off-by: Romain Naour <romain.naour@openwide.fr>
25---
26 util/scan/Makefile | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/util/scan/Makefile b/util/scan/Makefile
30index d48c478..88667c5 100644
31--- a/util/scan/Makefile
32+++ b/util/scan/Makefile
33@@ -14,7 +14,7 @@ inst_bin = $(binaries)
34
35 removing = atsc_psip_section.c atsc_psip_section.h
36
37-CPPFLAGS += -Wno-packed-bitfield-compat -D__KERNEL_STRICT_NAMES
38+CPPFLAGS += -D__KERNEL_STRICT_NAMES
39
40 .PHONY: all
41
42--
431.9.3
44