From: Alex Williamson <alex.williamson@redhat.com>
To: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: kernel-janitors@vger.kernel.org, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 9/9] vfio-pci: constify pci_error_handlers structures
Date: Thu, 19 Nov 2015 16:55:25 -0700 [thread overview]
Message-ID: <1447977325.4697.212.camel@redhat.com> (raw)
In-Reply-To: <1447495621-9161-10-git-send-email-Julia.Lawall@lip6.fr>
On Sat, 2015-11-14 at 11:07 +0100, Julia Lawall wrote:
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>
> ---
> There are no dependencies between these patches.
>
> drivers/vfio/pci/vfio_pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
> index 32b88bd..2760a7b 100644
> --- a/drivers/vfio/pci/vfio_pci.c
> +++ b/drivers/vfio/pci/vfio_pci.c
> @@ -1035,7 +1035,7 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev,
> return PCI_ERS_RESULT_CAN_RECOVER;
> }
>
> -static struct pci_error_handlers vfio_err_handlers = {
> +static const struct pci_error_handlers vfio_err_handlers = {
> .error_detected = vfio_pci_aer_err_detected,
> };
>
>
Thank you! I'll queue this one in my tree.
Alex
prev parent reply other threads:[~2015-11-19 23:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-14 10:06 [PATCH 0/9] constify pci_error_handlers structures Julia Lawall
2015-11-14 10:06 ` [PATCH 1/9] net: cavium: liquidio: " Julia Lawall
2015-11-16 20:07 ` David Miller
2015-11-14 10:06 ` [PATCH 2/9] GenWQE: " Julia Lawall
2015-11-14 10:06 ` [PATCH 3/9] cxgb4/cxgb4vf/csiostor: " Julia Lawall
2015-11-14 10:06 ` [PATCH 4/9] bfa: " Julia Lawall
2015-11-14 10:06 ` [PATCH 5/9] sfc: " Julia Lawall
2015-11-16 20:07 ` David Miller
2015-11-14 10:06 ` [PATCH 6/9] be2iscsi: " Julia Lawall
2015-11-14 10:06 ` [PATCH 7/9] crypto: " Julia Lawall
2015-11-17 14:09 ` Herbert Xu
2015-11-14 10:07 ` [PATCH 8/9] mpt3sas: " Julia Lawall
2015-11-14 10:07 ` [PATCH 9/9] vfio-pci: " Julia Lawall
2015-11-19 23:55 ` Alex Williamson [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=1447977325.4697.212.camel@redhat.com \
--to=alex.williamson@redhat.com \
--cc=Julia.Lawall@lip6.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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