Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214603
b: refs/heads/master
c: 756e64a
h: refs/heads/master
i:
  214601: df6fa08
  214599: f05f1a3
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 22, 2010
1 parent 68397dd commit d8357e8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9478e386165477504916094ae5efb073a44fd9f
refs/heads/master: 756e64a0b106f1a2ca96889c39ea0d48131105c0
2 changes: 1 addition & 1 deletion trunk/drivers/net/pppoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ static const struct proto_ops pppoe_ops = {
.ioctl = pppox_ioctl,
};

static struct pppox_proto pppoe_proto = {
static const struct pppox_proto pppoe_proto = {
.create = pppoe_create,
.ioctl = pppoe_ioctl,
.owner = THIS_MODULE,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/pppox.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

#include <asm/uaccess.h>

static struct pppox_proto *pppox_protos[PX_MAX_PROTO + 1];
static const struct pppox_proto *pppox_protos[PX_MAX_PROTO + 1];

int register_pppox_proto(int proto_num, struct pppox_proto *pp)
int register_pppox_proto(int proto_num, const struct pppox_proto *pp)
{
if (proto_num < 0 || proto_num > PX_MAX_PROTO)
return -EINVAL;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/pptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static struct pppox_sock **callid_sock;
static DEFINE_SPINLOCK(chan_lock);

static struct proto pptp_sk_proto __read_mostly;
static struct ppp_channel_ops pptp_chan_ops;
static const struct ppp_channel_ops pptp_chan_ops;
static const struct proto_ops pptp_ops;

#define PPP_LCP_ECHOREQ 0x09
Expand Down Expand Up @@ -628,7 +628,7 @@ static int pptp_ppp_ioctl(struct ppp_channel *chan, unsigned int cmd,
return err;
}

static struct ppp_channel_ops pptp_chan_ops = {
static const struct ppp_channel_ops pptp_chan_ops = {
.start_xmit = pptp_xmit,
.ioctl = pptp_ppp_ioctl,
};
Expand Down Expand Up @@ -659,12 +659,12 @@ static const struct proto_ops pptp_ops = {
.ioctl = pppox_ioctl,
};

static struct pppox_proto pppox_pptp_proto = {
static const struct pppox_proto pppox_pptp_proto = {
.create = pptp_create,
.owner = THIS_MODULE,
};

static struct gre_protocol gre_pptp_protocol = {
static const struct gre_protocol gre_pptp_protocol = {
.handler = pptp_rcv,
};

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/if_pppox.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct pppox_proto {
struct module *owner;
};

extern int register_pppox_proto(int proto_num, struct pppox_proto *pp);
extern int register_pppox_proto(int proto_num, const struct pppox_proto *pp);
extern void unregister_pppox_proto(int proto_num);
extern void pppox_unbind_sock(struct sock *sk);/* delete ppp-channel binding */
extern int pppox_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/l2tp/l2tp_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ static const struct proto_ops pppol2tp_ops = {
.ioctl = pppox_ioctl,
};

static struct pppox_proto pppol2tp_proto = {
static const struct pppox_proto pppol2tp_proto = {
.create = pppol2tp_create,
.ioctl = pppol2tp_ioctl
};
Expand Down

0 comments on commit d8357e8

Please sign in to comment.