aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 1921c43f3a3..015c6b0c803 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -624,14 +624,6 @@ static int strrcmp(const char *s, const char *sub)
624 * This pattern is identified by 624 * This pattern is identified by
625 * refsymname = __init_begin, _sinittext, _einittext 625 * refsymname = __init_begin, _sinittext, _einittext
626 * 626 *
627 * Pattern 5:
628 * Logos used in drivers/video/logo reside in __initdata but the
629 * funtion that references them are EXPORT_SYMBOL() so cannot be
630 * marker __init. So we whitelist them here.
631 * The pattern is:
632 * tosec = .init.data
633 * fromsec = .text*
634 * refsymname = logo_
635 **/ 627 **/
636static int secref_whitelist(const char *modname, const char *tosec, 628static int secref_whitelist(const char *modname, const char *tosec,
637 const char *fromsec, const char *atsym, 629 const char *fromsec, const char *atsym,
@@ -698,12 +690,6 @@ static int secref_whitelist(const char *modname, const char *tosec,
698 if (strcmp(refsymname, *s) == 0) 690 if (strcmp(refsymname, *s) == 0)
699 return 1; 691 return 1;
700 692
701 /* Check for pattern 5 */
702 if ((strcmp(tosec, ".init.data") == 0) &&
703 (strncmp(fromsec, ".text", strlen(".text")) == 0) &&
704 (strncmp(refsymname, "logo_", strlen("logo_")) == 0))
705 return 1;
706
707 return 0; 693 return 0;
708} 694}
709 695