Commit 73db3ab
init/modpost: conditionally check section mismatch to __meminit*
This reverts commit eb8f689 ("Use separate sections for __dev/
_cpu/__mem code/data").
Check section mismatch to __meminit* only when CONFIG_MEMORY_HOTPLUG=n.
With this change, the linker script and modpost become simpler, and we
can get rid of the __ref annotations from the memory hotplug code.
[[email protected]: remove MEM_KEEP from arch/powerpc/kernel/vmlinux.lds.S]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Reviewed-by: Wei Yang <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 7a7127a commit 73db3ab
File tree
4 files changed
+15
-38
lines changed- arch/powerpc/kernel
- include
- asm-generic
- linux
- scripts/mod
4 files changed
+15
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 144 | | |
153 | 145 | | |
154 | 146 | | |
| |||
357 | 349 | | |
358 | 350 | | |
359 | 351 | | |
360 | | - | |
361 | 352 | | |
362 | 353 | | |
363 | 354 | | |
| |||
542 | 533 | | |
543 | 534 | | |
544 | 535 | | |
545 | | - | |
546 | 536 | | |
547 | 537 | | |
548 | 538 | | |
| |||
593 | 583 | | |
594 | 584 | | |
595 | 585 | | |
596 | | - | |
597 | | - | |
| 586 | + | |
598 | 587 | | |
599 | 588 | | |
600 | 589 | | |
| |||
701 | 690 | | |
702 | 691 | | |
703 | 692 | | |
704 | | - | |
705 | 693 | | |
706 | 694 | | |
707 | 695 | | |
708 | 696 | | |
709 | 697 | | |
710 | 698 | | |
711 | 699 | | |
712 | | - | |
713 | 700 | | |
714 | 701 | | |
715 | 702 | | |
| |||
727 | 714 | | |
728 | 715 | | |
729 | 716 | | |
730 | | - | |
731 | | - | |
| 717 | + | |
732 | 718 | | |
733 | 719 | | |
734 | 720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
780 | | - | |
| 779 | + | |
781 | 780 | | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
785 | 784 | | |
786 | 785 | | |
787 | | - | |
788 | | - | |
789 | | - | |
| 786 | + | |
790 | 787 | | |
791 | 788 | | |
792 | 789 | | |
| |||
797 | 794 | | |
798 | 795 | | |
799 | 796 | | |
800 | | - | |
801 | | - | |
802 | | - | |
| 797 | + | |
803 | 798 | | |
804 | 799 | | |
805 | 800 | | |
| |||
839 | 834 | | |
840 | 835 | | |
841 | 836 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | 837 | | |
849 | 838 | | |
850 | 839 | | |
| |||
859 | 848 | | |
860 | 849 | | |
861 | 850 | | |
862 | | - | |
| 851 | + | |
863 | 852 | | |
864 | 853 | | |
865 | 854 | | |
| |||
0 commit comments