diff options
author | 2024-08-22 18:38:59 +0200 | |
---|---|---|
committer | 2024-08-30 22:40:23 +0200 | |
commit | a9c0fb33fd454fda5283281e47d556c81ee9fa47 (patch) | |
tree | 0b39e8d3298d96e72faf53d632b6a8bddf151813 /drivers/net/netkit.c | |
parent | can: netlink: avoid call to do_set_data_bittiming callback with stale can_priv::ctrlmode (diff) | |
download | wireguard-linux-a9c0fb33fd454fda5283281e47d556c81ee9fa47.tar.xz wireguard-linux-a9c0fb33fd454fda5283281e47d556c81ee9fa47.zip |
can: kvaser_pciefd: Use IS_ENABLED() instead of #ifdef
Use the IS_ENABLED() macro to check kernel config defines instead of
ifdef. Use upper_32_bits() to avoid warnings about "right shift count
>= width of type" on systems with CONFIG_ARCH_DMA_ADDR_T_64BIT not
set. In kvaser_pciefd_write_dma_map_altera() use lower_32_bits() for
symmetry.
Signed-off-by: Martin Jocic <martin.jocic@kvaser.com>
Link: https://patch.msgid.link/20240830141038.1402217-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions