Tag: f765d1130700878c2275bc1ea09eed428f870a2a

rcu: Change return type to bool

Author: Nicholas Mc Guire <hofrat@osadl.org> Type-checking coccinelle spatches are being used to locate type mismatches between function signatures and return values in this case this produced: ./kernel/rcu/srcu.c:271 WARNING: return of wrong type int != unsigned long, srcu_readers_active() returns an int that is the sum of per_cpu unsigned long but the only user is cleanup_srcu_struct() which …

Continue reading