This patch adds SYM_BITFIELD and SYM_ENUM support to symbol_type(). Cc: Christopher Li <sparse@xxxxxxxxxxx> Cc: Jeff Garzik <jgarzik@xxxxxxxxxx> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- sparse-llvm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 5d1b79c..9f4586f 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -121,6 +121,8 @@ static LLVMTypeRef symbol_type(LLVMModuleRef module, struct symbol *sym) LLVMTypeRef ret = NULL; switch (sym->type) { + case SYM_BITFIELD: + case SYM_ENUM: case SYM_NODE: ret = symbol_type(module, sym->ctype.base_type); break; -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html