* Build Errors when building usb directory
@ 2014-07-18 17:45 Nick Krause
2014-07-18 18:10 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Nick Krause @ 2014-07-18 17:45 UTC (permalink / raw)
To: Greg KH; +Cc: linux-usb, linux-kernel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 226 bytes --]
Hey Greg and others,
When I built the usb directory today to check a patch I am also
sending to. I seem to hitting
a few compiler errors and a lot of warnings. I am going to attach a
file of my log of this build.
Cheers Nick
[-- Attachment #2: usb_errors --]
[-- Type: application/octet-stream, Size: 80576 bytes --]
In file included from include/linux/cache.h:5:0,
from include/linux/time.h:4,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/cache.h:7:25: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
^
./arch/x86/include/asm/cache.h:8:30: note: in expansion of macro ‘L1_CACHE_SHIFT’
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
^
include/linux/cache.h:12:25: note: in expansion of macro ‘L1_CACHE_BYTES’
#define SMP_CACHE_BYTES L1_CACHE_BYTES
^
./arch/x86/include/asm/processor.h:131:30: note: in expansion of macro ‘SMP_CACHE_BYTES’
} __attribute__((__aligned__(SMP_CACHE_BYTES)));
^
In file included from ./arch/x86/include/asm/thread_info.h:23:0,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/processor.h:131:1: error: requested alignment is not an integer constant
} __attribute__((__aligned__(SMP_CACHE_BYTES)));
^
In file included from include/asm-generic/percpu.h:6:0,
from ./arch/x86/include/asm/percpu.h:523,
from ./arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/processor.h:155:39: error: requested alignment is not an integer constant
DECLARE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);
^
include/linux/percpu-defs.h:66:38: note: in definition of macro ‘DECLARE_PER_CPU_SECTION’
extern __PCPU_ATTRS(sec) __typeof__(type) name
^
./arch/x86/include/asm/processor.h:155:1: note: in expansion of macro ‘DECLARE_PER_CPU_SHARED_ALIGNED’
DECLARE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info);
^
In file included from ./arch/x86/include/asm/thread_info.h:23:0,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/processor.h:164:0: warning: "cache_line_size" redefined [enabled by default]
#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
^
In file included from include/linux/time.h:4:0,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/cache.h:64:0: note: this is the location of the previous definition
#define cache_line_size() L1_CACHE_BYTES
^
In file included from include/linux/list.h:7:0,
from include/linux/module.h:9,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/processor.h: In function ‘load_cr3’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:40:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/processor.h:204:12: note: in expansion of macro ‘__pa’
write_cr3(__pa(pgdir));
^
./arch/x86/include/asm/page_32_types.h:16:28: note: each undeclared identifier is reported only once for each function it appears in
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:40:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/processor.h:204:12: note: in expansion of macro ‘__pa’
write_cr3(__pa(pgdir));
^
In file included from ./arch/x86/include/asm/thread_info.h:23:0,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/processor.h: At top level:
./arch/x86/include/asm/processor.h:253:1: error: requested alignment is not an integer constant
} __attribute__((packed)) ____cacheline_aligned;
^
./arch/x86/include/asm/processor.h:284:1: error: requested alignment is not an integer constant
} ____cacheline_aligned;
^
In file included from include/asm-generic/percpu.h:6:0,
from ./arch/x86/include/asm/percpu.h:523,
from ./arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/processor.h:286:39: error: requested alignment is not an integer constant
DECLARE_PER_CPU_SHARED_ALIGNED(struct tss_struct, init_tss);
^
include/linux/percpu-defs.h:66:38: note: in definition of macro ‘DECLARE_PER_CPU_SECTION’
extern __PCPU_ATTRS(sec) __typeof__(type) name
^
./arch/x86/include/asm/processor.h:286:1: note: in expansion of macro ‘DECLARE_PER_CPU_SHARED_ALIGNED’
DECLARE_PER_CPU_SHARED_ALIGNED(struct tss_struct, init_tss);
^
In file included from include/linux/cache.h:5:0,
from include/linux/time.h:4,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/cache.h:12:31: error: ‘CONFIG_X86_INTERNODE_CACHE_SHIFT’ undeclared here (not in a function)
#define INTERNODE_CACHE_SHIFT CONFIG_X86_INTERNODE_CACHE_SHIFT
^
include/linux/cache.h:57:35: note: in expansion of macro ‘INTERNODE_CACHE_SHIFT’
__attribute__((__aligned__(1 << (INTERNODE_CACHE_SHIFT))))
^
include/linux/mmzone.h:108:3: note: in expansion of macro ‘____cacheline_internodealigned_in_smp’
} ____cacheline_internodealigned_in_smp;
^
In file included from include/linux/gfp.h:5:0,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/usb/atm/cxacru.c:32:
include/linux/mmzone.h:108:1: error: requested alignment is not an integer constant
} ____cacheline_internodealigned_in_smp;
^
include/linux/mmzone.h:517:1: error: requested alignment is not an integer constant
} ____cacheline_internodealigned_in_smp;
^
In file included from include/linux/gfp.h:8:0,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/usb/atm/cxacru.c:32:
include/linux/topology.h: In function ‘numa_node_id’:
include/linux/topology.h:108:2: error: implicit declaration of function ‘raw_smp_processor_id’ [-Werror=implicit-function-declaration]
return cpu_to_node(raw_smp_processor_id());
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/gfp.h: In function ‘gfp_zone’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/mmdebug.h:13:25: note: in expansion of macro ‘BUG_ON’
#define VM_BUG_ON(cond) BUG_ON(cond)
^
include/linux/gfp.h:261:2: note: in expansion of macro ‘VM_BUG_ON’
VM_BUG_ON((GFP_ZONE_BAD >> bit) & 1);
^
include/linux/gfp.h: In function ‘alloc_pages_exact_node’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/mmdebug.h:13:25: note: in expansion of macro ‘BUG_ON’
#define VM_BUG_ON(cond) BUG_ON(cond)
^
include/linux/gfp.h:325:2: note: in expansion of macro ‘VM_BUG_ON’
VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES || !node_online(nid));
^
In file included from include/linux/elf.h:4:0,
from include/linux/module.h:14,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/elf.h: In function ‘elf_common_init’:
./arch/x86/include/asm/elf.h:177:3: error: ‘struct thread_struct’ has no member named ‘fs’
t->fs = t->gs = 0;
^
./arch/x86/include/asm/elf.h: At top level:
./arch/x86/include/asm/elf.h:367:1: error: requested alignment is not an integer constant
} ____cacheline_aligned;
^
In file included from include/linux/module.h:22:0,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/module.h:57:2: error: #error unknown processor family
#error unknown processor family
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/slab.h: In function ‘kmalloc_index’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/slab.h:308:2: note: in expansion of macro ‘BUG’
BUG();
^
In file included from include/linux/compat.h:12:0,
from include/linux/atm.h:8,
from drivers/usb/atm/usbatm.h:27,
from drivers/usb/atm/cxacru.c:43:
include/linux/sem.h: At top level:
include/linux/sem.h:14:5: error: requested alignment is not an integer constant
sem_perm; /* permissions .. see ipc.h */
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/bit_spinlock.h: In function ‘bit_spin_unlock’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/bit_spinlock.h:59:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!test_bit(bitnum, addr));
^
include/linux/bit_spinlock.h: In function ‘__bit_spin_unlock’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/bit_spinlock.h:76:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!test_bit(bitnum, addr));
^
include/linux/list_bl.h: In function ‘hlist_bl_set_first’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/list_bl.h:27:27: note: in expansion of macro ‘BUG_ON’
#define LIST_BL_BUG_ON(x) BUG_ON(x)
^
include/linux/list_bl.h:65:2: note: in expansion of macro ‘LIST_BL_BUG_ON’
LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/list_bl.h:27:27: note: in expansion of macro ‘BUG_ON’
#define LIST_BL_BUG_ON(x) BUG_ON(x)
^
include/linux/list_bl.h:66:2: note: in expansion of macro ‘LIST_BL_BUG_ON’
LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) !=
^
include/linux/list_bl.h: In function ‘__hlist_bl_del’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/list_bl.h:27:27: note: in expansion of macro ‘BUG_ON’
#define LIST_BL_BUG_ON(x) BUG_ON(x)
^
include/linux/list_bl.h:93:2: note: in expansion of macro ‘LIST_BL_BUG_ON’
LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK);
^
include/linux/rculist_bl.h: In function ‘hlist_bl_set_first_rcu’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/list_bl.h:27:27: note: in expansion of macro ‘BUG_ON’
#define LIST_BL_BUG_ON(x) BUG_ON(x)
^
include/linux/rculist_bl.h:13:2: note: in expansion of macro ‘LIST_BL_BUG_ON’
LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/list_bl.h:27:27: note: in expansion of macro ‘BUG_ON’
#define LIST_BL_BUG_ON(x) BUG_ON(x)
^
include/linux/rculist_bl.h:14:2: note: in expansion of macro ‘LIST_BL_BUG_ON’
LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) !=
^
In file included from include/linux/fs.h:8:0,
from include/linux/compat.h:15,
from include/linux/atm.h:8,
from drivers/usb/atm/usbatm.h:27,
from drivers/usb/atm/cxacru.c:43:
include/linux/dcache.h: At top level:
include/linux/dcache.h:163:1: error: requested alignment is not an integer constant
} ____cacheline_aligned;
^
In file included from include/linux/fs.h:13:0,
from include/linux/compat.h:15,
from include/linux/atm.h:8,
from drivers/usb/atm/usbatm.h:27,
from drivers/usb/atm/cxacru.c:43:
include/linux/list_lru.h:29:1: error: requested alignment is not an integer constant
} ____cacheline_aligned_in_smp;
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/radix-tree.h: In function ‘radix_tree_replace_slot’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/radix-tree.h:259:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(radix_tree_is_indirect_ptr(item));
^
include/linux/quota.h: In function ‘make_kqid’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/quota.h:108:3: note: in expansion of macro ‘BUG’
BUG();
^
include/linux/quota.h: In function ‘make_kqid_invalid’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/quota.h:135:3: note: in expansion of macro ‘BUG’
BUG();
^
In file included from include/linux/compat.h:15:0,
from include/linux/atm.h:8,
from drivers/usb/atm/usbatm.h:27,
from drivers/usb/atm/cxacru.c:43:
include/linux/fs.h: At top level:
include/linux/fs.h:1258:9: error: requested alignment is not an integer constant
struct list_lru s_dentry_lru ____cacheline_aligned_in_smp;
^
include/linux/fs.h:1259:9: error: requested alignment is not an integer constant
struct list_lru s_inode_lru ____cacheline_aligned_in_smp;
^
include/linux/fs.h:1523:1: error: requested alignment is not an integer constant
} ____cacheline_aligned;
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/fs.h: In function ‘i_readcount_dec’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/fs.h:2317:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!atomic_read(&inode->i_readcount));
^
include/linux/seccomp.h: In function ‘secure_computing_strict’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/seccomp.h:39:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(secure_computing(this_syscall) != 0);
^
In file included from include/linux/atmdev.h:8:0,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/linux/net.h: At top level:
include/linux/net.h:93:1: error: requested alignment is not an integer constant
} ____cacheline_aligned_in_smp;
^
In file included from include/linux/list.h:7:0,
from include/linux/module.h:9,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/pgtable.h: In function ‘pmd_page_vaddr’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page.h:54:48: note: in expansion of macro ‘PAGE_OFFSET’
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
^
./arch/x86/include/asm/pgtable.h:504:24: note: in expansion of macro ‘__va’
return (unsigned long)__va(pmd_val(pmd) & PTE_PFN_MASK);
^
./arch/x86/include/asm/pgtable.h: In function ‘pud_page_vaddr’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page.h:54:48: note: in expansion of macro ‘PAGE_OFFSET’
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
^
./arch/x86/include/asm/pgtable.h:577:24: note: in expansion of macro ‘__va’
return (unsigned long)__va((unsigned long)pud_val(pud) & PTE_PFN_MASK);
^
./arch/x86/include/asm/pgtable.h: In function ‘pgd_page_vaddr’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page.h:54:48: note: in expansion of macro ‘PAGE_OFFSET’
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
^
./arch/x86/include/asm/pgtable.h:617:24: note: in expansion of macro ‘__va’
return (unsigned long)__va((unsigned long)pgd_val(pgd) & PTE_PFN_MASK);
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/page-flags.h: In function ‘ClearPageCompound’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/page-flags.h:359:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!PageHead(page));
^
include/linux/page-flags.h: In function ‘PageTransHuge’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/page-flags.h:430:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(PageTail(page), page);
^
include/linux/page-flags.h: In function ‘PageSlabPfmemalloc’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/page-flags.h:478:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageSlab(page), page);
^
include/linux/page-flags.h: In function ‘SetPageSlabPfmemalloc’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/page-flags.h:484:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageSlab(page), page);
^
include/linux/page-flags.h: In function ‘__ClearPageSlabPfmemalloc’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/page-flags.h:490:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageSlab(page), page);
^
include/linux/page-flags.h: In function ‘ClearPageSlabPfmemalloc’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/page-flags.h:496:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageSlab(page), page);
^
include/linux/huge_mm.h: In function ‘pmd_trans_huge_lock’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/mmdebug.h:13:25: note: in expansion of macro ‘BUG_ON’
#define VM_BUG_ON(cond) BUG_ON(cond)
^
include/linux/huge_mm.h:139:2: note: in expansion of macro ‘VM_BUG_ON’
VM_BUG_ON(!rwsem_is_locked(&vma->vm_mm->mmap_sem));
^
include/linux/mm.h: In function ‘put_page_testzero’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:321:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(atomic_read(&page->_count) == 0, page);
^
include/linux/mm.h: In function ‘compound_lock’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:384:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(PageSlab(page), page);
^
include/linux/mm.h: In function ‘compound_unlock’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:392:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(PageSlab(page), page);
^
include/linux/mm.h: In function ‘compound_tail_refcounted’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:482:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageHead(page), page);
^
include/linux/mm.h: In function ‘get_huge_page_tail’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:491:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageTail(page), page);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:492:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(page_mapcount(page) < 0, page);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:493:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(atomic_read(&page->_count) != 0, page);
^
include/linux/mm.h: In function ‘get_page’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:509:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(atomic_read(&page->_count) <= 0, page);
^
In file included from ./arch/x86/include/asm/page.h:70:0,
from ./arch/x86/include/asm/thread_info.h:11,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/mm.h: In function ‘virt_to_head_page’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
include/asm-generic/memory_model.h:51:40: note: in definition of macro ‘__pfn_to_page’
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
./include/uapi/linux/const.h:20:18: note: in expansion of macro ‘__AC’
#define _AC(X,Y) __AC(X,Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:40:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/page.h:63:41: note: in expansion of macro ‘__pa’
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
^
include/linux/mm.h:515:22: note: in expansion of macro ‘virt_to_page’
struct page *page = virt_to_page(x);
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/mm.h: In function ‘__SetPageBuddy’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:546:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(atomic_read(&page->_mapcount) != -1, page);
^
include/linux/mm.h: In function ‘__ClearPageBuddy’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:552:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(!PageBuddy(page), page);
^
In file included from include/linux/list.h:7:0,
from include/linux/module.h:9,
from drivers/usb/atm/cxacru.c:32:
include/linux/mm.h: In function ‘lowmem_page_address’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page.h:54:48: note: in expansion of macro ‘PAGE_OFFSET’
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
^
include/linux/mm.h:914:9: note: in expansion of macro ‘__va’
return __va(PFN_PHYS(page_to_pfn(page)));
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/mm.h: In function ‘ptlock_init’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/mmdebug.h:18:4: note: in expansion of macro ‘BUG’
BUG(); \
^
include/linux/mm.h:1448:2: note: in expansion of macro ‘VM_BUG_ON_PAGE’
VM_BUG_ON_PAGE(*(unsigned long *)&page->ptl, page);
^
In file included from include/linux/list.h:7:0,
from include/linux/module.h:9,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/io.h: In function ‘virt_to_phys’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:40:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/io.h:114:9: note: in expansion of macro ‘__pa’
return __pa(address);
^
./arch/x86/include/asm/io.h: In function ‘phys_to_virt’:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page.h:54:48: note: in expansion of macro ‘PAGE_OFFSET’
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
^
./arch/x86/include/asm/io.h:132:9: note: in expansion of macro ‘__va’
return __va(address);
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/scatterlist.h: In function ‘sg_assign_page’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:65:2: note: in expansion of macro ‘BUG_ON’
BUG_ON((unsigned long) page & 0x03);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:67:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(sg->sg_magic != SG_MAGIC);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:68:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(sg_is_chain(sg));
^
include/linux/scatterlist.h: In function ‘sg_page’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:98:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(sg->sg_magic != SG_MAGIC);
^
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:99:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(sg_is_chain(sg));
^
include/linux/scatterlist.h: In function ‘sg_set_buf’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:115:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!virt_addr_valid(buf));
^
In file included from ./arch/x86/include/asm/page.h:70:0,
from ./arch/x86/include/asm/thread_info.h:11,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
include/asm-generic/memory_model.h:51:40: note: in definition of macro ‘__pfn_to_page’
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
./include/uapi/linux/const.h:20:18: note: in expansion of macro ‘__AC’
#define _AC(X,Y) __AC(X,Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:40:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/page.h:63:41: note: in expansion of macro ‘__pa’
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
^
include/linux/scatterlist.h:117:18: note: in expansion of macro ‘virt_to_page’
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/scatterlist.h: In function ‘sg_mark_end’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:168:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(sg->sg_magic != SG_MAGIC);
^
include/linux/scatterlist.h: In function ‘sg_unmark_end’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/scatterlist.h:188:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(sg->sg_magic != SG_MAGIC);
^
include/linux/dmaengine.h: In function ‘txd_chain’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/dmaengine.h:518:2: note: in expansion of macro ‘BUG’
BUG();
^
include/linux/dmaengine.h: In function ‘dma_maxpq’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/linux/dmaengine.h:886:2: note: in expansion of macro ‘BUG’
BUG();
^
include/linux/dma-attrs.h: In function ‘dma_set_attr’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/dma-attrs.h:54:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(attr >= DMA_ATTR_MAX);
^
include/linux/dma-attrs.h: In function ‘dma_get_attr’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/dma-attrs.h:67:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(attr >= DMA_ATTR_MAX);
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_single_attrs’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:19:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
In file included from ./arch/x86/include/asm/page.h:70:0,
from ./arch/x86/include/asm/thread_info.h:11,
from include/linux/thread_info.h:54,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
./arch/x86/include/asm/page_32_types.h:16:28: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
include/asm-generic/memory_model.h:51:40: note: in definition of macro ‘__pfn_to_page’
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
./include/uapi/linux/const.h:20:18: note: in expansion of macro ‘__AC’
#define _AC(X,Y) __AC(X,Y)
^
./arch/x86/include/asm/page_32_types.h:16:24: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_types.h:30:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:40:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/page.h:63:41: note: in expansion of macro ‘__pa’
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
^
include/asm-generic/dma-mapping-common.h:20:28: note: in expansion of macro ‘virt_to_page’
addr = ops->map_page(dev, virt_to_page(ptr),
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_single_attrs’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:36:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:52:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_sg_attrs’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:65:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:79:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:91:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_for_cpu’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:103:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_for_device’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:115:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_range_for_cpu’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:129:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_single_range_for_device’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:143:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_sg_for_cpu’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:155:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_sync_sg_for_device’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:167:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!valid_dma_direction(dir));
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_mmap_attrs’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:200:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!ops);
^
include/asm-generic/dma-mapping-common.h: In function ‘dma_get_sgtable_attrs’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/asm-generic/dma-mapping-common.h:225:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!ops);
^
include/linux/skbuff.h: In function ‘skb_queue_next’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:949:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(skb_queue_is_last(list, skb));
^
include/linux/skbuff.h: In function ‘skb_queue_prev’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:967:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(skb_queue_is_first(list, skb));
^
include/linux/skbuff.h: In function ‘skb_header_release’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:1042:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(skb->nohdr);
^
include/linux/skbuff.h: In function ‘__skb_put’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:1524:33: note: in expansion of macro ‘BUG_ON’
#define SKB_LINEAR_ASSERT(skb) BUG_ON(skb_is_nonlinear(skb))
^
include/linux/skbuff.h:1569:2: note: in expansion of macro ‘SKB_LINEAR_ASSERT’
SKB_LINEAR_ASSERT(skb);
^
include/linux/skbuff.h: In function ‘__skb_pull’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:1587:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(skb->len < skb->data_len);
^
include/linux/skbuff.h: In function ‘pskb_trim_unique’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:1956:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(err);
^
include/linux/skbuff.h: In function ‘skb_orphan’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/skbuff.h:1974:3: note: in expansion of macro ‘BUG_ON’
BUG_ON(skb->sk);
^
In file included from include/linux/irq.h:372:0,
from ./arch/x86/include/asm/hardirq.h:5,
from include/linux/hardirq.h:8,
from include/net/sock.h:43,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/linux/irqdesc.h: At top level:
include/linux/irqdesc.h:77:1: error: requested alignment is not an integer constant
} ____cacheline_internodealigned_in_smp;
^
In file included from include/linux/hardirq.h:8:0,
from include/net/sock.h:43,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
./arch/x86/include/asm/hardirq.h:39:1: error: requested alignment is not an integer constant
} ____cacheline_aligned irq_cpustat_t;
^
./arch/x86/include/asm/hardirq.h:41:1: error: requested alignment is not an integer constant
DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
^
In file included from include/linux/netdevice.h:40:0,
from include/net/sock.h:51,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/linux/dynamic_queue_limits.h:48:2: error: requested alignment is not an integer constant
unsigned int limit ____cacheline_aligned_in_smp; /* Current limit */
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/dynamic_queue_limits.h: In function ‘dql_queued’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/dynamic_queue_limits.h:74:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(count > DQL_MAX_OBJECT);
^
In file included from include/net/netns/ipv4.h:9:0,
from include/net/net_namespace.h:17,
from include/linux/netdevice.h:43,
from include/net/sock.h:51,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/net/inet_frag.h: At top level:
include/net/inet_frag.h:14:9: error: requested alignment is not an integer constant
struct percpu_counter mem ____cacheline_aligned_in_smp;
^
include/net/inet_frag.h:64:2: error: requested alignment is not an integer constant
rwlock_t lock ____cacheline_aligned_in_smp;
^
In file included from include/net/netns/ipv6.h:9:0,
from include/net/net_namespace.h:18,
from include/linux/netdevice.h:43,
from include/net/sock.h:51,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/net/dst_ops.h:39:9: error: requested alignment is not an integer constant
struct percpu_counter pcpuc_entries ____cacheline_aligned_in_smp;
^
In file included from include/net/flowcache.h:4:0,
from include/net/netns/xfrm.h:9,
from include/net/net_namespace.h:28,
from include/linux/netdevice.h:43,
from include/net/sock.h:51,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/linux/interrupt.h:118:1: error: requested alignment is not an integer constant
} ____cacheline_internodealigned_in_smp;
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/seq_file.h: In function ‘seq_get_buf’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/seq_file.h:55:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(m->count > m->size);
^
include/linux/seq_file.h: In function ‘seq_commit’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/seq_file.h:78:3: note: in expansion of macro ‘BUG_ON’
BUG_ON(m->count + num > m->size);
^
include/linux/netdevice.h: In function ‘napi_enable’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/netdevice.h:492:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!test_bit(NAPI_STATE_SCHED, &n->state));
^
In file included from include/net/sock.h:51:0,
from include/linux/atmdev.h:12,
from drivers/usb/atm/usbatm.h:28,
from drivers/usb/atm/cxacru.c:43:
include/linux/netdevice.h: At top level:
include/linux/netdevice.h:557:2: error: requested alignment is not an integer constant
spinlock_t _xmit_lock ____cacheline_aligned_in_smp;
^
include/linux/netdevice.h:575:1: error: requested alignment is not an integer constant
} ____cacheline_aligned_in_smp;
^
include/linux/netdevice.h:678:1: error: requested alignment is not an integer constant
} ____cacheline_aligned_in_smp;
^
include/linux/netdevice.h:1438:9: error: requested alignment is not an integer constant
struct netdev_queue *_tx ____cacheline_aligned_in_smp;
^
include/linux/netdevice.h:2108:9: error: requested alignment is not an integer constant
struct call_single_data csd ____cacheline_aligned_in_smp;
^
In file included from include/asm-generic/percpu.h:6:0,
from ./arch/x86/include/asm/percpu.h:523,
from ./arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/netdevice.h:2138:32: error: requested alignment is not an integer constant
DECLARE_PER_CPU_ALIGNED(struct softnet_data, softnet_data);
^
include/linux/percpu-defs.h:66:38: note: in definition of macro ‘DECLARE_PER_CPU_SECTION’
extern __PCPU_ATTRS(sec) __typeof__(type) name
^
include/linux/netdevice.h:2138:1: note: in expansion of macro ‘DECLARE_PER_CPU_ALIGNED’
DECLARE_PER_CPU_ALIGNED(struct softnet_data, softnet_data);
^
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from ./arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/usb/atm/cxacru.c:32:
include/linux/netdevice.h: In function ‘get_netdev_rx_queue_index’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/netdevice.h:2541:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(index >= dev->num_rx_queues);
^
include/linux/filter.h: In function ‘bpf_anc_helper’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/filter.h:378:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(ftest->code & BPF_ANC);
^
include/net/dst.h: In function ‘dst_metrics_write_ptr’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/net/dst.h:141:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(!p);
^
include/linux/atmdev.h: In function ‘atm_dev_put’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
include/linux/atmdev.h:271:3: note: in expansion of macro ‘BUG_ON’
BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags));
^
drivers/usb/atm/cxacru.c: In function ‘cxacru_unbind’:
./arch/x86/include/asm/bug.h:23:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct bug_entry’
"i" (sizeof(struct bug_entry))); \
^
include/asm-generic/bug.h:55:57: note: in expansion of macro ‘BUG’
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
^
drivers/usb/atm/cxacru.c:1238:2: note: in expansion of macro ‘BUG_ON’
BUG_ON(instance->poll_state == CXPOLL_SHUTDOWN);
^
cc1: some warnings being treated as errors
make[2]: *** [drivers/usb/atm/cxacru.o] Error 1
make[1]: *** [drivers/usb/atm] Error 2
make: *** [_module_drivers/usb] Error 2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Build Errors when building usb directory
2014-07-18 17:45 Build Errors when building usb directory Nick Krause
@ 2014-07-18 18:10 ` Randy Dunlap
2014-07-18 19:59 ` Nick Krause
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2014-07-18 18:10 UTC (permalink / raw)
To: Nick Krause, Greg KH; +Cc: linux-usb, linux-kernel@vger.kernel.org
On 07/18/2014 10:45 AM, Nick Krause wrote:
> Hey Greg and others,
> When I built the usb directory today to check a patch I am also
> sending to. I seem to hitting
> a few compiler errors and a lot of warnings. I am going to attach a
> file of my log of this build.
> Cheers Nick
>
Hi,
What command(s) did you use to build the usb directory?
thanks,
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Build Errors when building usb directory
2014-07-18 18:10 ` Randy Dunlap
@ 2014-07-18 19:59 ` Nick Krause
2014-07-18 23:29 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Nick Krause @ 2014-07-18 19:59 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Greg KH, linux-usb, linux-kernel@vger.kernel.org
On Fri, Jul 18, 2014 at 2:10 PM, Randy Dunlap <rdunlap@infradead.org> wrote:
> On 07/18/2014 10:45 AM, Nick Krause wrote:
>> Hey Greg and others,
>> When I built the usb directory today to check a patch I am also
>> sending to. I seem to hitting
>> a few compiler errors and a lot of warnings. I am going to attach a
>> file of my log of this build.
>> Cheers Nick
>>
>
> Hi,
>
> What command(s) did you use to build the usb directory?
>
> thanks,
> --
> ~Randy
I used make M=drivers/usb to build it.
Cheers Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Build Errors when building usb directory
2014-07-18 19:59 ` Nick Krause
@ 2014-07-18 23:29 ` Randy Dunlap
2014-07-19 2:12 ` Nick Krause
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2014-07-18 23:29 UTC (permalink / raw)
To: Nick Krause; +Cc: Greg KH, linux-usb, linux-kernel@vger.kernel.org
On 07/18/2014 12:59 PM, Nick Krause wrote:
> On Fri, Jul 18, 2014 at 2:10 PM, Randy Dunlap <rdunlap@infradead.org> wrote:
>> On 07/18/2014 10:45 AM, Nick Krause wrote:
>>> Hey Greg and others,
>>> When I built the usb directory today to check a patch I am also
>>> sending to. I seem to hitting
>>> a few compiler errors and a lot of warnings. I am going to attach a
>>> file of my log of this build.
>>> Cheers Nick
>>>
>>
>> Hi,
>>
>> What command(s) did you use to build the usb directory?
>>
>> thanks,
>> --
>> ~Randy
> I used make M=drivers/usb to build it.
> Cheers Nick
I'm not seeing any of these warnings, but I am testing 3.16-rc5.
Nick, are you using a current git tree? If so, which one?
You should always specify what kernel it is that you are testing.
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Build Errors when building usb directory
2014-07-18 23:29 ` Randy Dunlap
@ 2014-07-19 2:12 ` Nick Krause
0 siblings, 0 replies; 5+ messages in thread
From: Nick Krause @ 2014-07-19 2:12 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Greg KH, linux-usb, linux-kernel@vger.kernel.org
On Fri, Jul 18, 2014 at 7:29 PM, Randy Dunlap <rdunlap@infradead.org> wrote:
> On 07/18/2014 12:59 PM, Nick Krause wrote:
>> On Fri, Jul 18, 2014 at 2:10 PM, Randy Dunlap <rdunlap@infradead.org> wrote:
>>> On 07/18/2014 10:45 AM, Nick Krause wrote:
>>>> Hey Greg and others,
>>>> When I built the usb directory today to check a patch I am also
>>>> sending to. I seem to hitting
>>>> a few compiler errors and a lot of warnings. I am going to attach a
>>>> file of my log of this build.
>>>> Cheers Nick
>>>>
>>>
>>> Hi,
>>>
>>> What command(s) did you use to build the usb directory?
>>>
>>> thanks,
>>> --
>>> ~Randy
>> I used make M=drivers/usb to build it.
>> Cheers Nick
>
>
> I'm not seeing any of these warnings, but I am testing 3.16-rc5.
>
> Nick, are you using a current git tree? If so, which one?
> You should always specify what kernel it is that you are testing.
>
>
> --
> ~Randy
This is the lastest commit idea on my
tree,f83971912231fe5390d2357442b6c25bb8076d9b.
Cheers Nick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-19 2:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 17:45 Build Errors when building usb directory Nick Krause
2014-07-18 18:10 ` Randy Dunlap
2014-07-18 19:59 ` Nick Krause
2014-07-18 23:29 ` Randy Dunlap
2014-07-19 2:12 ` Nick Krause
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox