Re: [PATCH 11/19] vsprintf: add new `%pA` format specifier

From
Nick Desaulniers <ndesaulniers@google.com>
Date
2021-12-06 19:52:25
Also in
linux-kbuild, lkml, rust-for-linux
Reply to
Greg Kroah-Hartman, 2021-12-06
On Mon, Dec 6, 2021 at 8:14 AM Greg Kroah-Hartman
[off-list ref] wrote:
On Mon, Dec 06, 2021 at 04:56:32PM +0100, Miguel Ojeda wrote:
quoted
On Mon, Dec 6, 2021 at 4:46 PM Greg Kroah-Hartman
[off-list ref] wrote:
quoted
That should be in a .h file somewhere.  Remember, don't put #ifdef in .c
files please.
Why not put #ifdef in .c files?
quoted
Will do, thanks for reviewing!
quoted
Same here, this should not be needed if you put it in a .h file
correctly.
I guess IS_ENABLED could be used in the .c code, but I don't see how
they could move the dispatch to rust_fmt_argument to a header without
moving the definition of pointer() to a header, which they probably
_cant_ do because it's noinline_for_stack.
quoted
This one is mimicking the `CONFIG_BLOCK` one (`case 'g'` a bit above)
-- but we can change it, of course.
That should be changed as well :)
Isn't the point to minimize code that's unused for certain configurations?

-- 
Thanks,
~Nick Desaulniers
Thread (36 messages) 36 messages, 7 authors, last reply 2022-01-17
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