Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild

* master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild:
kbuild: fix false section mismatch warnings

+9 -4
+9 -4
scripts/mod/modpost.c
··· 492 492 * These functions may often be marked __init and we do not want to 493 493 * warn here. 494 494 * the pattern is identified by: 495 - * tosec = .init.text | .exit.text 495 + * tosec = .init.text | .exit.text | .init.data 496 496 * fromsec = .data 497 - * atsym = *_driver, *_ops, *_probe, *probe_one 497 + * atsym = *_driver, *_template, *_sht, *_ops, *_probe, *probe_one 498 498 **/ 499 499 static int secref_whitelist(const char *tosec, const char *fromsec, 500 - const char *atsym) 500 + const char *atsym) 501 501 { 502 502 int f1 = 1, f2 = 1; 503 503 const char **s; 504 504 const char *pat2sym[] = { 505 505 "_driver", 506 + "_template", /* scsi uses *_template a lot */ 507 + "_sht", /* scsi also used *_sht to some extent */ 506 508 "_ops", 507 509 "_probe", 508 510 "_probe_one", ··· 524 522 525 523 /* Check for pattern 2 */ 526 524 if ((strcmp(tosec, ".init.text") != 0) && 527 - (strcmp(tosec, ".exit.text") != 0)) 525 + (strcmp(tosec, ".exit.text") != 0) && 526 + (strcmp(tosec, ".init.data") != 0)) 528 527 f2 = 0; 529 528 if (strcmp(fromsec, ".data") != 0) 530 529 f2 = 0; ··· 823 820 * For our future {in}sanity, add a comment that this is the ppc .opd 824 821 * section, not the ia64 .opd section. 825 822 * ia64 .opd should not point to discarded sections. 823 + * [.rodata] like for .init.text we ignore .rodata references -same reason 826 824 **/ 827 825 static int exit_section_ref_ok(const char *name) 828 826 { ··· 833 829 ".exit.text", 834 830 ".exit.data", 835 831 ".init.text", 832 + ".rodata", 836 833 ".opd", /* See comment [OPD] */ 837 834 ".toc1", /* used by ppc64 */ 838 835 ".altinstructions",