[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241212.081639.1353664129364117890.fujita.tomonori@gmail.com>
Date: Thu, 12 Dec 2024 08:16:39 +0900 (JST)
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: chenhuacai@...nel.org
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,
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
Subject: Re: [PATCH v1 4/5] loongarch/bug: Add ARCH_WARN_ASM macro for
BUG/WARN asm code sharing with Rust
On Wed, 11 Dec 2024 16:41:42 +0800
Huacai Chen <chenhuacai@...nel.org> wrote:
>> +#ifdef CONFIG_DEBUG_BUGVERBOSE
>> +#define __BUG_LOCATION_STRING(file, line) \
>> + ".long " file "- .;" \
>> + ".short " line ";"
>> +#else
>> +#define __BUG_LOCATION_STRING(_file, _line)
>> +#endif
> Can we use file and line instead of _file and _line, which is the same
> as the CONFIG_DEBUG_BUGVERBOSE case?
Of course, I'll fix in v2. I should have done that.
>> +
>> +#define __BUG_ENTRY_STRING(file, line, flags) \
>> + __stringify(__BUG_ENTRY_START) \
>> + __BUG_LOCATION_STRING(file, line) \
>> + ".short " flags ";" \
>> + __stringify(__BUG_ENTRY_END)
>> +
>> +#define ARCH_WARN_ASM(file, line, flags, size) \
>> + __BUG_ENTRY_STRING(file, line, flags) \
>> + __stringify(break BRK_BUG) ";"
>> +
> Can we use the same indentation in this file?
Oops, I'll fix in v2.
Thanks!
Powered by blists - more mailing lists