On 06/07/2019 05:33 PM, Stephen Rothwell wrote: > Hi Anshuman, > > On Fri, 7 Jun 2019 16:04:15 +0530 Anshuman Khandual > <anshuman.khand...@arm.com> wrote: >> >> +static nokprobe_inline bool kprobe_page_fault(struct pt_regs *regs, >> + unsigned int trap) >> +{ >> + int ret = 0; >> + >> + /* >> + * To be potentially processing a kprobe fault and to be allowed >> + * to call kprobe_running(), we have to be non-preemptible. >> + */ >> + if (kprobes_built_in() && !preemptible() && !user_mode(regs)) { >> + if (kprobe_running() && kprobe_fault_handler(regs, trap)) >> + ret = 1; >> + } >> + return ret; >> +} > > Since this is now declared as "bool" (thanks for that), you should make > "ret" be bool and use true and false; Sure, done.
- [RFC V3] mm: Generalize and rename notify_page_fault() a... Anshuman Khandual
- Re: [RFC V3] mm: Generalize and rename notify_page_... Stephen Rothwell
- Re: [RFC V3] mm: Generalize and rename notify_p... Anshuman Khandual
- Re: [RFC V3] mm: Generalize and rename notify_page_... Dave Hansen
- Re: [RFC V3] mm: Generalize and rename notify_p... Anshuman Khandual
- Re: [RFC V3] mm: Generalize and rename notify_page_... Christophe Leroy
- Re: [RFC V3] mm: Generalize and rename notify_p... Anshuman Khandual
- Re: [RFC V3] mm: Generalize and rename noti... Leonardo Bras
- Re: [RFC V3] mm: Generalize and rename ... Anshuman Khandual
- Re: [RFC V3] mm: Generalize and re... Leonardo Bras
- Re: [RFC V3] mm: Generalize and rename noti... Christophe Leroy
- Re: [RFC V3] mm: Generalize and rename ... Anshuman Khandual
- Re: [RFC V3] mm: Generalize and rename notify_page_... Matthew Wilcox