public inbox for linux-sound@vger.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: linux-sound@vger.kernel.org
Cc: "Geoffrey D . Bennett" <g@b4.vu>
Subject: Re: [PATCH] ALSA: usb: fcp: Fix hwdep read ops argument
Date: Mon, 20 Jan 2025 08:39:32 +0100	[thread overview]
Message-ID: <87wmeqorwr.wl-tiwai@suse.de> (raw)
In-Reply-To: <20250119085357.17735-1-tiwai@suse.de>

On Sun, 19 Jan 2025 09:53:28 +0100,
Takashi Iwai wrote:
> 
> The hwdep read ops argument is long instead of ssize_t due to
> historical reason.  Fix the build error.
> 
> Fixes: 46757a3e7d50 ("ALSA: FCP: Add Focusrite Control Protocol driver")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501190536.A2CiOP0a-lkp@intel.com/
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
>  sound/usb/fcp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/usb/fcp.c b/sound/usb/fcp.c
> index 655e4f7338ed..eb6a5c1f9b21 100644
> --- a/sound/usb/fcp.c
> +++ b/sound/usb/fcp.c
> @@ -816,7 +816,7 @@ static int fcp_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
>  }
>  
>  static ssize_t fcp_hwdep_read(struct snd_hwdep *hw, char __user *buf,
> -			      ssize_t count, loff_t *offset)
> +			      long count, loff_t *offset)
>  {
>  	struct usb_mixer_interface *mixer = hw->private_data;
>  	struct fcp_data *private = mixer->private_data;

Gah, that wasn't enough, a few other ssize_t had to be replaced with
long.  Stephen already submitted the fix patch for linux-next, and
I'll take it instead.


Takashi

      reply	other threads:[~2025-01-20  7:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-19  8:53 [PATCH] ALSA: usb: fcp: Fix hwdep read ops argument Takashi Iwai
2025-01-20  7:39 ` Takashi Iwai [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=87wmeqorwr.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=g@b4.vu \
    --cc=linux-sound@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