From: Neil Horman Date: Tue, 29 May 2012 09:30:40 +0000 (+0000) Subject: net: add MODULE_ALIAS_NET_PF_PROTO_NAME X-Git-Tag: v3.12-rc1~3039^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2033e9bf06f07e049bbc77e9452856df846714cc;p=kernel%2Fkernel-generic.git net: add MODULE_ALIAS_NET_PF_PROTO_NAME The MODULE_ALAIS_NET_PF macro set is missing a variant that allows for the appending of an arbitrary string to the net-pf--proto- base. while MODULE_ALIAS_NET_PF_PROTO_NAME_TYPE allows an appending of a numerical type, we need to be able to append a generic string to support generic netlink families that have neither a fix numberical protocol nor type number Signed-off-by: Neil Horman CC: Eric Dumazet CC: David Miller Signed-off-by: David S. Miller --- diff --git a/include/linux/net.h b/include/linux/net.h index 2d7510f..e9ac2df 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -313,5 +313,8 @@ extern int kernel_sock_shutdown(struct socket *sock, MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ "-type-" __stringify(type)) +#define MODULE_ALIAS_NET_PF_PROTO_NAME(pf, proto, name) \ + MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ + name) #endif /* __KERNEL__ */ #endif /* _LINUX_NET_H */