[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxtD2VYW2R0JwjFkZkvzQzcN7qK3m6ReR+BBXtfyDHx7g@mail.gmail.com>
Date: Thu, 3 Sep 2015 11:22:10 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: David Miller <davem@...emloft.net>
Cc: Lorenzo Bianconi <lorenzo.bianconi83@...il.com>,
Johannes Berg <johannes.berg@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Network Development <netdev@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [GIT] Networking
On Thu, Sep 3, 2015 at 10:40 AM, David Miller <davem@...emloft.net> wrote:
>
> Linus, what GCC version are you using and what does the warning look
> like?
I'm on whatever is in F22. gcc -v says
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)
and the warning looks like so:
net/mac80211/rate.c: In function ‘rate_control_cap_mask’:
net/mac80211/rate.c:719:25: warning: ‘sizeof’ on array function
parameter ‘mcs_mask’ will return size of ‘u8 * {aka unsigned char *}’
[-Wsizeof-array-argument]
for (i = 0; i < sizeof(mcs_mask); i++)
^
(note the lack of warning about the use of an array in the function
definition parameter list - I tried to find if there's any way to
enable such a warning, but couldn't find anything. Maybe my google-fu
is weak, but more probably that just doesn't exist).
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists