Skip to content

Commit

Permalink
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/…
Browse files Browse the repository at this point in the history
…mmarek/kbuild

Pull misc kbuild changes from Michal Marek:
 - make tags fixes again
 - scripts/show_delta fix for newer python
 - scripts/kernel-doc does not fail on unknown function prototype
 - one less coccinelle check this time

* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  scripts/tags.sh: remove obsolete __devinit[const|data]
  scripts/kernel-doc: make unknown function prototype a Warning instead of an Error
  show_delta: Update script to support python versions 2.5 through 3.3
  scripts/coccinelle/api: remove devm_request_and_ioremap.cocci
  scripts/tags.sh: Increase identifier list
  • Loading branch information
Linus Torvalds committed Nov 15, 2013
2 parents d72681d + 6cf3a6e commit e4528d6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 117 deletions.
105 changes: 0 additions & 105 deletions scripts/coccinelle/api/devm_request_and_ioremap.cocci

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -2128,8 +2128,7 @@ sub dump_function($$) {

create_parameterlist($args, ',', $file);
} else {
print STDERR "Error(${file}:$.): cannot understand prototype: '$prototype'\n";
++$errors;
print STDERR "Warning(${file}:$.): cannot understand function prototype: '$prototype'\n";
return;
}

Expand Down
12 changes: 6 additions & 6 deletions scripts/show_delta
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import sys
import string

def usage():
print """usage: show_delta [<options>] <filename>
print ("""usage: show_delta [<options>] <filename>
This program parses the output from a set of printk message lines which
have time data prefixed because the CONFIG_PRINTK_TIME option is set, or
Expand All @@ -35,7 +35,7 @@ ex: $ dmesg >timefile
will show times relative to the line in the kernel output
starting with "NET4".
"""
""")
sys.exit(1)

# returns a tuple containing the seconds and text for each message line
Expand Down Expand Up @@ -94,11 +94,11 @@ def main():
try:
lines = open(filein,"r").readlines()
except:
print "Problem opening file: %s" % filein
print ("Problem opening file: %s" % filein)
sys.exit(1)

if base_str:
print 'base= "%s"' % base_str
print ('base= "%s"' % base_str)
# assume a numeric base. If that fails, try searching
# for a matching line.
try:
Expand All @@ -117,13 +117,13 @@ def main():
# stop at first match
break
if not found:
print 'Couldn\'t find line matching base pattern "%s"' % base_str
print ('Couldn\'t find line matching base pattern "%s"' % base_str)
sys.exit(1)
else:
base_time = 0.0

for line in lines:
print convert_line(line, base_time),
print (convert_line(line, base_time),)

main()

9 changes: 5 additions & 4 deletions scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,16 @@ dogtags()
exuberant()
{
all_target_sources | xargs $1 -a \
-I __initdata,__exitdata,__initconst,__devinitdata \
-I __devinitconst,__cpuinitdata,__initdata_memblock \
-I __refdata,__attribute \
-I __initdata,__exitdata,__initconst, \
-I __cpuinitdata,__initdata_memblock \
-I __refdata,__attribute,__maybe_unused,__always_unused \
-I __acquires,__releases,__deprecated \
-I __read_mostly,__aligned,____cacheline_aligned \
-I ____cacheline_aligned_in_smp \
-I __cacheline_aligned,__cacheline_aligned_in_smp \
-I ____cacheline_internodealigned_in_smp \
-I __used,__packed,__packed2__,__must_check,__must_hold \
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL,ACPI_EXPORT_SYMBOL \
-I DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL \
-I static,const \
--extra=+f --c-kinds=+px \
Expand Down

0 comments on commit e4528d6

Please sign in to comment.