From patchwork Sat Oct 7 21:38:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz Krzysztofik X-Patchwork-Id: 730327 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4E1CE95A6A for ; Sat, 7 Oct 2023 21:43:02 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A99617F4; Sat, 7 Oct 2023 23:42:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A99617F4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1696714979; bh=oVYIHfya+S9ymMNfXl+4W8tUu32ofHSq1laES2IezkU=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=PokpuBmXXnSNm14NiN2lBNBYPkEQ1bOvMgxjTTqoiTfq+zk6jVJpV/8XpC5KLntpx +DMlYla4FILthLshEwu/XYv4S9x79nB4YmfRTHURUFr74nqIKjCaltVjaZdxev6uKN AdZ5+gYfl2L/lwcQE7H5+lKKAY9dWWnwBR5XHORw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 94672F80552; Sat, 7 Oct 2023 23:42:08 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 82346F8047D; Sat, 7 Oct 2023 23:42:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0655BF8047D; Sat, 7 Oct 2023 23:38:46 +0200 (CEST) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2CFCBF801EB for ; Sat, 7 Oct 2023 23:38:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2CFCBF801EB Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=G6Qu3Wlp Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-534659061afso5499820a12.3 for ; Sat, 07 Oct 2023 14:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696714719; x=1697319519; darn=alsa-project.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+I/45KrjHN3ZeY3XR2SSNQX+9zJsoPF88BTVLY4S8EE=; b=G6Qu3WlpFTVaeNdRsbNjtv0VNINNh9iS7BpY9+lkvvmZakKt7AZrm35mqGsv7Qebpw WPiyU1z9nUjCpk1MdmX+A2ZYSSZZyjT90MYE5fiE87wRuPEsfvfmAH/TdMbNlhdVhSW4 ijz2UUKx6s53qvnTt4yPHu8GEcL6LYYyU0U2xOg5fc9M6xryQ45g5rlrPufByypB8OJL 5xvf0piwKUu+hYOKopEnI9jlgqEQaQrHmCA/k6Fx8Ef5B09cavP7eZD1/inssDZqWkeO IrwruK4VMo44G7EC3l3viRlRDPE+cXYbqdoLlky3TlrjBdkRCzeOA+fXpYSPOkAXkd3r aobQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696714719; x=1697319519; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+I/45KrjHN3ZeY3XR2SSNQX+9zJsoPF88BTVLY4S8EE=; b=EMFL5lhA/BB/COZnaxcNZkTfdaNj00pYRQh5dWZWHonQluWU5OQBwWkhZcB8T4YBCc M9dvTNKtW5lE8PZouk8D4g/621t0iO5fWYxTAOoAMXhbfp+xvYnZyo5iPQ+WC7pqoE/s uQEHmLIz6RNQqA8zUWjJM/Or01mKtkj0Llfh3mbJKGy8OUY4Sssj2ChhWsRzwXuCKHy/ 03Qqn13BT/q1iQYH1GbfmhbsJCj9w2LFubHIAaY9V/DK3ZGrrN8Kb6IZ13rMZ6uqinvg 5pU2CmayQQlgfj0kcNVpca+3ABi9HjPxWKdaAOto+/+2Ou4E1baEfF9BC2Qh16MeGG2e H7Bw== X-Gm-Message-State: AOJu0YzzZrHJNAo9wT2kTzh4Fi4qcBYoznVIITdHnM8zqsgYh09gWQDi Me4NL6al66D7Ucqq8MLsecI= X-Google-Smtp-Source: AGHT+IEm65+9UiTL7QBI6KanJVCoMNLDB1gai1TEEGtv70vmFAuFPNm7Zmwz6Sd2yjaWzE3L7L+Z1Q== X-Received: by 2002:aa7:dac3:0:b0:52b:d169:b382 with SMTP id x3-20020aa7dac3000000b0052bd169b382mr9888941eds.29.1696714718736; Sat, 07 Oct 2023 14:38:38 -0700 (PDT) Received: from dell.intranet (77-255-201-154.dynamic.inetia.pl. [77.255.201.154]) by smtp.gmail.com with ESMTPSA id w15-20020aa7cb4f000000b0052a063e52b8sm4269087edt.83.2023.10.07.14.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 14:38:38 -0700 (PDT) From: Janusz Krzysztofik To: Peter Ujfalusi Cc: Liam Girdwood , Mark Brown , "Jiri Slaby (SUSE)" , Greg Kroah-Hartman , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: [PATCH] ASoC: ti: ams-delta: Fix cx81801_receive() argument types Date: Sat, 7 Oct 2023 23:38:18 +0200 Message-ID: <20231007213820.376360-1-jmkrzyszt@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Message-ID-Hash: TBTG55IPILOGX4AGNCDS332QKD5QPR6J X-Message-ID-Hash: TBTG55IPILOGX4AGNCDS332QKD5QPR6J X-MailFrom: jmkrzyszt@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Since types of arguments accepted by tty_ldis_ops::receive_buf() have changed, the driver no longer builds. .../linux/sound/soc/ti/ams-delta.c:403: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 *, 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=incompatible-pointer-types] 403 | .receive_buf = cx81801_receive, Fix it. Fixes: e8161447bb0c ("tty: make tty_ldisc_ops::*buf*() hooks operate on size_t") Fixes: 892bc209f250 ("tty: use u8 for flags") Signed-off-by: Janusz Krzysztofik Acked-by: Mark Brown --- sound/soc/ti/ams-delta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/ti/ams-delta.c b/sound/soc/ti/ams-delta.c index 371943350fdf..666057d50ea0 100644 --- a/sound/soc/ti/ams-delta.c +++ b/sound/soc/ti/ams-delta.c @@ -336,8 +336,8 @@ 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) +static void cx81801_receive(struct tty_struct *tty, const u8 *cp, const u8 *fp, + size_t count) { struct snd_soc_component *component = tty->disc_data; const unsigned char *c;