i386 compilation errors in head/sys/dev/ixl/if_ixl.c

From: David Shao <davshao_at_gmail.com>
Date: Thu, 28 Aug 2014 22:38:06 -0700
Compilation errors occur in head/sys/dev/ixl/if_ixl.c on i386 for
FreeBSD 11-current for the following:

In function ixl_print_debug_info()

        printf("Queue irqs = %lx\n", que->irqs);
        printf("AdminQ irqs = %lx\n", pf->admin_irq);
...
        printf("RX not ready = %lx\n", rxr->not_done);
        printf("RX packets = %lx\n", rxr->rx_packets);

all cause
error: format specifies type 'unsigned long' but the argument has type
'u64' (aka 'unsigned long long') [-Werror,-Wformat]

In function ixl_stat_update48(struct i40e_hw *hw, u32 hireg, u32 loreg,
        bool offset_loaded, u64 *offset, u64 *stat)


#if __FreeBSD__ >= 10 && __amd64__

causes
error:  '__amd64__' is not defined, evaluates to 0 [-Werror,-Wundef]
Received on Fri Aug 29 2014 - 03:38:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:51 UTC