[PATCH] net: make in_aton() 32-bit internally

STALE3417d

2 messages, 2 authors, 2017-03-24 · open the first message on its own page

[PATCH] net: make in_aton() 32-bit internally

From: Alexey Dobriyan <hidden>
Date: 2017-03-23 21:58:34

Converting IPv4 address doesn't need 64-bit arithmetic.

Space savings: 10 bytes!

	add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10 (-10)
	function                          old     new   delta
	in_aton                            96      86     -10

Signed-off-by: Alexey Dobriyan <redacted>
---

 net/core/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(net_ratelimit);
 
 __be32 in_aton(const char *str)
 {
-	unsigned long l;
+	unsigned int l;
 	unsigned int val;
 	int i;
 

Re: [PATCH] net: make in_aton() 32-bit internally

From: David Miller <davem@davemloft.net>
Date: 2017-03-24 20:27:42

From: Alexey Dobriyan <redacted>
Date: Fri, 24 Mar 2017 00:58:26 +0300
Converting IPv4 address doesn't need 64-bit arithmetic.

Space savings: 10 bytes!

	add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10 (-10)
	function                          old     new   delta
	in_aton                            96      86     -10

Signed-off-by: Alexey Dobriyan <redacted>
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help