mbox series

[net-next,0/2] net/fungible: fix errors when CONFIG_TLS_DEVICE=n

Message ID 20220309034032.405212-1-dmichail@fungible.com (mailing list archive)
Headers show
Series net/fungible: fix errors when CONFIG_TLS_DEVICE=n | expand

Message

Dimitris Michailidis March 9, 2022, 3:40 a.m. UTC
This pair of patches fix compile errors in funeth when
CONFIG_TLS_DEVICE=n. The errors are due to symbols that are not defined
in this config but are used in code guarded by
"if (IS_ENABLED(CONFIG_TLS_DEVICE) ..."

One option is to place this code under preprocessor guards that will
keep the compiler from looking at the code. The option adopted here is
to define the offending symbols also when CONFIG_TLS_DEVICE=n.

The first patch does this for two functions in tls.h.
The second does the same for driver symbols and makes tls.h inclusion
unconditional.

Dimitris Michailidis (2):
  net/tls: Provide {__,}tls_driver_ctx() unconditionally
  net/fungible: fix errors when CONFIG_TLS_DEVICE=n

 drivers/net/ethernet/fungible/funeth/funeth_ktls.h | 7 +++----
 drivers/net/ethernet/fungible/funeth/funeth_tx.c   | 9 +++++----
 include/net/tls.h                                  | 2 --
 3 files changed, 8 insertions(+), 10 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org March 10, 2022, 4:20 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Tue,  8 Mar 2022 19:40:30 -0800 you wrote:
> This pair of patches fix compile errors in funeth when
> CONFIG_TLS_DEVICE=n. The errors are due to symbols that are not defined
> in this config but are used in code guarded by
> "if (IS_ENABLED(CONFIG_TLS_DEVICE) ..."
> 
> One option is to place this code under preprocessor guards that will
> keep the compiler from looking at the code. The option adopted here is
> to define the offending symbols also when CONFIG_TLS_DEVICE=n.
> 
> [...]

Here is the summary with links:
  - [net-next,1/2] net/tls: Provide {__,}tls_driver_ctx() unconditionally
    https://git.kernel.org/netdev/net-next/c/77f09e66f613
  - [net-next,2/2] net/fungible: fix errors when CONFIG_TLS_DEVICE=n
    https://git.kernel.org/netdev/net-next/c/b23f9239195a

You are awesome, thank you!