From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:43:58
Hello David,
This trivial series replace the open coding to check for a Kconfig symbol
being built-in or module, with IS_ENABLED() macro that does exactly that.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Best regards,
Javier
Javier Martinez Canillas (8):
appletalk: use IS_ENABLED() instead of checking for built-in or module
lec: use IS_ENABLED() instead of checking for built-in or module
net: use IS_ENABLED() instead of checking for built-in or module
ipv4: use IS_ENABLED() instead of checking for built-in or module
l2tp: use IS_ENABLED() instead of checking for built-in or module
net: sched: use IS_ENABLED() instead of checking for built-in or
module
sctp: use IS_ENABLED() instead of checking for built-in or module
xfrm: use IS_ENABLED() instead of checking for built-in or module
net/appletalk/ddp.c | 2 +-
net/atm/lec.c | 12 ++++++------
net/core/dev.c | 3 +--
net/ipv4/ip_output.c | 2 +-
net/l2tp/l2tp_core.h | 2 +-
net/l2tp/l2tp_eth.c | 4 ++--
net/l2tp/l2tp_ppp.c | 4 ++--
net/sched/cls_flow.c | 6 +++---
net/sctp/auth.c | 2 +-
net/xfrm/xfrm_algo.c | 2 +-
10 files changed, 19 insertions(+), 20 deletions(-)
--
2.7.4
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:06
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/appletalk/ddp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:13
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/atm/lec.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:20
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/core/dev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
@@ -3904,8 +3904,7 @@ static __latent_entropy void net_tx_action(struct softirq_action *h)}}-#if (defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE)) && \-(defined(CONFIG_ATM_LANE)||defined(CONFIG_ATM_LANE_MODULE))+#if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_ATM_LANE)/* This hook is defined here for ATM LANE */int(*br_fdb_test_addr_hook)(structnet_device*dev,unsignedchar*addr)__read_mostly;
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:33
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/ipv4/ip_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:43
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/l2tp/l2tp_core.h | 2 +-
net/l2tp/l2tp_eth.c | 4 ++--
net/l2tp/l2tp_ppp.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:47
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/sched/cls_flow.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:44:55
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/sctp/auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -48,7 +48,7 @@ static struct sctp_hmac sctp_hmac_list[SCTP_AUTH_NUM_HMACS] = {/* id 2 is reserved as well */.hmac_id=SCTP_AUTH_HMAC_ID_RESERVED_2,},-#if defined (CONFIG_CRYPTO_SHA256) || defined (CONFIG_CRYPTO_SHA256_MODULE)+#if IS_ENABLED(CONFIG_CRYPTO_SHA256){.hmac_id=SCTP_AUTH_HMAC_ID_SHA256,.hmac_name="hmac(sha256)",
From: Javier Martinez Canillas <hidden> Date: 2016-09-09 12:45:02
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/xfrm/xfrm_algo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Neil Horman <nhorman@tuxdriver.com> Date: 2016-09-09 16:43:26
On Fri, Sep 09, 2016 at 08:43:19AM -0400, Javier Martinez Canillas wrote:
quoted hunk
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <redacted>
---
net/sctp/auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -48,7 +48,7 @@ static struct sctp_hmac sctp_hmac_list[SCTP_AUTH_NUM_HMACS] = {/* id 2 is reserved as well */.hmac_id=SCTP_AUTH_HMAC_ID_RESERVED_2,},-#if defined (CONFIG_CRYPTO_SHA256) || defined (CONFIG_CRYPTO_SHA256_MODULE)+#if IS_ENABLED(CONFIG_CRYPTO_SHA256){.hmac_id=SCTP_AUTH_HMAC_ID_SHA256,.hmac_name="hmac(sha256)",
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
This trivial series replace the open coding to check for a Kconfig symbol
being built-in or module, with IS_ENABLED() macro that does exactly that.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.