On Tue, 28 Jun 2016 22:50:55 +0200
Rasmus Villemoes <li...@rasmusvillemoes.dk> wrote:

> On Tue, Jun 28 2016, Emese Revfy <re.em...@gmail.com> wrote: 
> > diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h
> > index 6f96247..4cdf266 100644
> > --- a/include/asm-generic/bug.h
> > +++ b/include/asm-generic/bug.h
> > @@ -62,13 +62,13 @@ struct bug_entry {
> >   * to provide better diagnostics.
> >   */
> >  #ifndef __WARN_TAINT
> > -extern __printf(3, 4)
> > +extern __printf(3, 4) __nocapture(1, 3, 4)
> >  void warn_slowpath_fmt(const char *file, const int line,
> >                    const char *fmt, ...);
> > -extern __printf(4, 5)
> > +extern __printf(4, 5) __nocapture(1, 4, 5)
> >  void warn_slowpath_fmt_taint(const char *file, const int line, unsigned 
> > taint,
> >                          const char *fmt, ...);
> 
> The 3,4 and 4,5 parts seem redundant when __printf automatically supplies 
> those.

Thanks, I'll fix them in the next patch set.

-- 
Emese

Reply via email to