Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1557803

Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning

From Or Gerlitz <gerlitz.or@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning
Date 2017-01-12 22:00 +0100
Message-ID <sYUDw-7S-13@gated-at.bofh.it> (permalink)
References <sYytk-3x3-33@gated-at.bofh.it> <sYQ6S-63x-19@gated-at.bofh.it> <sYQ6S-63x-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jan 12, 2017 at 6:04 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Thursday, January 12, 2017 5:21:49 PM CET Or Gerlitz wrote:


>> When I build here without CONFIG_INET in my system, the build goes fine
>> with this approach. However, we're pretty sure that in the past we got
>> 0-day report from the kbuild test robot where he was unhappy that we
>> make the ip_route_output_key call without being wrapped with that #if
>> IS_ENABLED(CONFIG_INET) -- so, we don't want to go there again... thoughts?

> I went back and forth between the two versions, either leaving the #if
> in place, or using the if(IS_ENABLED()) check to be really sure that
> we can't get compile error here.

> I did check that ip_route_output_key() is always declared, but now
> I see that net/route.h might not always be included from en_tc.c
> if CONFIG_INET is disabled (I don't see how it gets included, but
> it obviously is when CONFIG_INET is turned on).

> Adding an explicit include of that file should probably avoid the
> case you ran into earlier, but for I agree it's safer to not rely
> on that here for a bugfix, and just leave the #ifdef. Do you want to
> modify it yourself, or should I spin a new version with that?

I can do that next week, thanks

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning Arnd Bergmann <arnd@arndb.de> - 2017-01-11 22:20 +0100
  Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning Arnd Bergmann <arnd@arndb.de> - 2017-01-12 11:20 +0100
  Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning Arnd Bergmann <arnd@arndb.de> - 2017-01-12 17:10 +0100
    Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning Or Gerlitz <gerlitz.or@gmail.com> - 2017-01-12 22:00 +0100

csiph-web