Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61843
b: refs/heads/master
c: a5eb6a5
h: refs/heads/master
i:
  61841: 9a852dc
  61839: 86fd1ce
v: v3
  • Loading branch information
Jan Beulich authored and Sam Ravnborg committed Jul 17, 2007
1 parent 057a383 commit 3e49bc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 741f98fe298a73c9d47ed53703c1279a29718581
refs/heads/master: a5eb6a502b71ee6bf1a9768b12ff4545cb7a50fe
6 changes: 4 additions & 2 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ static int strrcmp(const char *s, const char *sub)
* warn here.
* the pattern is identified by:
* tosec = .init.text | .exit.text | .init.data
* fromsec = .data
* fromsec = .data | .data.rel | .data.rel.*
* atsym = *driver, *_template, *_sht, *_ops, *_probe, *probe_one, *_console, *_timer
*
* Pattern 3:
Expand Down Expand Up @@ -672,7 +672,9 @@ static int secref_whitelist(const char *modname, const char *tosec,
(strcmp(tosec, ".exit.text") != 0) &&
(strcmp(tosec, ".init.data") != 0))
f2 = 0;
if (strcmp(fromsec, ".data") != 0)
if ((strcmp(fromsec, ".data") != 0) &&
(strcmp(fromsec, ".data.rel") != 0) &&
(strncmp(fromsec, ".data.rel.", strlen(".data.rel.")) != 0))
f2 = 0;

for (s = pat2sym; *s; s++)
Expand Down

0 comments on commit 3e49bc3

Please sign in to comment.