linux26-headers really should be running `make prepare` to setup the include/asm* files/directories/symlinks correctly in the case of some arches, a file is generated called asm/offsets.h (like hppa) or asm/asm_offsets.h (like x86/ia64) ... on some archs, symlinks are generated so that generic include paths can be used (like arm) ... on some archs this has gone unnoticed due to the fact that the file is very rarely used ... on other archs, we've implemented hacks to work around it (arm/hppa for example) ... at any rate, the hunk of the appcompat patch that applies to mod_devicetable.h prevents scripts/file2alias.c from compiling: HOSTCC scripts/file2alias.o scripts/file2alias.c:47: warning: "struct usb_device_id" declared inside parameter list scripts/file2alias.c:47: warning: its scope is only this definition or declaration, which is probably not what you want scripts/file2alias.c: In function `do_usb_entry': scripts/file2alias.c:49: error: dereferencing pointer to incomplete type <SNIP> this is because the file is compiled (on purpose) without defining __KERNEL__ and thus lacks all the pnp/usb/etc... structures that are defined in mod_devicetable.h ... one possible 'fix' is to patch file2alias.c slightly to define __KERNEL__ before including modpost.h ... however this leads to one conflict in the definition ofkernel_ulong_t since it is defined in both file2alias.c and mod_devicetable.h ... not sure what kind of impact removing the small hunk of code in file2alias.c will have though ...
Solution: Compile first, patch that file only afterwards. See how that goes...
that fix works for me :) tested on x86/hppa/arm/amd64 and all seem happy with this change
find new fix attached ... current fix breaks crossdev
Created attachment 35956 [details, diff] make-prepare.patch this fixes the file2alias.c file ... just stick it in with the current appCompat.patch
Created attachment 35957 [details, diff] new_mod_devicetable.h-hunk.patch new patch for mod_devicetable.h ... this is needed so the previous patch works ... just replace the current hunks that apply against mod_devicetable.h with this patch in appCompat.patch
It's in - thanks SpanKY!