]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: add inet_fill_args
authorChristian Brauner <christian@brauner.io>
Tue, 4 Sep 2018 19:53:54 +0000 (21:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 05:27:11 +0000 (22:27 -0700)
commit4ef21d868b3754c3e9d953a28a222db0142b59a6
tree16e4db6d669d6bf5772d03e1f33b08c97b22a20d
parent8976c3ed66eb5c1b3805a0879fd16532d9136b1d
ipv4: add inet_fill_args

inet_fill_ifaddr() already took 6 arguments which meant the 7th argument
would need to be pushed onto the stack on x86.
Add a new struct inet_fill_args which holds common information passed
to inet_fill_ifaddr() and shortens the function to three pointer arguments.

Signed-off-by: Christian Brauner <christian@brauner.io>
Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c