]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: fix *_DIAG_MAX constants
authorAndrey Vagin <avagin@openvz.org>
Thu, 21 Mar 2013 16:33:46 +0000 (20:33 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:18 +0000 (09:26 -0700)
commite32a0e3e1cf3bde1c1b961c8792395e1e27ec453
treea709c909d56b50d5840bceb48eaa15726ae40496
parent28611814bd7dc326d9b4ae31004e5f2231649ff8
net: fix *_DIAG_MAX constants

[ Upstream commit ae5fc98728c8bbbd6d7cab0b9781671fc4419c1b ]

Follow the common pattern and define *_DIAG_MAX like:

        [...]
        __XXX_DIAG_MAX,
};

Because everyone is used to do:

        struct nlattr *attrs[XXX_DIAG_MAX+1];

        nla_parse([...], XXX_DIAG_MAX, [...]

Reported-by: Thomas Graf <tgraf@suug.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/packet_diag.h
include/uapi/linux/unix_diag.h