From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932617AbbICSWN (ORCPT ); Thu, 3 Sep 2015 14:22:13 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:33789 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932473AbbICSWM convert rfc822-to-8bit (ORCPT ); Thu, 3 Sep 2015 14:22:12 -0400 MIME-Version: 1.0 In-Reply-To: <20150903.104032.767889134756094076.davem@davemloft.net> References: <20150902.223522.1792493140210966693.davem@davemloft.net> <20150903.104032.767889134756094076.davem@davemloft.net> Date: Thu, 3 Sep 2015 11:22:10 -0700 X-Google-Sender-Auth: G5hGSUV1aI5gOufNhm-3ACvoHqc Message-ID: Subject: Re: [GIT] Networking From: Linus Torvalds To: David Miller Cc: Lorenzo Bianconi , Johannes Berg , Andrew Morton , Network Development , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 3, 2015 at 10:40 AM, David Miller 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