On 03/21/13 at 06:18pm, Andrey Vagin wrote: > 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 <[email protected]> > Cc: "David S. Miller" <[email protected]> > Cc: Pavel Emelyanov <[email protected]> > Cc: Eric Dumazet <[email protected]> > Cc: "Paul E. McKenney" <[email protected]> > Cc: David Howells <[email protected]> > Signed-off-by: Andrey Vagin <[email protected]>
Acked-by: Thomas Graf <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

