Skip to content

Commit

Permalink
kbuild: .paravirtprobe section is obsolete, so modpost doesn't need t…
Browse files Browse the repository at this point in the history
…o handle it

The .paravirtprobe section is obsolete, so modpost doesn't need to handle it.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Jeremy Fitzhardinge authored and Sam Ravnborg committed Jul 16, 2007
1 parent 1abe02f commit 1de564b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,6 @@ static int strrcmp(const char *s, const char *sub)
* fromsec = .text*
* refsymname = logo_
*
* Pattern 8:
* Symbols contained in .paravirtprobe may safely reference .init.text.
* The pattern is:
* tosec = .init.text
* fromsec = .paravirtprobe
*
* Pattern 10:
* ia64 has machvec table for each platform and
* powerpc has a machine desc table for each platform.
Expand Down Expand Up @@ -726,11 +720,6 @@ static int secref_whitelist(const char *modname, const char *tosec,
(strncmp(refsymname, "logo_", strlen("logo_")) == 0))
return 1;

/* Check for pattern 8 */
if ((strcmp(tosec, ".init.text") == 0) &&
(strcmp(fromsec, ".paravirtprobe") == 0))
return 1;

/* Check for pattern 10 */
if ((strcmp(fromsec, ".machvec") == 0) ||
(strcmp(fromsec, ".machine.desc") == 0))
Expand Down

0 comments on commit 1de564b

Please sign in to comment.