[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <35FD53F367049845BC99AC72306C23D103E010D1827E@CNBJMBX05.corpusers.net>
Date: Fri, 31 Oct 2014 15:59:37 +0800
From: "Wang, Yalin" <Yalin.Wang@...ymobile.com>
To: 'Joe Perches' <joe@...ches.com>
CC: 'Will Deacon' <will.deacon@....com>,
'Ard Biesheuvel' <ard.biesheuvel@...aro.org>,
'Russell King - ARM Linux' <linux@....linux.org.uk>,
"'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
"'akinobu.mita@...il.com'" <akinobu.mita@...il.com>,
"'linux-mm@...ck.org'" <linux-mm@...ck.org>,
"'linux-arm-kernel@...ts.infradead.org'"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)
> From: Joe Perches [mailto:joe@...ches.com]
> > > > @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned
> int
> > > thread_flags, int syscall)
> > > > return restart;
> > > > }
> > > > syscall = 0;
> > > > - } else if (thread_flags & _TIF_UPROBE) {
> > > > - clear_thread_flag(TIF_UPROBE);
> > > > + } else if (thread_flags & _TIF_UPROBE)
> > > > uprobe_notify_resume(regs);
> > > > - } else {
> > > > + else {
> > > > clear_thread_flag(TIF_NOTIFY_RESUME);
> > > > tracehook_notify_resume(regs);
> > > > }
> > >
> > > Please keep the braces.
> >
> > mm.. could I know the reason ? :)
>
> Try read Documentation/CodingStyle
>
> Chapter 3: Placing Braces and Spaces
>
> use braces in both branches:
>
> if (condition) {
> do_this();
> do_that();
> } else {
> otherwise();
> }
>
Got it, I will resend one .
Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists