lkml.org 
[lkml]   [2013]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/3] drivers: edac: Mark the function amd64_decode_bus_error() as static in amd64_edac.c
From
On Sat, Dec 14, 2013 at 10:31 PM, Borislav Petkov <bp@alien8.de> wrote:
> On Sat, Dec 14, 2013 at 07:28:24PM +0530, Rashika Kheria wrote:
>> This patch marks the function amd64_decode_bus_error() as static in
>> amd64_edac.c because it is not used outside this file.
>>
>> Thus, it also eliminates the following warning in amd64_edac.c:
>> drivers/edac/amd64_edac.c:2038:6: warning: no previous prototype for ‘amd64_decode_bus_error’ [-Wmissing-prototypes]
>
> How do you trigger this? .config and output of
>
> gcc --version
>
> please.
>
> I've never seen this warning before.
>
> --
> Regards/Gruss,
> Boris.
>

Hi Borislav,

My gcc version is 4.6.3. You can trigger these warnings by adding
-Wmissing-prototypes to KBUILD_CFLAGS in the top-level Makefile, and
do a build with defconfig or allyesconfig. It will show all warnings
of missing prototype.

Thanks ,
--
Rashika Kheria
B.Tech CSE
IIIT Hyderabad
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-12-14 19:41    [W:0.085 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site