|
@@ -1035,7 +1035,7 @@ int __kprobes register_kretprobe(struct kretprobe *rp)
|
|
|
/* Pre-allocate memory for max kretprobe instances */
|
|
|
if (rp->maxactive <= 0) {
|
|
|
#ifdef CONFIG_PREEMPT
|
|
|
- rp->maxactive = max(10, 2 * num_possible_cpus());
|
|
|
+ rp->maxactive = max_t(unsigned int, 10, 2*num_possible_cpus());
|
|
|
#else
|
|
|
rp->maxactive = num_possible_cpus();
|
|
|
#endif
|