batman-adv: Move CRC16 dependency to BATMAN_ADV_BLA

Message ID 20181014151614.9494-1-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit adb5bec236cbce66cafcceec5707f512fe990ab1
Delegated to: Simon Wunderlich
Headers
Series batman-adv: Move CRC16 dependency to BATMAN_ADV_BLA |

Commit Message

Sven Eckelmann Oct. 14, 2018, 3:16 p.m. UTC
  The commit c5e7a06a2961 ("batman-adv: use CRC32C instead of CRC16 in TT
code") switched the translation table code from crc16 to crc32c. The
(optional) bridge loop avoidance code is the only user of this function.

batman-adv should only select CRC16 when it is actually using it.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 net/batman-adv/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig
index f75816f5..449ab2e5 100644
--- a/net/batman-adv/Kconfig
+++ b/net/batman-adv/Kconfig
@@ -22,7 +22,6 @@ 
 config BATMAN_ADV
 	tristate "B.A.T.M.A.N. Advanced Meshing Protocol"
 	depends on NET
-	select CRC16
 	select LIBCRC32C
 	help
           B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
@@ -48,6 +47,7 @@  config BATMAN_ADV_BATMAN_V
 config BATMAN_ADV_BLA
 	bool "Bridge Loop Avoidance"
 	depends on BATMAN_ADV && INET
+	select CRC16
 	default y
 	help
 	  This option enables BLA (Bridge Loop Avoidance), a mechanism