Hi Chris, On 15 June 2017 at 05:19, Christopher Li <sparse@xxxxxxxxxxx> wrote: >> On Wed, Jun 14, 2017 at 10:25:59PM +0100, Dibyendu Majumdar wrote: >>> I am trying to understand what happens when multiple input files are >>> given to sparse. Are the symbols from previous files dropped when >>> sparse moves on to the next file? >>> >>> I see a call to remove_symbol_scope() in end_scope() implying that >>> symbols are dropped - but then I am not sure I am understanding this >>> correctly. > > Yes, remove_symbol_scope() just remove symbol from the hash table > link list. After removal, the symbol will not be able to found by > lookup_symbol() > again. > I notice also that in test_inspect there is the following: FOR_EACH_PTR_NOTAG(filelist, file) { struct symbol_list *syms = sparse(file); expand_symbols(syms); concat_symbol_list(syms, &view_syms); } END_FOR_EACH_PTR_NOTAG(file); Therefore if the symbols are dropped when the file scope ends, what is supposed to happen above? Thanks and Regards Dibyendu -- 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