]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-fungible-fix-errors-when-config_tls_device-n'
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Mar 2022 04:01:20 +0000 (20:01 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Mar 2022 04:01:20 +0000 (20:01 -0800)
commitb6a4a1aea56933fcb91255c07f29485b5ea80c1f
tree2772d34dcd633587e2ff997adcd38d6670da29cd
parente5b91bd543e2f16498eb1dd5d9601438b9a520aa
parent9afffd906b715f4a7f65364266599a572a7063de
Merge branch 'net-fungible-fix-errors-when-config_tls_device-n'

Dimitris Michailidis says:

====================
net/fungible: fix errors when CONFIG_TLS_DEVICE=n

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.
====================

Link: https://lore.kernel.org/r/20220309034032.405212-1-dmichail@fungible.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>