at v6.19 16 lines 359 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#include <linux/types.h> 4 5struct primes { 6 struct rcu_head rcu; 7 unsigned long last, sz; 8 unsigned long primes[]; 9}; 10 11#if IS_ENABLED(CONFIG_PRIME_NUMBERS_KUNIT_TEST) 12typedef void (*primes_fn)(void *, const struct primes *); 13 14void with_primes(void *ctx, primes_fn fn); 15bool slow_is_prime_number(unsigned long x); 16#endif