All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ben Dooks" <ben.dooks@codethink.co.uk>
Cc: Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH] usb: dwc3: imx8mp: make dwc3_imx_glue_ops static and rename to imx8mp
Date: Tue, 23 Jun 2026 10:09:59 +0000	[thread overview]
Message-ID: <20260623101000.A98F71F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260623100554.735080-1-ben.dooks@codethink.co.uk>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The keyword `static` is misspelled as `statc`, causing a compilation syntax error.
- [Low] The struct is initialized with the undeclared function `dwc3_imx8mp_pre_set_role`.
--

commit 7c7aefb84ba9dd8d7379b9aae197107a91b20ee1
Author: Ben Dooks <ben.dooks@codethink.co.uk>

usb: dwc3: imx8mp: make dwc3_imx_glue_ops static and rename to imx8mp

This commit makes the dwc3_imx_glue_ops structure static to resolve a missing
declaration warning. It also renames the structure to dwc3_imx8mp_glue_ops to
distinguish it from other drivers.

> diff --git a/drivers/usb/dwc3/dwc3-imx8mp.c b/drivers/usb/dwc3/dwc3-imx8mp.c
> --- a/drivers/usb/dwc3/dwc3-imx8mp.c
> +++ b/drivers/usb/dwc3/dwc3-imx8mp.c
> @@ -173,8 +173,8 @@ static void dwc3_imx_pre_set_role(struct dwc3 *dwc, enum usb_role role)
>  		pm_runtime_use_autosuspend(dwc->dev);
>  }
>  
> -struct dwc3_glue_ops dwc3_imx_glue_ops = {
> -	.pre_set_role   = dwc3_imx_pre_set_role,
> +statc struct dwc3_glue_ops dwc3_imx8mp_glue_ops = {

[Severity: Low]
Does this cause a compilation error? It looks like the static keyword is
misspelled as statc here.

> +	.pre_set_role   = dwc3_imx8mp_pre_set_role,

[Severity: Low]
Will this initialization also fail to compile? The structure is pointing to
dwc3_imx8mp_pre_set_role, but earlier in the file the function remains named
dwc3_imx_pre_set_role:

static void dwc3_imx_pre_set_role(struct dwc3 *dwc, enum usb_role role)
{
        ...

It seems the function renaming might have been left out of this patch.

>  };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260623100554.735080-1-ben.dooks@codethink.co.uk?part=1

      parent reply	other threads:[~2026-06-23 10:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23 10:05 [PATCH] usb: dwc3: imx8mp: make dwc3_imx_glue_ops static and rename to imx8mp Ben Dooks
2026-06-23 10:07 ` Ahmad Fatoum
2026-06-23 10:11   ` Ben Dooks
2026-06-23 10:09 ` sashiko-bot [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=20260623101000.A98F71F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=ben.dooks@codethink.co.uk \
    --cc=imx@lists.linux.dev \
    --cc=sashiko-reviews@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.