Return-Path: Received: from oproxy12-pub.bluehost.com ([50.87.16.10]:35779 "HELO oproxy12-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755488Ab2HPXYv (ORCPT ); Thu, 16 Aug 2012 19:24:51 -0400 Message-ID: <502D80E8.3080008@xenotime.net> Date: Thu, 16 Aug 2012 16:23:20 -0700 From: Randy Dunlap MIME-Version: 1.0 Subject: [PATCH] scripts/kernel-doc: fix fatal script error References: In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Linus Torvalds , LKML Cc: linux-kbuild@vger.kernel.org, Michal Marek From: Randy Dunlap Fix fatal error in scripts/kernel-doc by ignoring the "__weak" attribute: Error(drivers/pci/pci.c:2820): cannot understand prototype: 'char * __weak pcibios_setup(char *str) ' Signed-off-by: Randy Dunlap --- scripts/kernel-doc | 1 + 1 file changed, 1 insertion(+) --- lnx-36-rc2.orig/scripts/kernel-doc +++ lnx-36-rc2/scripts/kernel-doc @@ -1786,6 +1786,7 @@ sub dump_function($$) { $prototype =~ s/__init +//; $prototype =~ s/__init_or_module +//; $prototype =~ s/__must_check +//; + $prototype =~ s/__weak +//; $prototype =~ s/^#\s*define\s+//; #ak added $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;