Commit 36b9ad80 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by David S. Miller

net/dcb: make dcbnl.c explicitly non-modular

The Kconfig currently controlling compilation of this code is:

net/dcb/Kconfig:config DCB
net/dcb/Kconfig:        bool "Data Center Bridging support"

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

Since module_init translates to device_initcall in the non-modular
case, the init ordering remains unchanged with this commit.  We can
change to one of the other priority initcalls (subsys?) at any later
date, if desired.

We also delete the MODULE_LICENSE tag etc. since all that information
is (or is now) already contained at the top of the file in the comments.

Cc: "David S. Miller" <>
Cc: Or Gerlitz <>
Cc: Anish Bhatt <>
Cc: John Fastabend <>
Cc: Shani Michaeli <>
Signed-off-by: default avatarPaul Gortmaker <>
Signed-off-by: default avatarDavid S. Miller <>
parent b6191aee
......@@ -13,6 +13,7 @@
* You should have received a copy of the GNU General Public License along with
* this program; if not, see <>.
* Description: Data Center Bridging netlink interface
* Author: Lucy Liu <>
......@@ -24,7 +25,7 @@
#include <linux/dcbnl.h>
#include <net/dcbevent.h>
#include <linux/rtnetlink.h>
#include <linux/module.h>
#include <linux/init.h>
#include <net/sock.h>
/* Data Center Bridging (DCB) is a collection of Ethernet enhancements
......@@ -48,10 +49,6 @@
* features for capable devices.
MODULE_AUTHOR("Lucy Liu, <>");
MODULE_DESCRIPTION("Data Center Bridging netlink interface");
/**************** DCB attribute policies *************************************/
/* DCB netlink attributes policy */
......@@ -1935,19 +1932,6 @@ int dcb_ieee_delapp(struct net_device *dev, struct dcb_app *del)
static void dcb_flushapp(void)
struct dcb_app_type *app;
struct dcb_app_type *tmp;
list_for_each_entry_safe(app, tmp, &dcb_app_list, list) {
static int __init dcbnl_init(void)
......@@ -1957,12 +1941,4 @@ static int __init dcbnl_init(void)
return 0;
static void __exit dcbnl_exit(void)
rtnl_unregister(PF_UNSPEC, RTM_GETDCB);
rtnl_unregister(PF_UNSPEC, RTM_SETDCB);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment