mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: hanyu001@208suo.com
To: dlemoal@kernel.org
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: ata: libata-sff: "foo * const * bar" should be "foo * const *bar"
Date: Tue, 18 Jul 2023 16:32:53 +0800	[thread overview]
Message-ID: <c1103cc73a3cb587405dcc9326a583a5@208suo.com> (raw)
In-Reply-To: <tencent_3B346C373B06E62D90341667146D42B78209@qq.com>

This commit fixes the following checkpatch errors:

./drivers/ata/libata-sff.c:3145: ERROR: "foo * const * bar" should be 
"foo * const *bar"
./drivers/ata/libata-sff.c:3177: ERROR: "foo * const * bar" should be 
"foo * const *bar"

Signed-off-by: Yu Han <hanyu001@208suo.com>
---
  drivers/ata/libata-sff.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 9d28bad..54777b0 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -3142,7 +3142,7 @@ void ata_pci_bmdma_init(struct ata_host *host)
   *    0 on success, -errno otherwise.
   */
  int ata_pci_bmdma_prepare_host(struct pci_dev *pdev,
-                   const struct ata_port_info * const * ppi,
+                   const struct ata_port_info * const *ppi,
                     struct ata_host **r_host)
  {
      int rc;
@@ -3174,7 +3174,7 @@ int ata_pci_bmdma_prepare_host(struct pci_dev 
*pdev,
   *    Zero on success, negative on errno-based value on error.
   */
  int ata_pci_bmdma_init_one(struct pci_dev *pdev,
-               const struct ata_port_info * const * ppi,
+               const struct ata_port_info * const *ppi,
                 const struct scsi_host_template *sht, void *host_priv,
                 int hflags)
  {

           reply	other threads:[~2023-07-18  8:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_3B346C373B06E62D90341667146D42B78209@qq.com>]

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=c1103cc73a3cb587405dcc9326a583a5@208suo.com \
    --to=hanyu001@208suo.com \
    --cc=dlemoal@kernel.org \
    --cc=linux-ide@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

all inboxes | Powered by JetHome®