virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: "Juan José Arboleda" <soyjuanarbol@gmail.com>
To: Eugenio Perez Martin <eperezma@redhat.com>
Cc: virtualization@lists.linux.dev
Subject: Re: [PATCH] virtio: Fix various coding style issues
Date: Fri, 19 Jul 2024 17:17:53 -0500	[thread overview]
Message-ID: <ZprmEaNIiQk8Mkob@fedora> (raw)
In-Reply-To: <CAJaqyWfU0th74hJ3Vww6QXqewvSyOobgogT=Vt57M+HqaTZ0ig@mail.gmail.com>

> > -device_param_cb(device, &vm_cmdline_param_ops, NULL, S_IRUSR);
> > +device_param_cb(device, &vm_cmdline_param_ops, NULL, 0400);
> 
> What is this warning? It sounds more reasonable to me to go from
> hardcoded value to macro, am I missing something?

Hey! I believe that the hardcoded value seems better as well. I got the
warning from this:

./scripts/checkpatch.pl --file --terse drivers/virtio/virtio_mmio.c
...
drivers/virtio/virtio_mmio.c:802: WARNING: Symbolic permissions 'S_IRUSR' are
not preferred. Consider using octal permissions '0400'.
...

I can bring the 'S_IRUSR' again in a V2 patch if you prefer that.

> 
> The rest looks good to me.
> 
> Thanks!
> 

Thanks for taking the time to review!

Regards,
-Juan

      parent reply	other threads:[~2024-07-19 22:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-19  5:46 [PATCH] virtio: Fix various coding style issues Juan José Arboleda
2024-07-19 17:48 ` Eugenio Perez Martin
2024-07-19 18:11   ` Michael S. Tsirkin
2024-07-19 22:28     ` Juan José Arboleda
2024-07-24 14:01       ` Michael S. Tsirkin
2024-07-24 17:22         ` Juan José Arboleda
2024-07-25  6:02           ` Michael S. Tsirkin
2024-07-19 22:17   ` Juan José Arboleda [this message]

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=ZprmEaNIiQk8Mkob@fedora \
    --to=soyjuanarbol@gmail.com \
    --cc=eperezma@redhat.com \
    --cc=virtualization@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).