Re: [PATCH] Variables only used in ifdef | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Wang Chen said the following on 2008-7-4 16:25:
> Move the variables which only used in #ifdef to where they should be.
> Otherwise, "defined but not used" compile warning will go out.
>
> Signed-off-by: Wang Chen <wangchen@xxxxxxxxxxxxxx>
> ---
> diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c
> index 29b4b94..c938d4c 100644
> --- a/drivers/net/wan/syncppp.c
> +++ b/drivers/net/wan/syncppp.c
> @@ -763,10 +763,10 @@ static void sppp_cisco_input (struct sppp *sp, struct sk_buff *skb)
> case CISCO_ADDR_REQ:
> /* Stolen from net/ipv4/devinet.c -- SIOCGIFADDR ioctl */
> {
> - struct in_device *in_dev;
> - struct in_ifaddr *ifa;
> __be32 addr = 0, mask = htonl(~0U); /* FIXME: is the mask correct? */
> #ifdef CONFIG_INET
> + struct in_device *in_dev;
> + struct in_ifaddr *ifa;
> rcu_read_lock();
> if ((in_dev = __in_dev_get_rcu(dev)) != NULL)
> {
>
Jeff, will you take this?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Kernel List] [Site Home] [Ethernet Bridging] [Git] [IETF Annouce] [Linux Assembly] [VLAN] [Networking] [Security] [Bugtraq] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Linux Wireless] [DDR & Rambus] [Free Dating] [Linux Resources] [Wireless Reading Device]
![]() |
![]() |