Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linux-imx
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-kernel
linux-imx
Commits
95c96174
Commit
95c96174
authored
Apr 15, 2012
by
Eric Dumazet
Committed by
David S. Miller
Apr 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree. Signed-off-by:
Eric Dumazet
<
eric.dumazet@gmail.com
>
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5e73ea1a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
167 changed files
with
257 additions
and
253 deletions
+257
-253
ip_vs.h
include/linux/ip_vs.h
+6
-6
netdevice.h
include/linux/netdevice.h
+7
-7
ip_set.h
include/linux/netfilter/ipset/ip_set.h
+4
-4
nf_conntrack_h323_types.h
include/linux/netfilter/nf_conntrack_h323_types.h
+6
-6
nfnetlink.h
include/linux/netfilter/nfnetlink.h
+1
-1
socket.h
include/linux/socket.h
+2
-2
addrconf.h
include/net/addrconf.h
+1
-1
af_unix.h
include/net/af_unix.h
+1
-1
compat.h
include/net/compat.h
+4
-4
dn.h
include/net/dn.h
+1
-1
dn_fib.h
include/net/dn_fib.h
+3
-3
dn_route.h
include/net/dn_route.h
+2
-2
dst_ops.h
include/net/dst_ops.h
+1
-1
icmp.h
include/net/icmp.h
+1
-1
if_inet6.h
include/net/if_inet6.h
+1
-1
ip6_route.h
include/net/ip6_route.h
+1
-1
ip_fib.h
include/net/ip_fib.h
+2
-2
ip_vs.h
include/net/ip_vs.h
+8
-8
ipv6.h
include/net/ipv6.h
+1
-1
llc_c_ev.h
include/net/llc_c_ev.h
+1
-1
neighbour.h
include/net/neighbour.h
+2
-2
hash.h
include/net/netns/hash.h
+1
-1
nfc.h
include/net/nfc/nfc.h
+1
-1
pkt_sched.h
include/net/pkt_sched.h
+1
-1
route.h
include/net/route.h
+3
-3
structs.h
include/net/sctp/structs.h
+4
-4
tcp.h
include/net/tcp.h
+1
-1
udp.h
include/net/udp.h
+1
-1
wimax.h
include/net/wimax.h
+2
-2
x25.h
include/net/x25.h
+1
-1
fc.c
net/802/fc.c
+1
-1
fddi.c
net/802/fddi.c
+1
-1
hippi.c
net/802/hippi.c
+1
-1
tr.c
net/802/tr.c
+2
-2
client.c
net/9p/client.c
+3
-3
trans_fd.c
net/9p/trans_fd.c
+1
-1
br2684.c
net/atm/br2684.c
+1
-1
mpoa_proc.c
net/atm/mpoa_proc.c
+1
-1
signaling.c
net/atm/signaling.c
+1
-1
ax25_ip.c
net/ax25/ax25_ip.c
+2
-2
bat_sysfs.c
net/batman-adv/bat_sysfs.c
+3
-3
br_forward.c
net/bridge/br_forward.c
+1
-1
br_multicast.c
net/bridge/br_multicast.c
+5
-5
br_netlink.c
net/bridge/br_netlink.c
+1
-1
br_private_stp.h
net/bridge/br_private_stp.h
+3
-4
br_stp.c
net/bridge/br_stp.c
+2
-2
br_stp_timer.c
net/bridge/br_stp_timer.c
+3
-3
br_sysfs_br.c
net/bridge/br_sysfs_br.c
+1
-1
caif_socket.c
net/caif/caif_socket.c
+1
-1
auth_x.h
net/ceph/auth_x.h
+3
-3
ceph_common.c
net/ceph/ceph_common.c
+2
-2
ceph_hash.c
net/ceph/ceph_hash.c
+3
-3
mapper.c
net/ceph/crush/mapper.c
+4
-4
debugfs.c
net/ceph/debugfs.c
+3
-3
messenger.c
net/ceph/messenger.c
+8
-8
mon_client.c
net/ceph/mon_client.c
+5
-5
osd_client.c
net/ceph/osd_client.c
+1
-1
osdmap.c
net/ceph/osdmap.c
+7
-7
compat.c
net/compat.c
+5
-5
datagram.c
net/core/datagram.c
+3
-3
dev.c
net/core/dev.c
+4
-3
filter.c
net/core/filter.c
+1
-1
neighbour.c
net/core/neighbour.c
+1
-1
net-sysfs.c
net/core/net-sysfs.c
+4
-4
pktgen.c
net/core/pktgen.c
+10
-10
rtnetlink.c
net/core/rtnetlink.c
+3
-3
skbuff.c
net/core/skbuff.c
+1
-1
sock.c
net/core/sock.c
+1
-1
ccid3.c
net/dccp/ccids/ccid3.c
+6
-6
dccp.h
net/dccp/dccp.h
+4
-4
input.c
net/dccp/input.c
+5
-5
af_decnet.c
net/decnet/af_decnet.c
+3
-3
dn_fib.c
net/decnet/dn_fib.c
+3
-2
dn_nsp_in.c
net/decnet/dn_nsp_in.c
+1
-1
dn_nsp_out.c
net/decnet/dn_nsp_out.c
+2
-2
dn_route.c
net/decnet/dn_route.c
+9
-9
dn_rules.c
net/decnet/dn_rules.c
+2
-2
dns_key.c
net/dns_resolver/dns_key.c
+1
-1
internal.h
net/dns_resolver/internal.h
+1
-1
eth.c
net/ethernet/eth.c
+1
-1
6lowpan.c
net/ieee802154/6lowpan.c
+1
-1
dgram.c
net/ieee802154/dgram.c
+3
-3
raw.c
net/ieee802154/raw.c
+1
-1
arp.c
net/ipv4/arp.c
+2
-2
devinet.c
net/ipv4/devinet.c
+1
-1
fib_frontend.c
net/ipv4/fib_frontend.c
+5
-5
inet_connection_sock.c
net/ipv4/inet_connection_sock.c
+2
-1
inet_timewait_sock.c
net/ipv4/inet_timewait_sock.c
+1
-1
ip_options.c
net/ipv4/ip_options.c
+1
-1
ip_sockglue.c
net/ipv4/ip_sockglue.c
+2
-2
ipconfig.c
net/ipv4/ipconfig.c
+1
-1
netfilter.c
net/ipv4/netfilter.c
+1
-1
arp_tables.c
net/ipv4/netfilter/arp_tables.c
+1
-1
ip_tables.c
net/ipv4/netfilter/ip_tables.c
+1
-1
nf_nat_sip.c
net/ipv4/netfilter/nf_nat_sip.c
+1
-1
ping.c
net/ipv4/ping.c
+5
-3
route.c
net/ipv4/route.c
+10
-10
sysctl_net_ipv4.c
net/ipv4/sysctl_net_ipv4.c
+1
-1
tcp.c
net/ipv4/tcp.c
+4
-4
tcp_input.c
net/ipv4/tcp_input.c
+1
-1
tcp_output.c
net/ipv4/tcp_output.c
+0
-0
tcp_probe.c
net/ipv4/tcp_probe.c
+0
-0
udp.c
net/ipv4/udp.c
+0
-0
addrconf_core.c
net/ipv6/addrconf_core.c
+0
-0
datagram.c
net/ipv6/datagram.c
+0
-0
ip6_flowlabel.c
net/ipv6/ip6_flowlabel.c
+0
-0
ip6_tunnel.c
net/ipv6/ip6_tunnel.c
+0
-0
ipv6_sockglue.c
net/ipv6/ipv6_sockglue.c
+0
-0
ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+0
-0
route.c
net/ipv6/route.c
+0
-0
xfrm6_tunnel.c
net/ipv6/xfrm6_tunnel.c
+0
-0
ircomm_tty_ioctl.c
net/irda/ircomm/ircomm_tty_ioctl.c
+0
-0
af_key.c
net/key/af_key.c
+0
-0
l2tp_core.h
net/l2tp/l2tp_core.h
+0
-0
af_llc.c
net/llc/af_llc.c
+0
-0
ip_set_core.c
net/netfilter/ipset/ip_set_core.c
+0
-0
ip_vs_app.c
net/netfilter/ipvs/ip_vs_app.c
+0
-0
ip_vs_conn.c
net/netfilter/ipvs/ip_vs_conn.c
+0
-0
ip_vs_core.c
net/netfilter/ipvs/ip_vs_core.c
+0
-0
ip_vs_ctl.c
net/netfilter/ipvs/ip_vs_ctl.c
+0
-0
ip_vs_dh.c
net/netfilter/ipvs/ip_vs_dh.c
+0
-0
ip_vs_ftp.c
net/netfilter/ipvs/ip_vs_ftp.c
+0
-0
ip_vs_lblc.c
net/netfilter/ipvs/ip_vs_lblc.c
+0
-0
ip_vs_lblcr.c
net/netfilter/ipvs/ip_vs_lblcr.c
+0
-0
ip_vs_proto.c
net/netfilter/ipvs/ip_vs_proto.c
+0
-0
ip_vs_sh.c
net/netfilter/ipvs/ip_vs_sh.c
+0
-0
ip_vs_sync.c
net/netfilter/ipvs/ip_vs_sync.c
+0
-0
nf_conntrack_h323_main.c
net/netfilter/nf_conntrack_h323_main.c
+0
-0
nfnetlink.c
net/netfilter/nfnetlink.c
+0
-0
xt_recent.c
net/netfilter/xt_recent.c
+0
-0
nr_dev.c
net/netrom/nr_dev.c
+0
-0
core.c
net/nfc/core.c
+0
-0
nfc.h
net/nfc/nfc.h
+0
-0
vport-netdev.c
net/openvswitch/vport-netdev.c
+0
-0
af_packet.c
net/packet/af_packet.c
+0
-0
af_phonet.c
net/phonet/af_phonet.c
+0
-0
pep.c
net/phonet/pep.c
+0
-0
pn_dev.c
net/phonet/pn_dev.c
+0
-0
socket.c
net/phonet/socket.c
+0
-0
sysctl.c
net/phonet/sysctl.c
+0
-0
rose_dev.c
net/rose/rose_dev.c
+0
-0
rose_subr.c
net/rose/rose_subr.c
+0
-0
af_rxrpc.c
net/rxrpc/af_rxrpc.c
+0
-0
ar-ack.c
net/rxrpc/ar-ack.c
+0
-0
ar-call.c
net/rxrpc/ar-call.c
+0
-0
ar-input.c
net/rxrpc/ar-input.c
+0
-0
ar-internal.h
net/rxrpc/ar-internal.h
+0
-0
ar-key.c
net/rxrpc/ar-key.c
+0
-0
rxkad.c
net/rxrpc/rxkad.c
+0
-0
associola.c
net/sctp/associola.c
+0
-0
output.c
net/sctp/output.c
+0
-0
outqueue.c
net/sctp/outqueue.c
+0
-0
sm_sideeffect.c
net/sctp/sm_sideeffect.c
+0
-0
sm_statefuns.c
net/sctp/sm_statefuns.c
+0
-0
socket.c
net/socket.c
+0
-0
gss_krb5_mech.c
net/sunrpc/auth_gss/gss_krb5_mech.c
+0
-0
cache.c
net/sunrpc/cache.c
+0
-0
timer.c
net/sunrpc/timer.c
+0
-0
xdr.c
net/sunrpc/xdr.c
+0
-0
xprt.c
net/sunrpc/xprt.c
+0
-0
link.c
net/tipc/link.c
+0
-0
socket.c
net/tipc/socket.c
+0
-0
af_unix.c
net/unix/af_unix.c
+0
-0
stack.c
net/wimax/stack.c
+0
-0
wext-core.c
net/wireless/wext-core.c
+0
-0
x25_facilities.c
net/x25/x25_facilities.c
+0
-0
xfrm_hash.h
net/xfrm/xfrm_hash.h
+0
-0
No files found.
include/linux/ip_vs.h
View file @
95c96174
...
...
@@ -125,8 +125,8 @@ struct ip_vs_service_user {
/* virtual service options */
char
sched_name
[
IP_VS_SCHEDNAME_MAXLEN
];
unsigned
flags
;
/* virtual service flags */
unsigned
timeout
;
/* persistent timeout in sec */
unsigned
int
flags
;
/* virtual service flags */
unsigned
int
timeout
;
/* persistent timeout in sec */
__be32
netmask
;
/* persistent netmask */
};
...
...
@@ -137,7 +137,7 @@ struct ip_vs_dest_user {
__be16
port
;
/* real server options */
unsigned
conn_flags
;
/* connection flags */
unsigned
int
conn_flags
;
/* connection flags */
int
weight
;
/* destination weight */
/* thresholds for active connections */
...
...
@@ -187,8 +187,8 @@ struct ip_vs_service_entry {
/* service options */
char
sched_name
[
IP_VS_SCHEDNAME_MAXLEN
];
unsigned
flags
;
/* virtual service flags */
unsigned
timeout
;
/* persistent timeout */
unsigned
int
flags
;
/* virtual service flags */
unsigned
int
timeout
;
/* persistent timeout */
__be32
netmask
;
/* persistent netmask */
/* number of real servers */
...
...
@@ -202,7 +202,7 @@ struct ip_vs_service_entry {
struct
ip_vs_dest_entry
{
__be32
addr
;
/* destination address */
__be16
port
;
unsigned
conn_flags
;
/* connection flags */
unsigned
int
conn_flags
;
/* connection flags */
int
weight
;
/* destination weight */
__u32
u_threshold
;
/* upper threshold */
...
...
include/linux/netdevice.h
View file @
95c96174
...
...
@@ -288,7 +288,7 @@ struct hh_cache {
struct
header_ops
{
int
(
*
create
)
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
unsigned
short
type
,
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
len
);
const
void
*
saddr
,
unsigned
int
len
);
int
(
*
parse
)(
const
struct
sk_buff
*
skb
,
unsigned
char
*
haddr
);
int
(
*
rebuild
)(
struct
sk_buff
*
skb
);
int
(
*
cache
)(
const
struct
neighbour
*
neigh
,
struct
hh_cache
*
hh
,
__be16
type
);
...
...
@@ -1689,7 +1689,7 @@ static inline void *skb_gro_network_header(struct sk_buff *skb)
static
inline
int
dev_hard_header
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
unsigned
short
type
,
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
len
)
unsigned
int
len
)
{
if
(
!
dev
->
header_ops
||
!
dev
->
header_ops
->
create
)
return
0
;
...
...
@@ -1740,7 +1740,7 @@ struct softnet_data {
unsigned
int
input_queue_head
;
unsigned
int
input_queue_tail
;
#endif
unsigned
dropped
;
unsigned
int
dropped
;
struct
sk_buff_head
input_pkt_queue
;
struct
napi_struct
backlog
;
};
...
...
@@ -1925,7 +1925,7 @@ static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes)
}
static
inline
void
netdev_tx_completed_queue
(
struct
netdev_queue
*
dev_queue
,
unsigned
pkts
,
unsigned
bytes
)
unsigned
int
pkts
,
unsigned
int
bytes
)
{
#ifdef CONFIG_BQL
if
(
unlikely
(
!
bytes
))
...
...
@@ -1949,7 +1949,7 @@ static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
}
static
inline
void
netdev_completed_queue
(
struct
net_device
*
dev
,
unsigned
pkts
,
unsigned
bytes
)
unsigned
int
pkts
,
unsigned
int
bytes
)
{
netdev_tx_completed_queue
(
netdev_get_tx_queue
(
dev
,
0
),
pkts
,
bytes
);
}
...
...
@@ -2144,9 +2144,9 @@ extern void netdev_rx_handler_unregister(struct net_device *dev);
extern
bool
dev_valid_name
(
const
char
*
name
);
extern
int
dev_ioctl
(
struct
net
*
net
,
unsigned
int
cmd
,
void
__user
*
);
extern
int
dev_ethtool
(
struct
net
*
net
,
struct
ifreq
*
);
extern
unsigned
dev_get_flags
(
const
struct
net_device
*
);
extern
unsigned
int
dev_get_flags
(
const
struct
net_device
*
);
extern
int
__dev_change_flags
(
struct
net_device
*
,
unsigned
int
flags
);
extern
int
dev_change_flags
(
struct
net_device
*
,
unsigned
);
extern
int
dev_change_flags
(
struct
net_device
*
,
unsigned
int
);
extern
void
__dev_notify_flags
(
struct
net_device
*
,
unsigned
int
old_flags
);
extern
int
dev_change_name
(
struct
net_device
*
,
const
char
*
);
extern
int
dev_set_alias
(
struct
net_device
*
,
const
char
*
,
size_t
);
...
...
include/linux/netfilter/ipset/ip_set.h
View file @
95c96174
...
...
@@ -478,8 +478,8 @@ union ip_set_name_index {
#define IP_SET_OP_GET_BYNAME 0x00000006
/* Get set index by name */
struct
ip_set_req_get_set
{
unsigned
op
;
unsigned
version
;
unsigned
int
op
;
unsigned
int
version
;
union
ip_set_name_index
set
;
};
...
...
@@ -488,8 +488,8 @@ struct ip_set_req_get_set {
#define IP_SET_OP_VERSION 0x00000100
/* Ask kernel version */
struct
ip_set_req_version
{
unsigned
op
;
unsigned
version
;
unsigned
int
op
;
unsigned
int
version
;
};
#endif
/*_IP_SET_H */
include/linux/netfilter/nf_conntrack_h323_types.h
View file @
95c96174
...
...
@@ -7,12 +7,12 @@
typedef
struct
TransportAddress_ipAddress
{
/* SEQUENCE */
int
options
;
/* No use */
unsigned
ip
;
unsigned
i
nt
i
p
;
}
TransportAddress_ipAddress
;
typedef
struct
TransportAddress_ip6Address
{
/* SEQUENCE */
int
options
;
/* No use */
unsigned
ip
;
unsigned
i
nt
i
p
;
}
TransportAddress_ip6Address
;
typedef
struct
TransportAddress
{
/* CHOICE */
...
...
@@ -96,12 +96,12 @@ typedef struct DataType { /* CHOICE */
typedef
struct
UnicastAddress_iPAddress
{
/* SEQUENCE */
int
options
;
/* No use */
unsigned
network
;
unsigned
int
network
;
}
UnicastAddress_iPAddress
;
typedef
struct
UnicastAddress_iP6Address
{
/* SEQUENCE */
int
options
;
/* No use */
unsigned
network
;
unsigned
int
network
;
}
UnicastAddress_iP6Address
;
typedef
struct
UnicastAddress
{
/* CHOICE */
...
...
@@ -698,7 +698,7 @@ typedef struct RegistrationRequest { /* SEQUENCE */
}
options
;
RegistrationRequest_callSignalAddress
callSignalAddress
;
RegistrationRequest_rasAddress
rasAddress
;
unsigned
timeToLive
;
unsigned
int
timeToLive
;
}
RegistrationRequest
;
typedef
struct
RegistrationConfirm_callSignalAddress
{
/* SEQUENCE OF */
...
...
@@ -730,7 +730,7 @@ typedef struct RegistrationConfirm { /* SEQUENCE */
eRegistrationConfirm_genericData
=
(
1
<<
12
),
}
options
;
RegistrationConfirm_callSignalAddress
callSignalAddress
;
unsigned
timeToLive
;
unsigned
int
timeToLive
;
}
RegistrationConfirm
;
typedef
struct
UnregistrationRequest_callSignalAddress
{
/* SEQUENCE OF */
...
...
include/linux/netfilter/nfnetlink.h
View file @
95c96174
...
...
@@ -80,7 +80,7 @@ extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n);
extern
int
nfnetlink_subsys_unregister
(
const
struct
nfnetlink_subsystem
*
n
);
extern
int
nfnetlink_has_listeners
(
struct
net
*
net
,
unsigned
int
group
);
extern
int
nfnetlink_send
(
struct
sk_buff
*
skb
,
struct
net
*
net
,
u32
pid
,
unsigned
group
,
extern
int
nfnetlink_send
(
struct
sk_buff
*
skb
,
struct
net
*
net
,
u32
pid
,
unsigned
int
group
,
int
echo
,
gfp_t
flags
);
extern
int
nfnetlink_set_err
(
struct
net
*
net
,
u32
pid
,
u32
group
,
int
error
);
extern
int
nfnetlink_unicast
(
struct
sk_buff
*
skb
,
struct
net
*
net
,
u_int32_t
pid
,
int
flags
);
...
...
include/linux/socket.h
View file @
95c96174
...
...
@@ -68,13 +68,13 @@ struct msghdr {
__kernel_size_t
msg_iovlen
;
/* Number of blocks */
void
*
msg_control
;
/* Per protocol magic (eg BSD file descriptor passing) */
__kernel_size_t
msg_controllen
;
/* Length of cmsg list */
unsigned
msg_flags
;
unsigned
int
msg_flags
;
};
/* For recvmmsg/sendmmsg */
struct
mmsghdr
{
struct
msghdr
msg_hdr
;
unsigned
msg_len
;
unsigned
int
msg_len
;
};
/*
...
...
include/net/addrconf.h
View file @
95c96174
...
...
@@ -92,7 +92,7 @@ extern void addrconf_leave_solict(struct inet6_dev *idev,
const
struct
in6_addr
*
addr
);
static
inline
unsigned
long
addrconf_timeout_fixup
(
u32
timeout
,
unsigned
unit
)
unsigned
int
unit
)
{
if
(
timeout
==
0xffffffff
)
return
~
0UL
;
...
...
include/net/af_unix.h
View file @
95c96174
...
...
@@ -22,7 +22,7 @@ extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1];
struct
unix_address
{
atomic_t
refcnt
;
int
len
;
unsigned
hash
;
unsigned
int
hash
;
struct
sockaddr_un
name
[
0
];
};
...
...
include/net/compat.h
View file @
95c96174
...
...
@@ -42,12 +42,12 @@ extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
extern
int
get_compat_msghdr
(
struct
msghdr
*
,
struct
compat_msghdr
__user
*
);
extern
int
verify_compat_iovec
(
struct
msghdr
*
,
struct
iovec
*
,
struct
sockaddr_storage
*
,
int
);
extern
asmlinkage
long
compat_sys_sendmsg
(
int
,
struct
compat_msghdr
__user
*
,
unsigned
);
extern
asmlinkage
long
compat_sys_sendmsg
(
int
,
struct
compat_msghdr
__user
*
,
unsigned
int
);
extern
asmlinkage
long
compat_sys_sendmmsg
(
int
,
struct
compat_mmsghdr
__user
*
,
unsigned
,
unsigned
);
extern
asmlinkage
long
compat_sys_recvmsg
(
int
,
struct
compat_msghdr
__user
*
,
unsigned
);
unsigned
int
,
unsigned
int
);
extern
asmlinkage
long
compat_sys_recvmsg
(
int
,
struct
compat_msghdr
__user
*
,
unsigned
int
);
extern
asmlinkage
long
compat_sys_recvmmsg
(
int
,
struct
compat_mmsghdr
__user
*
,
unsigned
,
unsigned
,
unsigned
int
,
unsigned
int
,
struct
compat_timespec
__user
*
);
extern
asmlinkage
long
compat_sys_getsockopt
(
int
,
int
,
int
,
char
__user
*
,
int
__user
*
);
extern
int
put_cmsg_compat
(
struct
msghdr
*
,
int
,
int
,
int
,
void
*
);
...
...
include/net/dn.h
View file @
95c96174
...
...
@@ -199,7 +199,7 @@ static inline void dn_sk_ports_copy(struct flowidn *fld, struct dn_scp *scp)
fld
->
fld_dport
=
scp
->
addrrem
;
}
extern
unsigned
dn_mss_from_pmtu
(
struct
net_device
*
dev
,
int
mtu
);
extern
unsigned
int
dn_mss_from_pmtu
(
struct
net_device
*
dev
,
int
mtu
);
#define DN_MENUVER_ACC 0x01
#define DN_MENUVER_USR 0x02
...
...
include/net/dn_fib.h
View file @
95c96174
...
...
@@ -31,7 +31,7 @@ struct dn_fib_res {
struct
dn_fib_nh
{
struct
net_device
*
nh_dev
;
unsigned
nh_flags
;
unsigned
int
nh_flags
;
unsigned
char
nh_scope
;
int
nh_weight
;
int
nh_power
;
...
...
@@ -45,7 +45,7 @@ struct dn_fib_info {
int
fib_treeref
;
atomic_t
fib_clntref
;
int
fib_dead
;
unsigned
fib_flags
;
unsigned
int
fib_flags
;
int
fib_protocol
;
__le16
fib_prefsrc
;
__u32
fib_priority
;
...
...
@@ -140,7 +140,7 @@ extern void dn_fib_table_cleanup(void);
*/
extern
void
dn_fib_rules_init
(
void
);
extern
void
dn_fib_rules_cleanup
(
void
);
extern
unsigned
dnet_addr_type
(
__le16
addr
);
extern
unsigned
int
dnet_addr_type
(
__le16
addr
);
extern
int
dn_fib_lookup
(
struct
flowidn
*
fld
,
struct
dn_fib_res
*
res
);
extern
int
dn_fib_dump
(
struct
sk_buff
*
skb
,
struct
netlink_callback
*
cb
);
...
...
include/net/dn_route.h
View file @
95c96174
...
...
@@ -76,8 +76,8 @@ struct dn_route {
__le16
rt_src_map
;
__le16
rt_dst_map
;
unsigned
rt_flags
;
unsigned
rt_type
;
unsigned
int
rt_flags
;
unsigned
int
rt_type
;
};
static
inline
bool
dn_is_input_route
(
struct
dn_route
*
rt
)
...
...
include/net/dst_ops.h
View file @
95c96174
...
...
@@ -12,7 +12,7 @@ struct sk_buff;
struct
dst_ops
{
unsigned
short
family
;
__be16
protocol
;
unsigned
gc_thresh
;
unsigned
int
gc_thresh
;
int
(
*
gc
)(
struct
dst_ops
*
ops
);
struct
dst_entry
*
(
*
check
)(
struct
dst_entry
*
,
__u32
cookie
);
...
...
include/net/icmp.h
View file @
95c96174
...
...
@@ -25,7 +25,7 @@
struct
icmp_err
{
int
errno
;
unsigned
fatal
:
1
;
unsigned
int
fatal
:
1
;
};
extern
const
struct
icmp_err
icmp_err_convert
[];
...
...
include/net/if_inet6.h
View file @
95c96174
...
...
@@ -120,7 +120,7 @@ struct ifmcaddr6 {
unsigned
char
mca_crcount
;
unsigned
long
mca_sfcount
[
2
];
struct
timer_list
mca_timer
;
unsigned
mca_flags
;
unsigned
int
mca_flags
;
int
mca_users
;
atomic_t
mca_refcnt
;
spinlock_t
mca_lock
;
...
...
include/net/ip6_route.h
View file @
95c96174
...
...
@@ -146,7 +146,7 @@ struct rt6_rtnl_dump_arg {
extern
int
rt6_dump_route
(
struct
rt6_info
*
rt
,
void
*
p_arg
);
extern
void
rt6_ifdown
(
struct
net
*
net
,
struct
net_device
*
dev
);
extern
void
rt6_mtu_change
(
struct
net_device
*
dev
,
unsigned
mtu
);
extern
void
rt6_mtu_change
(
struct
net_device
*
dev
,
unsigned
int
mtu
);
extern
void
rt6_remove_prefsrc
(
struct
inet6_ifaddr
*
ifp
);
...
...
include/net/ip_fib.h
View file @
95c96174
...
...
@@ -49,7 +49,7 @@ struct fib_nh {
struct
net_device
*
nh_dev
;
struct
hlist_node
nh_hash
;
struct
fib_info
*
nh_parent
;
unsigned
nh_flags
;
unsigned
int
nh_flags
;
unsigned
char
nh_scope
;
#ifdef CONFIG_IP_ROUTE_MULTIPATH
int
nh_weight
;
...
...
@@ -74,7 +74,7 @@ struct fib_info {
struct
net
*
fib_net
;
int
fib_treeref
;
atomic_t
fib_clntref
;
unsigned
fib_flags
;
unsigned
int
fib_flags
;
unsigned
char
fib_dead
;
unsigned
char
fib_protocol
;
unsigned
char
fib_scope
;
...
...
include/net/ip_vs.h
View file @
95c96174
...
...
@@ -580,8 +580,8 @@ struct ip_vs_service_user_kern {
/* virtual service options */
char
*
sched_name
;
char
*
pe_name
;
unsigned
flags
;
/* virtual service flags */
unsigned
timeout
;
/* persistent timeout in sec */
unsigned
int
flags
;
/* virtual service flags */
unsigned
int
timeout
;
/* persistent timeout in sec */
u32
netmask
;
/* persistent netmask */
};
...
...
@@ -592,7 +592,7 @@ struct ip_vs_dest_user_kern {
u16
port
;
/* real server options */
unsigned
conn_flags
;
/* connection flags */
unsigned
int
conn_flags
;
/* connection flags */
int
weight
;
/* destination weight */
/* thresholds for active connections */
...
...
@@ -616,8 +616,8 @@ struct ip_vs_service {
union
nf_inet_addr
addr
;
/* IP address for virtual service */
__be16
port
;
/* port number for the service */
__u32
fwmark
;
/* firewall mark of the service */
unsigned
flags
;
/* service status flags */
unsigned
timeout
;
/* persistent timeout in ticks */
unsigned
int
flags
;
/* service status flags */
unsigned
int
timeout
;
/* persistent timeout in ticks */
__be32
netmask
;
/* grouping granularity */
struct
net
*
net
;
...
...
@@ -647,7 +647,7 @@ struct ip_vs_dest {
u16
af
;
/* address family */
__be16
port
;
/* port number of the server */
union
nf_inet_addr
addr
;
/* IP address of the server */
volatile
unsigned
flags
;
/* dest status flags */
volatile
unsigned
int
flags
;
/* dest status flags */
atomic_t
conn_flags
;
/* flags to copy to conn */
atomic_t
weight
;
/* server weight */
...
...
@@ -953,7 +953,7 @@ static inline int sysctl_sync_ver(struct netns_ipvs *ipvs)
* IPVS core functions
* (from ip_vs_core.c)
*/
extern
const
char
*
ip_vs_proto_name
(
unsigned
proto
);
extern
const
char
*
ip_vs_proto_name
(
unsigned
int
proto
);
extern
void
ip_vs_init_hash_table
(
struct
list_head
*
table
,
int
rows
);
#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table((t), ARRAY_SIZE((t)))
...
...
@@ -1014,7 +1014,7 @@ extern void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport);
struct
ip_vs_conn
*
ip_vs_conn_new
(
const
struct
ip_vs_conn_param
*
p
,
const
union
nf_inet_addr
*
daddr
,
__be16
dport
,
unsigned
flags
,
__be16
dport
,
unsigned
int
flags
,
struct
ip_vs_dest
*
dest
,
__u32
fwmark
);
extern
void
ip_vs_conn_expire_now
(
struct
ip_vs_conn
*
cp
);
...
...
include/net/ipv6.h
View file @
95c96174
...
...
@@ -345,7 +345,7 @@ static inline int ipv6_addr_equal(const struct in6_addr *a1,
static
inline
int
__ipv6_prefix_equal
(
const
__be32
*
a1
,
const
__be32
*
a2
,
unsigned
int
prefixlen
)
{
unsigned
pdw
,
pbi
;
unsigned
int
pdw
,
pbi
;
/* check complete u32 in prefix */
pdw
=
prefixlen
>>
5
;
...
...
include/net/llc_c_ev.h
View file @
95c96174
...
...
@@ -264,6 +264,6 @@ extern int llc_conn_ev_qlfy_set_status_rst_done(struct sock *sk,
static
__inline__
int
llc_conn_space
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
{
return
atomic_read
(
&
sk
->
sk_rmem_alloc
)
+
skb
->
truesize
<
(
unsigned
)
sk
->
sk_rcvbuf
;
(
unsigned
int
)
sk
->
sk_rcvbuf
;
}
#endif
/* LLC_C_EV_H */
include/net/neighbour.h
View file @
95c96174
...
...
@@ -322,7 +322,7 @@ static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb)
#ifdef CONFIG_BRIDGE_NETFILTER
static
inline
int
neigh_hh_bridge
(
struct
hh_cache
*
hh
,
struct
sk_buff
*
skb
)
{
unsigned
seq
,
hh_alen
;
unsigned
int
seq
,
hh_alen
;
do
{
seq
=
read_seqbegin
(
&
hh
->
hh_lock
);
...
...
@@ -335,7 +335,7 @@ static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb)
static
inline
int
neigh_hh_output
(
struct
hh_cache
*
hh
,
struct
sk_buff
*
skb
)
{
unsigned
seq
;
unsigned
int
seq
;
int
hh_len
;
do
{
...
...
include/net/netns/hash.h
View file @
95c96174
...
...
@@ -5,7 +5,7 @@
struct
net
;
static
inline
unsigned
net_hash_mix
(
struct
net
*
net
)
static
inline
unsigned
int
net_hash_mix
(
struct
net
*
net
)
{
#ifdef CONFIG_NET_NS
/*
...
...
include/net/nfc/nfc.h
View file @
95c96174
...
...
@@ -86,7 +86,7 @@ struct nfc_genl_data {
};
struct
nfc_dev
{
unsigned
idx
;
unsigned
i
nt
i
dx
;
struct
nfc_target
*
targets
;
int
n_targets
;
int
targets_generation
;
...
...
include/net/pkt_sched.h
View file @
95c96174
...
...
@@ -107,7 +107,7 @@ extern int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
/* Calculate maximal size of packet seen by hard_start_xmit
routine of this device.
*/
static
inline
unsigned
psched_mtu
(
const
struct
net_device
*
dev
)
static
inline
unsigned
int
psched_mtu
(
const
struct
net_device
*
dev
)
{
return
dev
->
mtu
+
dev
->
hard_header_len
;
}
...
...
include/net/route.h
View file @
95c96174
...
...
@@ -50,7 +50,7 @@ struct rtable {
__be32
rt_key_src
;
int
rt_genid
;
unsigned
rt_flags
;
unsigned
int
rt_flags
;
__u16
rt_type
;
__u8
rt_key_tos
;
...
...
@@ -185,8 +185,8 @@ extern unsigned short ip_rt_frag_needed(struct net *net, const struct iphdr *iph
unsigned
short
new_mtu
,
struct
net_device
*
dev
);
extern
void
ip_rt_send_redirect
(
struct
sk_buff
*
skb
);
extern
unsigned
inet_addr_type
(
struct
net
*
net
,
__be32
addr
);
extern
unsigned
inet_dev_addr_type
(
struct
net
*
net
,
const
struct
net_device
*
dev
,
__be32
addr
);
extern
unsigned
int
inet_addr_type
(
struct
net
*
net
,
__be32
addr
);
extern
unsigned
int
inet_dev_addr_type
(
struct
net
*
net
,
const
struct
net_device
*
dev
,
__be32
addr
);
extern
void
ip_rt_multicast_event
(
struct
in_device
*
);
extern
int
ip_rt_ioctl
(
struct
net
*
,
unsigned
int
cmd
,
void
__user
*
arg
);
extern
void
ip_rt_get_source
(
u8
*
src
,
struct
sk_buff
*
skb
,
struct
rtable
*
rt
);
...
...
include/net/sctp/structs.h
View file @
95c96174
...
...
@@ -1145,10 +1145,10 @@ struct sctp_outq {
/* Data pending that has never been transmitted. */
struct
list_head
out_chunk_list
;
unsigned
out_qlen
;
/* Total length of queued data chunks. */
unsigned
int
out_qlen
;
/* Total length of queued data chunks. */
/* Error of send failed, may used in SCTP_SEND_FAILED event. */
unsigned
error
;
unsigned
int
error
;
/* These are control chunks we want to send. */
struct
list_head
control_chunk_list
;
...
...
@@ -2000,8 +2000,8 @@ void sctp_assoc_update(struct sctp_association *old,
__u32
sctp_association_get_next_tsn
(
struct
sctp_association
*
);
void
sctp_assoc_sync_pmtu
(
struct
sctp_association
*
);
void
sctp_assoc_rwnd_increase
(
struct
sctp_association
*
,
unsigned
);
void
sctp_assoc_rwnd_decrease
(
struct
sctp_association
*
,
unsigned
);
void
sctp_assoc_rwnd_increase
(
struct
sctp_association
*
,
unsigned
int
);
void
sctp_assoc_rwnd_decrease
(
struct
sctp_association
*
,
unsigned
int
);
void
sctp_assoc_set_primary
(
struct
sctp_association
*
,
struct
sctp_transport
*
);
void
sctp_assoc_del_nonprimary_peers
(
struct
sctp_association
*
,
...
...
include/net/tcp.h
View file @
95c96174
...
...
@@ -1226,7 +1226,7 @@ extern void tcp_put_md5sig_pool(void);
extern
int
tcp_md5_hash_header
(
struct
tcp_md5sig_pool
*
,
const
struct
tcphdr
*
);
extern
int
tcp_md5_hash_skb_data
(
struct
tcp_md5sig_pool
*
,
const
struct
sk_buff
*
,
unsigned
header_len
);
unsigned
int
header_len
);
extern
int
tcp_md5_hash_key
(
struct
tcp_md5sig_pool
*
hp
,
const
struct
tcp_md5sig_key
*
key
);
...
...
include/net/udp.h
View file @
95c96174
...
...
@@ -81,7 +81,7 @@ struct udp_table {
extern
struct
udp_table
udp_table
;
extern
void
udp_table_init
(
struct
udp_table
*
,
const
char
*
);
static
inline
struct
udp_hslot
*
udp_hashslot
(
struct
udp_table
*
table
,
struct
net
*
net
,
unsigned
num
)
struct
net
*
net
,
unsigned
int
num
)
{
return
&
table
->
hash
[
udp_hashfn
(
net
,
num
,
table
->
mask
)];
}
...
...
include/net/wimax.h
View file @
95c96174
...
...
@@ -423,8 +423,8 @@ struct wimax_dev {
int
(
*
op_reset
)(
struct
wimax_dev
*
wimax_dev
);
struct
rfkill
*
rfkill
;
unsigned
rf_hw
;
unsigned
rf_sw
;
unsigned
int
rf_hw
;
unsigned
int
rf_sw
;
char
name
[
32
];
struct
dentry
*
debugfs_dentry
;
...
...
include/net/x25.h
View file @
95c96174
...
...
@@ -305,7 +305,7 @@ static inline void x25_unregister_sysctl(void) {};
#endif
/* CONFIG_SYSCTL */
struct
x25_skb_cb
{
unsigned
flags
;
unsigned
int
flags
;
};
#define X25_SKB_CB(s) ((struct x25_skb_cb *) ((s)->cb))
...
...
net/802/fc.c
View file @
95c96174
...
...
@@ -35,7 +35,7 @@
static
int
fc_header
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
unsigned
short
type
,
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
len
)
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
int
len
)
{
struct
fch_hdr
*
fch
;
int
hdr_len
;
...
...
net/802/fddi.c
View file @
95c96174
...
...
@@ -51,7 +51,7 @@
static
int
fddi_header
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
unsigned
short
type
,
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
len
)
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
int
len
)
{
int
hl
=
FDDI_K_SNAP_HLEN
;
struct
fddihdr
*
fddi
;
...
...
net/802/hippi.c
View file @
95c96174
...
...
@@ -45,7 +45,7 @@
static
int
hippi_header
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
unsigned
short
type
,
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
len
)
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
int
len
)
{
struct
hippi_hdr
*
hip
=
(
struct
hippi_hdr
*
)
skb_push
(
skb
,
HIPPI_HLEN
);
struct
hippi_cb
*
hcb
=
(
struct
hippi_cb
*
)
skb
->
cb
;
...
...
net/802/tr.c
View file @
95c96174
...
...
@@ -101,7 +101,7 @@ static inline unsigned long rif_hash(const unsigned char *addr)
static
int
tr_header
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
,
unsigned
short
type
,
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
len
)
const
void
*
daddr
,
const
void
*
saddr
,
unsigned
int
len
)
{
struct
trh_hdr
*
trh
;
int
hdr_len
;
...
...
@@ -193,7 +193,7 @@ __be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev)
struct
trh_hdr
*
trh
;
struct
trllc
*
trllc
;
unsigned
riflen
=
0
;
unsigned
int
riflen
=
0
;
skb
->
dev
=
dev
;
skb_reset_mac_header
(
skb
);
...
...
net/9p/client.c
View file @
95c96174
...
...
@@ -1530,7 +1530,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset,
p9_debug
(
P9_DEBUG_9P
,
">>> TREAD fid %d offset %llu %d
\n
"
,
fid
->
fid
,
(
long
long
unsigned
)
offset
,
count
);
fid
->
fid
,
(
unsigned
long
long
)
offset
,
count
);
err
=
0
;
clnt
=
fid
->
clnt
;
...
...
@@ -1605,7 +1605,7 @@ p9_client_write(struct p9_fid *fid, char *data, const char __user *udata,
struct
p9_req_t
*
req
;
p9_debug
(
P9_DEBUG_9P
,
">>> TWRITE fid %d offset %llu count %d
\n
"
,
fid
->
fid
,
(
long
long
unsigned
)
offset
,
count
);
fid
->
fid
,
(
unsigned
long
long
)
offset
,
count
);
err
=
0
;
clnt
=
fid
->
clnt
;
...
...
@@ -2040,7 +2040,7 @@ int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset)
char
*
dataptr
;
p9_debug
(
P9_DEBUG_9P
,
">>> TREADDIR fid %d offset %llu count %d
\n
"
,
fid
->
fid
,
(
long
long
unsigned
)
offset
,
count
);
fid
->
fid
,
(
unsigned
long
long
)
offset
,
count
);
err
=
0
;
clnt
=
fid
->
clnt
;
...
...
net/9p/trans_fd.c
View file @
95c96174
...
...
@@ -513,7 +513,7 @@ error:
clear_bit
(
Wworksched
,
&
m
->
wsched
);
}
static
int
p9_pollwake
(
wait_queue_t
*
wait
,
unsigned
mode
,
int
sync
,
void
*
key
)
static
int
p9_pollwake
(
wait_queue_t
*
wait
,
unsigned
int
mode
,
int
sync
,
void
*
key
)
{
struct
p9_poll_wait
*
pwait
=
container_of
(
wait
,
struct
p9_poll_wait
,
wait
);
...
...
net/atm/br2684.c
View file @
95c96174
...
...
@@ -73,7 +73,7 @@ struct br2684_vcc {
#ifdef CONFIG_ATM_BR2684_IPFILTER
struct
br2684_filter
filter
;
#endif
/* CONFIG_ATM_BR2684_IPFILTER */
unsigned
copies_needed
,
copies_failed
;
unsigned
int
copies_needed
,
copies_failed
;
};
struct
br2684_dev
{
...
...
net/atm/mpoa_proc.c
View file @
95c96174
...
...
@@ -207,7 +207,7 @@ static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
size_t
nbytes
,
loff_t
*
ppos
)
{
char
*
page
,
*
p
;
unsigned
len
;
unsigned
int
len
;
if
(
nbytes
==
0
)
return
0
;
...
...
net/atm/signaling.c
View file @
95c96174
...
...
@@ -166,7 +166,7 @@ void sigd_enq2(struct atm_vcc *vcc, enum atmsvc_msg_type type,
{
struct
sk_buff
*
skb
;
struct
atmsvc_msg
*
msg
;
static
unsigned
session
=
0
;
static
unsigned
int
session
=
0
;
pr_debug
(
"%d (0x%p)
\n
"
,
(
int
)
type
,
vcc
);
while
(
!
(
skb
=
alloc_skb
(
sizeof
(
struct
atmsvc_msg
),
GFP_KERNEL
)))
...
...