SCTP_HMAC_NONE config variable is unused
that config variable is defined but unreferenced anywhere in the
tree.
rday
--
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
====================================
Quoted 4 lines · Robert P. J. Day
that config variable is defined but unreferenced anywhere in the
tree.rday
Yep. It could probably be use used here:
include/net/sctp/constants.h:
#if defined (CONFIG_SCTP_HMAC_MD5)
#define SCTP_COOKIE_HMAC_ALG "hmac(md5)"
#elif defined (CONFIG_SCTP_HMAC_SHA1)
#define SCTP_COOKIE_HMAC_ALG "hmac(sha1)"
#else
#define SCTP_COOKIE_HMAC_ALG NULL
#endif
the final '#else' can be:
#elif defined (CONFIG_SCTP_HMAC_NONE)
An alternative would be to change the 'choice' in Kconfig to something else that allows us to have a 'none' selection.
Is this really a problem?
-vlad
Quoted 21 lines · Vlad Yasevich
Quoted 4 lines · Robert P. J. Day
that config variable is defined but unreferenced anywhere in the
tree.rday
Yep. It could probably be use used here:
include/net/sctp/constants.h:#if defined (
CONFIG_SCTP_HMAC_MD5)
#defineSCTP_COOKIE_HMAC_ALG"hmac(md5)"
#elif defined (CONFIG_SCTP_HMAC_SHA1)
#defineSCTP_COOKIE_HMAC_ALG"hmac(sha1)"
#else
#defineSCTP_COOKIE_HMAC_ALGNULL
#endifthe final '#else' can be:
Quoted 7 lines
#elif defined (
CONFIG_SCTP_HMAC_NONE)An alternative would be to change the 'choice' in
Kconfigto something else that allows us to have a 'none' selection.Is this really a problem?
no, sorry, i just didn't look closely enough to note that it was a default selection. just ignore that last noise.
rday
--
====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
====================================