Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f61b6db3 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

netdevsim: make debug dirs' dentries static



The root directories of netdevsim should only be used by the core
to create per-device subdirectories, so limit their visibility to
the core file.

Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 472f5975
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ struct nsim_vf_config {

static u32 nsim_dev_id;

static struct dentry *nsim_ddir;
static struct dentry *nsim_sdev_ddir;

static int nsim_num_vf(struct device *dev)
{
	struct netdevsim *ns = to_nsim(dev);
@@ -566,9 +569,6 @@ static struct rtnl_link_ops nsim_link_ops __read_mostly = {
	.dellink	= nsim_dellink,
};

struct dentry *nsim_ddir;
struct dentry *nsim_sdev_ddir;

static int __init nsim_module_init(void)
{
	int err;
+0 −3
Original line number Diff line number Diff line
@@ -103,9 +103,6 @@ struct netdevsim {
	struct nsim_ipsec ipsec;
};

extern struct dentry *nsim_ddir;
extern struct dentry *nsim_sdev_ddir;

#ifdef CONFIG_BPF_SYSCALL
int nsim_bpf_init(struct netdevsim *ns);
void nsim_bpf_uninit(struct netdevsim *ns);