[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250723.222343.803840555288624865.fujita.tomonori@gmail.com>
Date: Wed, 23 Jul 2025 22:23:43 +0900 (JST)
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: miguel.ojeda.sandonis@...il.com
Cc: fujita.tomonori@...il.com, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org, x86@...nel.org,
linux-riscv@...ts.infradead.org, linux-arm-kernel@...ts.infradead.org,
loongarch@...ts.linux.dev, tglx@...utronix.de, mingo@...hat.com,
bp@...en8.de, dave.hansen@...ux.intel.com, peterz@...radead.org,
hpa@...or.com, paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, catalin.marinas@....com, will@...nel.org,
chenhuacai@...nel.org, kernel@...0n.name, tangyouling@...ngson.cn,
hejinyang@...ngson.cn, yangtiezhu@...ngson.cn, ojeda@...nel.org,
alex.gaynor@...il.com, boqun.feng@...il.com, gary@...yguo.net,
bjorn3_gh@...tonmail.com, benno.lossin@...ton.me, a.hindborg@...nel.org,
aliceryhl@...gle.com, tmgross@...ch.edu, dakr@...nel.org
Subject: Re: [PATCH v6 0/4] rust: Add bug/warn abstractions
On Wed, 23 Jul 2025 11:52:04 +0200
Miguel Ojeda <miguel.ojeda.sandonis@...il.com> wrote:
>> The patch for arm64? I tried to minimize changes to the original code
>> so not intentional.
>
> The riscv one, i.e. from the range diff:
>
> @@ arch/riscv/include/asm/bug.h: typedef u32 bug_insn_t;
> "2:\n\t" \
> - __BUG_ENTRY "\n\t" \
> - ".org 2b + %3\n\t" \
> -- ".popsection" \
> + __BUG_ENTRY(file, line, flags) "\n\t" \
> + ".org 2b + " size "\n\t" \
> -+ ".popsection\n" \
> + ".popsection" \
> +
> +#define __BUG_FLAGS(flags) \
> +do { \
>
> If you look into the `.popsection` line, your patch adds a newline,
> but I guess it was not intentional. In x86 there is a newline after
> the directive, but there we have `extra` afterwards.
Oops, indeed it's not intentional.
> (I noticed since I went to expand the macros in a dummy file, given it
> can be something tricky to spot differences in the normal diff, but it
> is visible in the normal diff.)
>
>> Yeah, I followed the original code style.
>
> And here I meant (i.e. the first part of that paragraph) that:
>
> - "\t.org 2b+%c1\n" \
>
> now generated those two spaces around it:
>
> + "\t.org 2b + " size "\n" \
>
Ah, not intentional again.
Powered by blists - more mailing lists