Both sfc/efx_channels.h and sfc/siena/efx_channels.h used the same
wrapper #ifndef EFX_CHANNELS_H, this patch changes the siena define to be
EFX_SIENA_CHANNELS_H to avoid build system confusion.
This fixes the following build break:
drivers/net/ethernet/sfc/ptp.c:2191:28:
error: ‘efx_copy_channel’ undeclared here (not in a function); did you mean ‘efx_ptp_channel’?
2191 | .copy = efx_copy_channel,
Fixes: 6e173d3b4a
("sfc: Copy shared files needed for Siena (part 1)")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Cc: Edward Cree <ecree.xilinx@gmail.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://lore.kernel.org/r/20220518065820.131611-1-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
45 lines
1.8 KiB
C
45 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/****************************************************************************
|
|
* Driver for Solarflare network controllers and boards
|
|
* Copyright 2018 Solarflare Communications Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation, incorporated herein by reference.
|
|
*/
|
|
|
|
#ifndef EFX_SIENA_CHANNELS_H
|
|
#define EFX_SIENA_CHANNELS_H
|
|
|
|
extern unsigned int efx_siena_interrupt_mode;
|
|
extern unsigned int efx_siena_rss_cpus;
|
|
|
|
int efx_siena_probe_interrupts(struct efx_nic *efx);
|
|
void efx_siena_remove_interrupts(struct efx_nic *efx);
|
|
int efx_siena_enable_interrupts(struct efx_nic *efx);
|
|
void efx_siena_disable_interrupts(struct efx_nic *efx);
|
|
|
|
void efx_siena_set_interrupt_affinity(struct efx_nic *efx);
|
|
void efx_siena_clear_interrupt_affinity(struct efx_nic *efx);
|
|
|
|
void efx_siena_start_eventq(struct efx_channel *channel);
|
|
void efx_siena_stop_eventq(struct efx_channel *channel);
|
|
|
|
int efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries,
|
|
u32 txq_entries);
|
|
void efx_siena_set_channel_names(struct efx_nic *efx);
|
|
int efx_siena_init_channels(struct efx_nic *efx);
|
|
int efx_siena_probe_channels(struct efx_nic *efx);
|
|
int efx_siena_set_channels(struct efx_nic *efx);
|
|
void efx_siena_remove_channel(struct efx_channel *channel);
|
|
void efx_siena_remove_channels(struct efx_nic *efx);
|
|
void efx_siena_fini_channels(struct efx_nic *efx);
|
|
void efx_siena_start_channels(struct efx_nic *efx);
|
|
void efx_siena_stop_channels(struct efx_nic *efx);
|
|
|
|
void efx_siena_init_napi(struct efx_nic *efx);
|
|
void efx_siena_fini_napi(struct efx_nic *efx);
|
|
|
|
void efx_siena_channel_dummy_op_void(struct efx_channel *channel);
|
|
|
|
#endif
|