Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

intel_th: remove usage of the deprecated ida_simple_xx() API

ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().

This is less verbose.

Link: https://lkml.kernel.org/r/2aca50a9d061faecfd4ded80b5874cd3be9b855d.1713086613.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Christophe JAILLET and committed by
Andrew Morton
0f373e6d 4a458576

+3 -3
+3 -3
drivers/hwtracing/intel_th/core.c
··· 871 871 if (!th) 872 872 return ERR_PTR(-ENOMEM); 873 873 874 - th->id = ida_simple_get(&intel_th_ida, 0, 0, GFP_KERNEL); 874 + th->id = ida_alloc(&intel_th_ida, GFP_KERNEL); 875 875 if (th->id < 0) { 876 876 err = th->id; 877 877 goto err_alloc; ··· 931 931 "intel_th/output"); 932 932 933 933 err_ida: 934 - ida_simple_remove(&intel_th_ida, th->id); 934 + ida_free(&intel_th_ida, th->id); 935 935 936 936 err_alloc: 937 937 kfree(th); ··· 964 964 __unregister_chrdev(th->major, 0, TH_POSSIBLE_OUTPUTS, 965 965 "intel_th/output"); 966 966 967 - ida_simple_remove(&intel_th_ida, th->id); 967 + ida_free(&intel_th_ida, th->id); 968 968 969 969 kfree(th); 970 970 }