Linux block layer
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	linux-block@vger.kernel.org
Cc: Jens Axboe <axboe@kernel.dk>, Josh Law <objecting@objecting.org>,
	Kees Cook <kees@kernel.org>,
	Woradorn Laodhanadhaworn <woradorn.laon@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>,
	kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] block: partitions: Use seq_buf_putc() in cmdline_partition()
Date: Thu, 25 Jun 2026 14:18:49 +0200	[thread overview]
Message-ID: <7de415a7-457d-4dd2-aebb-8e179fa0bbcd@web.de> (raw)
In-Reply-To: <ajzkRM_RFKBpp0i5@ashevche-desk.local>

> 
>>  	cmdline_parts_set(parts, disk_size, state);
>>  	cmdline_parts_verifier(1, state);
> 
>> -
>> -	seq_buf_puts(&state->pp_buf, "\n");
>> -
>> +	seq_buf_putc(&state->pp_buf, '\n');
> 
> Why did you remove blank lines?
> 
>>  	return 1;
I imagine that this source code place can become a bit more succinct.

See also:
efi_partition()
https://elixir.bootlin.com/linux/v7.1.1/source/block/partitions/efi.c#L694-L756

Do you insist to preserve two blank lines here?

Regards,
Markus

  reply	other threads:[~2026-06-25 12:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25  8:08 [PATCH] block: partitions: Use seq_buf_putc() in cmdline_partition() Markus Elfring
2026-06-25  8:18 ` Andy Shevchenko
2026-06-25 12:18   ` Markus Elfring [this message]
2026-06-25 14:27     ` Andy Shevchenko
2026-06-26 16:48 ` Markus Elfring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7de415a7-457d-4dd2-aebb-8e179fa0bbcd@web.de \
    --to=markus.elfring@web.de \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=axboe@kernel.dk \
    --cc=kees@kernel.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=objecting@objecting.org \
    --cc=woradorn.laon@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox