]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: siena: Have a unique wrapper ifndef for efx channels header
authorSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 May 2022 06:58:20 +0000 (23:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 May 2022 03:07:58 +0000 (20:07 -0700)
commit5445aad34205c9c68fc6ad04b9112c8126e4ca2e
tree67cd6b52556e27b9caf5c6298217b70bbd57e5b1
parentb4390108898684a05871478627179dcb2fc2e3f2
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: c682aa7d2f97 ("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>
drivers/net/ethernet/sfc/siena/efx_channels.h