Re: [PATCH 3/6] lib/pmu: reimplement per-arch ops as callbacks

2025-06-16 Thread Tomasz Duszynski
>16/06/2025 08:53, Tomasz Duszynski: >> +static inline int >> +pmu_arch_init(void) >> +{ >> + if (arch_ops && arch_ops->init) >> + return arch_ops->init(); > >These are not boolean values, please compare explicitly with NULL. Okay.

Re: [PATCH 3/6] lib/pmu: reimplement per-arch ops as callbacks

2025-06-16 Thread Thomas Monjalon
16/06/2025 08:53, Tomasz Duszynski: > +static inline int > +pmu_arch_init(void) > +{ > + if (arch_ops && arch_ops->init) > + return arch_ops->init(); These are not boolean values, please compare explicitly with NULL.