/* Find the offset on the compressed stream given and index in the kallsyms array.  */
static unsigned int get_symbol_offset(unsigned long pos)
/* Find the offset on the compressed stream given and index in the kallsyms array.  */
static unsigned int get_symbol_offset(unsigned long pos)
{
	const u8 *name;
	int i;
	name = &kallsyms_names[kallsyms_markers[pos >> 8]];
	for (i = 0; i < (pos & 0xFF); i++)
		name = name + (*name) + 1;
	return name - kallsyms_names;
}