Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1150152rdb; Sat, 7 Oct 2023 14:38:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/7sQImKSmoR+KuMPlyF/WL3csdvGHWXOexAlLaJ6sEECJIPteF8t25RiA3xmBTmPuCUKy X-Received: by 2002:a0d:ca4a:0:b0:58d:70b4:233a with SMTP id m71-20020a0dca4a000000b0058d70b4233amr12456925ywd.37.1696714735403; Sat, 07 Oct 2023 14:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696714735; cv=none; d=google.com; s=arc-20160816; b=GWOWbLk7RqamNnqemXY8Y+a7zYPBvd1NB0w+i7EH7L5D14pFX1nc1U96ajhbkEcaEJ 3UrKr0OARq2QboOrlqRW2Ozj8+zCb45FAK3Anl+G92YQx7AWaZ7JmPmrZtQRgTokRZPR IdVbWbDITRn52Vd40N7JCieyV7rEnvQGHSAJTUoAJsjXtEAJcMQhPQ4l7Mf+B+ircb2K n8FIg+we+rYwjWwOzhPwh0JWP8zDwIgqns7V07oVl/kEy4upeWYKUlU1pt0xN6lZRWot eAWo+7XYK3bkvOUn3hRD+CqH+j2Fovi4Y9OEhYEg6BHpsVkuNRlT4t1EQlORQlXuzdm+ 6/6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+I/45KrjHN3ZeY3XR2SSNQX+9zJsoPF88BTVLY4S8EE=; fh=T4oJplA6Qpqt1sp2f1OEVmnpzRJoQjdrhNrHrOLto+k=; b=Ijcyr4FeIzYEWxNwfGiIGqE5W6MuQwLznuqMxR0DhYm7D/eA4DfdD0Bcr/IF3mYJ6p 24VA2OdHWzwyHnXBN8NBJbxdG6ZYMHd5uugAPm2I+SYO1aV378dS1JJQiBTDsQps0gMi KIWXxa9mcZre2FF5kQUMKJbGRHpxg3dfQILD9m7OfM6CXJfypu3HAOrwuBl8oaXBnkry MwqXIZfZSajAsz/zG6/oI9JisDWvUhxR1l5oBvvBIL96zm6fJuBU0uSG6p30aTI4IrhK Yn+sE/a+QNIF6b3KspqLNMUHEqjKvMujWopGn3/NhSs1tY4EqyfK2aeKl7zyeDCpaECm Dxsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Sw+q1/2x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ji17-20020a170903325100b001c74f2d8980si6296146plb.160.2023.10.07.14.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 14:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Sw+q1/2x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1BCC4804AD2A; Sat, 7 Oct 2023 14:38:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344177AbjJGVin (ORCPT + 99 others); Sat, 7 Oct 2023 17:38:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344151AbjJGVil (ORCPT ); Sat, 7 Oct 2023 17:38:41 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD74C93 for ; Sat, 7 Oct 2023 14:38:40 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5347e657a11so5518048a12.2 for ; Sat, 07 Oct 2023 14:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696714719; x=1697319519; darn=vger.kernel.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=Sw+q1/2x1HYyQr99wb1xt3xZSF7eMDlxzvo6EDz60hMXvCHOm4jCFl+v+/a4mBN5jZ z6OKO9C+4rsTsHXDhtmNywlyQ4OOgyy1vKzl4hhxJjG/zP4cZgojQT7qPwJfhk3+l9yY H7l49XSK6/h2sVZ6PbDR7Fd4J3pEN1jQiyqmYemZPd+sgNFrzDohDrFt4f3AnAjJF4VZ fJTbhWkdoX7BBw/qKYXTeQYPZyZ50/VSZj6WpHGjFvbnDmQJJjABaaLcfxtT3nSCvs46 Cnh/MBAyIqyA5JHp6KyZty5571NHTKhZah1mgUHQ9Fq3m9sq9U8ZUcb/6UsAO8p/dr9P HWpw== 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=hY6cEEYAWidKY0jo8d/Wewv3EB+IB9PBanbiS2fqGMesGQ3AebjheCv5TwmkbZYEli sN4NYLmic2QHuyUBWuWBlCqUEy8HVQx1vHA2Qm6rzXRcFq4bDJpCWfQsTymPcWQdYj42 Nn2OSmzdm6btCEFLAVmVuGWB/RF7L+soulisgMX9Zk/It4bqFvrLVSwfTx8QAL5EI+vK T/72XU6u4ca1JsoQIufy/maVcjCkr1I+RPiMlv+H53KJf1zeaOyqgv2uV/fV6gaEmixb 9Kp1S4+U/YZ8SbshHrzGOaxgNAOKL6tB+DzJrxnw7v+ga7ZfbNWDvV1eIvpXEJse3D6H EDgg== X-Gm-Message-State: AOJu0Yxr1KAaXUdyn+2kkB+5P99NMIqfs/r7fl4z3+rPRA8kpoK9ieKK 5qz/NxZdL3kD7NqlXGTc0SM= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=4.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 07 Oct 2023 14:38:53 -0700 (PDT) X-Spam-Level: *** 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 --- 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; -- 2.42.0