Commit 309ec443 authored by Saeed Mahameed's avatar Saeed Mahameed Committed by Jakub Kicinski

sfc: siena: Have a unique wrapper ifndef for efx channels header

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: 6e173d3b ("sfc: Copy shared files needed for Siena (part 1)")
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Cc: Edward Cree <ecree.xilinx@gmail.com>
Acked-by: default avatarMartin Habets <habetsm.xilinx@gmail.com>
Link: https://lore.kernel.org/r/20220518065820.131611-1-saeed@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b465131b
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
* by the Free Software Foundation, incorporated herein by reference. * by the Free Software Foundation, incorporated herein by reference.
*/ */
#ifndef EFX_CHANNELS_H #ifndef EFX_SIENA_CHANNELS_H
#define EFX_CHANNELS_H #define EFX_SIENA_CHANNELS_H
extern unsigned int efx_siena_interrupt_mode; extern unsigned int efx_siena_interrupt_mode;
extern unsigned int efx_siena_rss_cpus; extern unsigned int efx_siena_rss_cpus;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment