Commit 7b87324
committed
random: use IS_ENABLED(CONFIG_NUMA) instead of ifdefs
Rather than an awkward combination of ifdefs and __maybe_unused, we can
ensure more source gets parsed, regardless of the configuration, by
using IS_ENABLED for the CONFIG_NUMA conditional code. This makes things
cleaner and easier to follow.
I've confirmed that on !CONFIG_NUMA, we don't wind up with excess code
by accident; the generated object file is the same.
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>1 parent 161212c commit 7b87324
1 file changed
Lines changed: 11 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | 762 | | |
764 | 763 | | |
765 | 764 | | |
766 | 765 | | |
767 | 766 | | |
768 | 767 | | |
769 | 768 | | |
770 | | - | |
771 | 769 | | |
772 | 770 | | |
773 | 771 | | |
| |||
815 | 813 | | |
816 | 814 | | |
817 | 815 | | |
818 | | - | |
| 816 | + | |
819 | 817 | | |
820 | 818 | | |
821 | 819 | | |
| |||
866 | 864 | | |
867 | 865 | | |
868 | 866 | | |
869 | | - | |
870 | 867 | | |
871 | 868 | | |
872 | 869 | | |
| |||
893 | 890 | | |
894 | 891 | | |
895 | 892 | | |
896 | | - | |
| 893 | + | |
| 894 | + | |
897 | 895 | | |
898 | 896 | | |
899 | 897 | | |
900 | 898 | | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
908 | 902 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
913 | 908 | | |
914 | | - | |
915 | | - | |
916 | 909 | | |
917 | 910 | | |
918 | | - | |
919 | 911 | | |
920 | 912 | | |
921 | 913 | | |
| |||
0 commit comments