Commit 9c699a8
net: enetc: Replace ifdef with IS_ENABLED
The enetc driver uses ifdefs when checking whether
CONFIG_FSL_ENETC_PTP_CLOCK is enabled in a number of places. This works
if the driver is built-in but fails if the driver is available as a
kernel module. Replace the instances of ifdef with use of the IS_ENABLED
macro, that will evaluate as true when this feature is built as a kernel
module and follows the kernel's coding style.
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240912173742.484549-1-martyn.welch@collabora.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 9297886 commit 9c699a8
3 files changed
Lines changed: 20 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
981 | 980 | | |
982 | 981 | | |
983 | 982 | | |
| |||
1001 | 1000 | | |
1002 | 1001 | | |
1003 | 1002 | | |
1004 | | - | |
1005 | 1003 | | |
1006 | 1004 | | |
1007 | 1005 | | |
| |||
1041 | 1039 | | |
1042 | 1040 | | |
1043 | 1041 | | |
1044 | | - | |
1045 | | - | |
| 1042 | + | |
| 1043 | + | |
1046 | 1044 | | |
1047 | | - | |
1048 | 1045 | | |
1049 | 1046 | | |
1050 | 1047 | | |
| |||
2881 | 2878 | | |
2882 | 2879 | | |
2883 | 2880 | | |
2884 | | - | |
2885 | 2881 | | |
2886 | 2882 | | |
2887 | 2883 | | |
| |||
2950 | 2946 | | |
2951 | 2947 | | |
2952 | 2948 | | |
2953 | | - | |
2954 | 2949 | | |
2955 | 2950 | | |
2956 | 2951 | | |
2957 | 2952 | | |
2958 | | - | |
2959 | | - | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
2963 | | - | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
2964 | 2960 | | |
2965 | 2961 | | |
2966 | 2962 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
189 | 188 | | |
190 | | - | |
| 189 | + | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
| |||
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
202 | | - | |
203 | | - | |
| 201 | + | |
204 | 202 | | |
205 | | - | |
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
855 | 860 | | |
856 | 861 | | |
857 | 862 | | |
| |||
860 | 865 | | |
861 | 866 | | |
862 | 867 | | |
| 868 | + | |
863 | 869 | | |
864 | 870 | | |
865 | | - | |
866 | | - | |
867 | | - | |
| 871 | + | |
868 | 872 | | |
869 | 873 | | |
870 | 874 | | |
| |||
0 commit comments