During the installation of a new server, I faced the problem about installing the linux driver of Atheros Lan Driver.
It showed
kcompat.h:1561:error redefinition of 'struct napi_struct'
and stopped installation.
############# Solution ##############
I solved it by deleting some code in kcompat.h
the following were deleted
#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) )
/* NAPI API changes in 2.6.24 break everything */
struct napi_struct {
/* used to look up the real NAPI polling routine */
int (*poll)(struct napi_struct *, int);
int weight;
};
and
#endif /* _KCOMPAT_H_ */
WoW….thank you. It solved the problem ……… 🙂