Re: [PATCH v5 5/9] powerpc/mm/book3s64: Update tlb flush routines to take a page walk cache flush argument

From
Guenter Roeck <linux@roeck-us.net>
Date
2021-05-19 01:08:11
Also in
linux-mm
Reply to
Michael Ellerman, 2021-05-19
On 5/18/21 5:26 PM, Michael Ellerman wrote:
[ ... ]
quoted
quoted
That was the generic header change in the patch. I was commenting about the
ppc64 specific change causing build failures.
Ah, sorry. I wasn't aware that the following is valid C code

void f1()
{
      return f2();
      ^^^^^^
}

as long as f2() is void as well. Confusing, but we live and learn.
It might be valid, but it's still bad IMHO.

It's confusing to readers, and serves no useful purpose.
Agreed, but it is surprisingly wide-spread. Try to run the coccinelle
script below, just for fun. The script doesn't even catch instances
in include files, yet there are more than 450 hits.

Guenter

---
virtual report

@d@
identifier f;
expression e;
position p;
@@

void f(...)
{
<...
  return e@p;
...>
}

@script:python depends on report@
f << d.f;
p << d.p;
@@

print "void function %s:%s() with non-void return in line %s" % (p[0].file, f, p[0].line)
Thread (55 messages) 55 messages, 11 authors, last reply 2021-05-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help