Re: [PATCH] jump_label: fix jump_label update

Xiao Guangrong
2011-06-20T18:56:13Z

On 06/20/2011 08:53 PM, Jiri Olsa wrote:

>> static void jump_label_update(struct jump_label_key *key, int enable)
>> {
>> - struct jump_entry *entry = key->entries;
>> + struct jump_entry *entry = key->entries, *stop = __stop___jump_table;
>> + struct module *mod = __module_address((jump_label_t)key);
>> +
>> + if (mod)
>> + stop = mod->jump_entries + mod->num_jump_entries;
> this breaks !CONFIG_MODULES compilation
>

I will fix it, thanks Jiri!