kbuild: whitelist references from variables named _timer to .init.text
arm uses a lot of ops structures named *_timer that has legitimite references to .init.text. So let's add this variable to the list of variables that may reference .init.text without causing any warning. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
92cc6b0725
commit
1e29a706ee
|
@ -609,7 +609,7 @@ static int strrcmp(const char *s, const char *sub)
|
||||||
* the pattern is identified by:
|
* the pattern is identified by:
|
||||||
* tosec = .init.text | .exit.text | .init.data
|
* tosec = .init.text | .exit.text | .init.data
|
||||||
* fromsec = .data
|
* fromsec = .data
|
||||||
* atsym = *driver, *_template, *_sht, *_ops, *_probe, *probe_one, *_console
|
* atsym = *driver, *_template, *_sht, *_ops, *_probe, *probe_one, *_console, *_timer
|
||||||
*
|
*
|
||||||
* Pattern 3:
|
* Pattern 3:
|
||||||
* Whitelist all refereces from .text.head to .init.data
|
* Whitelist all refereces from .text.head to .init.data
|
||||||
|
@ -634,6 +634,7 @@ static int secref_whitelist(const char *modname, const char *tosec,
|
||||||
const char *pat2sym[] = {
|
const char *pat2sym[] = {
|
||||||
"driver",
|
"driver",
|
||||||
"_template", /* scsi uses *_template a lot */
|
"_template", /* scsi uses *_template a lot */
|
||||||
|
"_timer", /* arm uses ops structures named _timer a lot */
|
||||||
"_sht", /* scsi also used *_sht to some extent */
|
"_sht", /* scsi also used *_sht to some extent */
|
||||||
"_ops",
|
"_ops",
|
||||||
"_probe",
|
"_probe",
|
||||||
|
|
Reference in New Issue