linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: use -Werror=implicit-... instead of -Werror-implicit-...
@ 2019-03-04 12:55 Luc Van Oostenryck
  2019-03-06 16:01 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Luc Van Oostenryck @ 2019-03-04 12:55 UTC (permalink / raw)
  To: linux-kbuild; +Cc: Masahiro Yamada, linux-kernel, Luc Van Oostenryck

The flag '-Werror-implicit-function-declaration', present in GCC 2.95,
stopped to be documented in GCC 4.3, replaced by the more generic
'-Werror=...' form.

So, use the equivalent '-Werror=implicit-function-declaration' instead.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d5713e7b1e50..253e5ede92e7 100644
--- a/Makefile
+++ b/Makefile
@@ -429,7 +429,7 @@ LINUXINCLUDE    := \
 KBUILD_AFLAGS   := -D__ASSEMBLY__ -fno-PIE
 KBUILD_CFLAGS   := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
 		   -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
-		   -Werror-implicit-function-declaration -Werror=implicit-int \
+		   -Werror=implicit-function-declaration -Werror=implicit-int \
 		   -Wno-format-security \
 		   -std=gnu89
 KBUILD_CPPFLAGS := -D__KERNEL__
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: use -Werror=implicit-... instead of -Werror-implicit-...
  2019-03-04 12:55 [PATCH] kbuild: use -Werror=implicit-... instead of -Werror-implicit- Luc Van Oostenryck
@ 2019-03-06 16:01 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2019-03-06 16:01 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: Linux Kbuild mailing list, Linux Kernel Mailing List

On Mon, Mar 4, 2019 at 9:55 PM Luc Van Oostenryck
<luc.vanoostenryck@gmail.com> wrote:
>
> The flag '-Werror-implicit-function-declaration', present in GCC 2.95,
> stopped to be documented in GCC 4.3, replaced by the more generic
> '-Werror=...' form.
>
> So, use the equivalent '-Werror=implicit-function-declaration' instead.
>
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
> ---

Applied to linux-kbuild.
Thanks.



>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index d5713e7b1e50..253e5ede92e7 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -429,7 +429,7 @@ LINUXINCLUDE    := \
>  KBUILD_AFLAGS   := -D__ASSEMBLY__ -fno-PIE
>  KBUILD_CFLAGS   := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
>                    -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
> -                  -Werror-implicit-function-declaration -Werror=implicit-int \
> +                  -Werror=implicit-function-declaration -Werror=implicit-int \
>                    -Wno-format-security \
>                    -std=gnu89
>  KBUILD_CPPFLAGS := -D__KERNEL__
> --
> 2.21.0
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-06 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 12:55 [PATCH] kbuild: use -Werror=implicit-... instead of -Werror-implicit- Luc Van Oostenryck
2019-03-06 16:01 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).