Skip to content

Commit

Permalink
dsa: Add MODULE_LICENSE to tag drivers
Browse files Browse the repository at this point in the history
All the tag drivers are some variant of GPL. Add a MODULE_LICENSE()
indicating this, so the drivers can later be compiled as modules.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrew Lunn authored and David S. Miller committed Apr 28, 2019
1 parent 0b42f03 commit f18bba5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/dsa/tag_brcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,5 @@ const struct dsa_device_ops brcm_prepend_netdev_ops = {
};
#endif

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_BRCM_PREPEND);
1 change: 1 addition & 0 deletions net/dsa/tag_dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,5 @@ const struct dsa_device_ops dsa_netdev_ops = {
.overhead = DSA_HLEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_DSA);
1 change: 1 addition & 0 deletions net/dsa/tag_edsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@ const struct dsa_device_ops edsa_netdev_ops = {
.overhead = EDSA_HLEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_EDSA);
1 change: 1 addition & 0 deletions net/dsa/tag_gswip.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ const struct dsa_device_ops gswip_netdev_ops = {
.overhead = GSWIP_RX_HEADER_LEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_GSWIP);
1 change: 1 addition & 0 deletions net/dsa/tag_ksz.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,5 @@ const struct dsa_device_ops ksz9893_netdev_ops = {
.overhead = KSZ_INGRESS_TAG_LEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_KSZ9893);
1 change: 1 addition & 0 deletions net/dsa/tag_lan9303.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ const struct dsa_device_ops lan9303_netdev_ops = {
.overhead = LAN9303_TAG_LEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_LAN9303);
1 change: 1 addition & 0 deletions net/dsa/tag_mtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ const struct dsa_device_ops mtk_netdev_ops = {
.overhead = MTK_HDR_LEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_MTK);
1 change: 1 addition & 0 deletions net/dsa/tag_qca.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ const struct dsa_device_ops qca_netdev_ops = {
.overhead = QCA_HDR_LEN,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_QCA);
1 change: 1 addition & 0 deletions net/dsa/tag_trailer.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ const struct dsa_device_ops trailer_netdev_ops = {
.overhead = 4,
};

MODULE_LICENSE("GPL");
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_TRAILER);

0 comments on commit f18bba5

Please sign in to comment.