From: Randy Dunlap Date: Thu, 16 Aug 2012 23:23:20 +0000 (-0700) Subject: scripts/kernel-doc: fix fatal script error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0df7c0e3a73f5d12bca24d81ee5ed52947b372b6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git scripts/kernel-doc: fix fatal script error 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 Signed-off-by: Linus Torvalds --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 9b0c0b8b4ab4..8fd107a3fac4 100755 --- a/scripts/kernel-doc +++ b/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,]*\)\)//;