For the moment disable the VIMAGE_CTASSERTs as people have trouble
while developing and compiling with kernel options that change the size of at least one structure. The current kernel build framework does not allow us to pass -Dxxx to module builds so we would possibly need a kernel option to disable the checks and that might not work for people just building modules alone. For now they helped to identify possibly API problems and bring those back into minds of developers seeking for better solutions. Problems reported by: kib, warner Reviewed by: warner
This commit is contained in:
parent
5c0691d91a
commit
71712ed6a6
@ -224,6 +224,7 @@ void vnet_mod_register(const struct vnet_modinfo *);
|
||||
* But as CTASSERT_EQUAL() needs special compile time options, we
|
||||
* want the default case to be backed by CTASSERT().
|
||||
*/
|
||||
#if 0
|
||||
#ifndef VIMAGE_CTASSERT
|
||||
#ifdef VIMAGE_CHECK_SIZES
|
||||
#define VIMAGE_CTASSERT(x, y) \
|
||||
@ -234,5 +235,8 @@ void vnet_mod_register(const struct vnet_modinfo *);
|
||||
CTASSERT(x == 0 || x == y)
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#define VIMAGE_CTASSERT(x, y) struct __hack
|
||||
#endif
|
||||
|
||||
#endif /* !_SYS_VIMAGE_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user