diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index d99864662582..13a1bc5d3bfd 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -780,7 +780,7 @@ static int __dev_alloc_name(struct net *net, const char *name, char *buf) | |||
780 | int i = 0; | 780 | int i = 0; |
781 | const char *p; | 781 | const char *p; |
782 | const int max_netdevices = 8*PAGE_SIZE; | 782 | const int max_netdevices = 8*PAGE_SIZE; |
783 | long *inuse; | 783 | unsigned long *inuse; |
784 | struct net_device *d; | 784 | struct net_device *d; |
785 | 785 | ||
786 | p = strnchr(name, IFNAMSIZ-1, '%'); | 786 | p = strnchr(name, IFNAMSIZ-1, '%'); |
@@ -794,7 +794,7 @@ static int __dev_alloc_name(struct net *net, const char *name, char *buf) | |||
794 | return -EINVAL; | 794 | return -EINVAL; |
795 | 795 | ||
796 | /* Use one page as a bit array of possible slots */ | 796 | /* Use one page as a bit array of possible slots */ |
797 | inuse = (long *) get_zeroed_page(GFP_ATOMIC); | 797 | inuse = (unsigned long *) get_zeroed_page(GFP_ATOMIC); |
798 | if (!inuse) | 798 | if (!inuse) |
799 | return -ENOMEM; | 799 | return -ENOMEM; |
800 | 800 | ||