Re: [PATCH] scsi_debug: add support to corrupt data and/or reftag

Christoph Hellwig <[email protected]>
Newsgroups org.kernel.vger.linux-scsi
Message-ID <[email protected]>
On Wed, Aug 19, 2026 at 09:00:39AM -0700, Bart Van Assche wrote:
> On 8/18/26 11:58 PM, Christoph Hellwig wrote:
>> +static int corrupt_lbas(struct sdebug_dev_info *devip, u64 lba, u32 num,
>> +		u32 nr_bit_errors, s32 reftag_adjust);
>
> Can the corrupt_lbas() definition be moved here such that the forward
> declaration of this function can be removed?

Not without reordering the entire file unfortunately.  It depends
on various helpers further down the file, while the debugfs registration
happens further up.  I've tried a few approaches to sort this out,
but failed to come up with something simple enough.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.