forked from luck/tmp_suning_uos_patched
kbuild: ignore section mismatch warning for references from .paravirtprobe to .init.text
Added on request from: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
66bd32e443
commit
b4d5171ac7
@ -635,6 +635,13 @@ static int strrcmp(const char *s, const char *sub)
|
|||||||
* tosec = .init.data
|
* tosec = .init.data
|
||||||
* fromsec = .text*
|
* fromsec = .text*
|
||||||
* refsymname = logo_
|
* refsymname = logo_
|
||||||
|
*
|
||||||
|
* Pattern 8:
|
||||||
|
* Symbols contained in .paravirtprobe may safely reference .init.text.
|
||||||
|
* The pattern is:
|
||||||
|
* tosec = .init.text
|
||||||
|
* fromsec = .paravirtprobe
|
||||||
|
*
|
||||||
**/
|
**/
|
||||||
static int secref_whitelist(const char *modname, const char *tosec,
|
static int secref_whitelist(const char *modname, const char *tosec,
|
||||||
const char *fromsec, const char *atsym,
|
const char *fromsec, const char *atsym,
|
||||||
@ -712,6 +719,12 @@ static int secref_whitelist(const char *modname, const char *tosec,
|
|||||||
(strncmp(fromsec, ".text", strlen(".text")) == 0) &&
|
(strncmp(fromsec, ".text", strlen(".text")) == 0) &&
|
||||||
(strncmp(refsymname, "logo_", strlen("logo_")) == 0))
|
(strncmp(refsymname, "logo_", strlen("logo_")) == 0))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
/* Check for pattern 8 */
|
||||||
|
if ((strcmp(tosec, ".init.text") == 0) &&
|
||||||
|
(strcmp(fromsec, ".paravirtprobe") == 0))
|
||||||
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user