Commit db991af
Jessica Yu
module: break nested ARCH_HAS_STRICT_MODULE_RWX and STRICT_MODULE_RWX #ifdefs
Various frob_* and module_{enable,disable}_* functions are defined in a
CONFIG_ARCH_HAS_STRICT_MODULE_RWX ifdef block which also has a nested
CONFIG_STRICT_MODULE_RWX ifdef block within it. This is unecessary and
makes things hard to read. Not only that, this construction requires
redundant empty stubs for module_enable_nx(). I suspect this was
originally done for cosmetic reasons - to keep all the frob_* functions
in the same place, and all the module_{enable,disable}_* functions right
after, but as a result it made the code harder to read.
Make this more readable by unnesting the ifdef blocks and getting rid of
the redundant empty stubs.
Signed-off-by: Jessica Yu <jeyu@kernel.org>1 parent 8f3d9f3 commit db991af
1 file changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1943 | 1943 | | |
1944 | 1944 | | |
1945 | 1945 | | |
1946 | | - | |
1947 | 1946 | | |
1948 | 1947 | | |
1949 | 1948 | | |
| |||
1957 | 1956 | | |
1958 | 1957 | | |
1959 | 1958 | | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
1960 | 1967 | | |
1961 | 1968 | | |
1962 | 1969 | | |
| |||
1966 | 1973 | | |
1967 | 1974 | | |
1968 | 1975 | | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
1969 | 1985 | | |
1970 | 1986 | | |
1971 | 1987 | | |
| |||
2037 | 2053 | | |
2038 | 2054 | | |
2039 | 2055 | | |
| 2056 | + | |
2040 | 2057 | | |
2041 | 2058 | | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | | - | |
2046 | | - | |
2047 | | - | |
2048 | | - | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
2052 | 2059 | | |
2053 | 2060 | | |
2054 | 2061 | | |
| |||
0 commit comments