GCC doesn't need register in declarations (and probably ignores them).
diff -Nru a/net/ipv4/ipvs/ip_vs_ctl.c b/net/ipv4/ipvs/ip_vs_ctl.c
--- a/net/ipv4/ipvs/ip_vs_ctl.c Tue Sep 16 14:08:25 2003
+++ b/net/ipv4/ipvs/ip_vs_ctl.c Tue Sep 16 14:08:25 2003
@@ -279,7 +279,7 @@
static __inline__ unsigned
ip_vs_svc_hashkey(unsigned proto, __u32 addr, __u16 port)
{
- register unsigned porth = ntohs(port);
+ unsigned porth = ntohs(port);
return (proto^ntohl(addr)^(porth>>IP_VS_SVC_TAB_BITS)^porth)
& IP_VS_SVC_TAB_MASK;
@@ -482,7 +482,7 @@
*/
static __inline__ unsigned ip_vs_rs_hashkey(__u32 addr, __u16 port)
{
- register unsigned porth = ntohs(port);
+ unsigned porth = ntohs(port);
return (ntohl(addr)^(porth>>IP_VS_RTAB_BITS)^porth)
& IP_VS_RTAB_MASK;
diff -Nru a/net/ipv4/ipvs/ip_vs_lblcr.c b/net/ipv4/ipvs/ip_vs_lblcr.c
--- a/net/ipv4/ipvs/ip_vs_lblcr.c Tue Sep 16 14:08:25 2003
+++ b/net/ipv4/ipvs/ip_vs_lblcr.c Tue Sep 16 14:08:25 2003
@@ -171,7 +171,7 @@
/* get weighted least-connection node in the destination set */
static inline struct ip_vs_dest *ip_vs_dest_set_min(struct ip_vs_dest_set *set)
{
- register struct ip_vs_dest_list *e;
+ struct ip_vs_dest_list *e;
struct ip_vs_dest *dest, *least;
int loh, doh;
@@ -226,7 +226,7 @@
/* get weighted most-connection node in the destination set */
static inline struct ip_vs_dest *ip_vs_dest_set_max(struct ip_vs_dest_set *set)
{
- register struct ip_vs_dest_list *e;
+ struct ip_vs_dest_list *e;
struct ip_vs_dest *dest, *most;
int moh, doh;
|