On 22/5/23 14:41, Kambalin, Sergey wrote:

Could you please tell me what size is appropriate for a single patch?

The most important things for patch splitting are:
  * everything still has to compile cleanly
  * the contents of a single patch should be a coherent single
    thing that it makes sense to review in one part

If there's something in there that only touches 20 lines of
code but is a coherent single change, it's fine to have that in
its own patch -- small patches are easy to review.

At the upper end, I tend to think a patch is a bit big
at around 200 lines, but for the specific case of "here
is a new device" bigger than that is OK, because it's
just adding new files rather than merging changes into
existing ones.

https://www.qemu.org/docs/master/devel/submitting-a-patch.html <https://www.qemu.org/docs/master/devel/submitting-a-patch.html>
has some other advice on patch submission, if you haven't
read that yet.

FWIW example of series adding the Pi Zero:

https://lore.kernel.org/qemu-devel/20201024170127.3592182-1-f4...@amsat.org/


Reply via email to