aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-06-02 18:47:53 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-07-16 17:24:55 -0400
commit92cc6b0725d800dcc3b9d62b419724050e4f7872 (patch)
tree5a0ee778fa759fda83e2d3bf5bfdbc9ae7340d5d /scripts
parentd3ab78560b9a244bdb2ba2ef0e53193832d311c2 (diff)
kbuild: remove hardcoded _logo names from modpost
Replaced this with a __init_refok marker in front of fb_find_logo(). I think that the __initdata marker for the logo's are wrong but I have not justified this so I did not remove it. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-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 1921c43f3a3e..015c6b0c8031 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