[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a3GP005UEwET=CUSw3aNdbCVoscCm2g0kpJYeKTv7NhjQ@mail.gmail.com>
Date: Mon, 12 Oct 2020 10:05:41 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: Andrew Lunn <andrew@...n.ch>,
Nick Desaulniers <ndesaulniers@...gle.com>,
netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Rohit Maheshwari <rohitm@...lsio.com>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH net-next v2 1/2] Makefile.extrawarn: Add symbol for W=1
warnings for today
On Mon, Oct 12, 2020 at 3:00 AM Masahiro Yamada <masahiroy@...nel.org> wrote:
>
> BTW, if possible, please educate me about the difference
> between -Wmissing-declarations and -Wmissing-prototypes.
>
...
> Do we need to specify both in W=1 ?
> If yes, what is the difference between them?
I think they do the same thing in the kernel, as we already set
'-Wstrict-prototypes', which requires that there are no declarations
without having a prototype first. Adding either one should be sufficient.
Arnd
Powered by blists - more mailing lists