All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>,
	Dan Carpenter <dan.carpenter@linaro.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH 1/2] ASoC: ams-delta.c: fixup cx81801_receive() parameter
Date: Fri, 27 Oct 2023 00:09:41 +0000	[thread overview]
Message-ID: <87v8atq62i.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87wmv9q632.wl-kuninori.morimoto.gx@renesas.com>

This patch solves below compile error

	${LINUX}/sound/soc/ti/ams-delta.c:405:24: error: initialization\
	  of 'void (*)(struct tty_struct *, const u8 *, const u8 *,\
	  size_t)' {aka 'void (*)(struct tty_struct *, const unsigned\
	  char *, const unsigned char *, long unsigned int)'} from \
	  incompatible pointer type 'void (*)(struct tty_struct *,\
	  const u8 *, const char *, int)' {aka 'void (*)(struct\
	  tty_struct *, const unsigned char *, const char *, int)'}\
	  [-Werror=incompatibl e-pointer-types]
	  405 |         .receive_buf = cx81801_receive,
	      |                        ^~~~~~~~~~~~~~~

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/ti/ams-delta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/ti/ams-delta.c b/sound/soc/ti/ams-delta.c
index 687c1d969285..0c1ff65fcb86 100644
--- a/sound/soc/ti/ams-delta.c
+++ b/sound/soc/ti/ams-delta.c
@@ -337,7 +337,7 @@ static void cx81801_hangup(struct tty_struct *tty)
 
 /* Line discipline .receive_buf() */
 static void cx81801_receive(struct tty_struct *tty, const u8 *cp,
-		const char *fp, int count)
+		const u8 *fp, size_t count)
 {
 	struct snd_soc_component *component = tty->disc_data;
 	const unsigned char *c;
-- 
2.25.1


  reply	other threads:[~2023-10-27  0:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-27  0:09 [PATCH 0/2] ASoC: ams-delta.c: use component after check Kuninori Morimoto
2023-10-27  0:09 ` Kuninori Morimoto [this message]
2023-10-27  0:09 ` [PATCH 2/2] " Kuninori Morimoto
2023-10-27 22:54 ` (subset) [PATCH 0/2] " Mark Brown

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=87v8atq62i.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=dan.carpenter@linaro.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 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.