Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

modpost: remove more symbol patterns from the section check whitelist

These symbol patterns were whitelisted to allow them to reference to
functions with the old __devinit and __devexit annotations.

We stopped doing this a long time ago, for example, commit 6f039790510f
("Drivers: scsi: remove __dev* attributes.") remove those annotations
from the scsi drivers.

Keep *_ops, *_probe, and *_console, otherwise they will really cause
section mismatch warnings.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -7
+1 -7
scripts/mod/modpost.c
··· 997 997 /* symbols in data sections that may refer to any init/exit sections */ 998 998 if (match(fromsec, PATTERNS(DATA_SECTIONS)) && 999 999 match(tosec, PATTERNS(ALL_INIT_SECTIONS, ALL_EXIT_SECTIONS)) && 1000 - match(fromsym, PATTERNS("*_template", // scsi uses *_template a lot 1001 - "*_timer", // arm uses ops structures named _timer a lot 1002 - "*_sht", // scsi also used *_sht to some extent 1003 - "*_ops", 1004 - "*_probe", 1005 - "*_probe_one", 1006 - "*_console"))) 1000 + match(fromsym, PATTERNS("*_ops", "*_probe", "*_console"))) 1007 1001 return 0; 1008 1002 1009 1003 /*