Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1705965rdb; Sun, 8 Oct 2023 23:04:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDqmjMQ51D+++IMj5M0sdkLlkxA0FQ5cPljhTyXrJZQRz9H0U9XiVSh/sMikAUiUJyLVLa X-Received: by 2002:a05:6a21:181:b0:15e:dca8:1224 with SMTP id le1-20020a056a21018100b0015edca81224mr14550109pzb.55.1696831493073; Sun, 08 Oct 2023 23:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696831493; cv=none; d=google.com; s=arc-20160816; b=FCE0f7VbDT21PJeJflQ7yJ2h5Na1UzWUt9YAXyM3XGXM5ikK17Q8M4xfnX3OULYX4L O9ns+jrb8ZRcb2f0G5DYpqD82ZprhDeNHlHgPMAAnda8nZVtGqbwLQQftQOG1QC0skZd XBYrfF0j0ATZ2UW1V8jGkLLi8Fxp6jLQ85JDNLlsSOYAohMI+tKVNs2caGaEc84XPLfr Ki+tc+MkzW8hEHN2Wovp5YZmegtEnvZ3O8ZftDTAF6TKKccdx3i8X9RzVl5C+Ez3shv4 7TC3gzYxCp7pAFIghrJJOFS02BRhbupA/fiUpya7C99oBO7ksSWBhUtqhW3W3hLmQeaS x+mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=IjyP5ly4fChYbO5Uv1fH9fegTCA2/Y0YEsSpnTgbmAg=; fh=Smqris6qaENnfUs4HEhjKfP++EPzX7R4+1WBqq2vdAc=; b=cWuZvgreW+Jq1qqCYMZP033KjL7Y8kdwLEZPX7x7hGuHNNlqo9UpZXqRyUDJGsjdBD aiYvPq/ll3YAGJPZr/T2K5BybqcwYvt4j9X7XJNqt28JIClkAmzQDAx/BoBkPjJ8q8Bp 5d3g7Wsn7Fx/eXPXDlmku1ipA3EjmQzn6ZXQ6SxHKu1DTosTYtzn7PPsGiGhi6gisCJM r5UHDoFvm5hcH0qX6lfp4Yr9v9RF0Nhjzc4QVVtwN9+VBjPzQr3IBQKK5O/QACn5+8Ng YTFrL2tasKMAdELYFXoF3wJXCmhxnjPCGucwuK5U/ATc8az0T8ePPqV4jujkc3yCct9o +fYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id fj14-20020a056a003a0e00b00690fec2f3b6si6712728pfb.193.2023.10.08.23.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 23:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 20C0F809B772; Sun, 8 Oct 2023 23:04:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345176AbjJIGEd (ORCPT + 99 others); Mon, 9 Oct 2023 02:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345169AbjJIGEa (ORCPT ); Mon, 9 Oct 2023 02:04:30 -0400 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7839E for ; Sun, 8 Oct 2023 23:04:27 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso753488566b.1 for ; Sun, 08 Oct 2023 23:04:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696831466; x=1697436266; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IjyP5ly4fChYbO5Uv1fH9fegTCA2/Y0YEsSpnTgbmAg=; b=g1sMe5XyNZtkB+Icu6kdNRxjs+/JXruuVH+8WIfdeZF+qe5YrS6mJMarSOvHssKlWJ kw76D4Nq2y7rA8WJnuoD45OuYkFkVkQMM6dcHzhXQcXqf7xiJ5ea/nm5oAJZVfJUTVjE 6p1k6Xb4ACQRNqyUHSJx5/a8qKd5KaTh/gSQNwwVuY1q/NLrbu+nPcPa+CaLPA+YtvNl p38MznYSBCo1VIpTbx40V6UDaJL/IKdKAebbdurYrO0KlywB5QNymfZyOiu29dg8UwDy DK+iG2kvqmAihTjsBvEUYFYQsJrsRc1xT3/CupGESrwS5cqRfyAdSgftehRvlaPbIV8Y uEyg== X-Gm-Message-State: AOJu0Yxbpk6A+5nzQ7QfeZY0DqyJOInVrupRi4gzHaaT0NFCewuZID7b qMMCzcPt3myWq8kaG85ovzYXgNYzTA8= X-Received: by 2002:a17:906:2215:b0:9ae:4536:728e with SMTP id s21-20020a170906221500b009ae4536728emr14258688ejs.72.1696831466080; Sun, 08 Oct 2023 23:04:26 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id jp20-20020a170906f75400b0099bcb44493fsm6359252ejb.147.2023.10.08.23.04.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Oct 2023 23:04:25 -0700 (PDT) Message-ID: <9e2bd57b-60f6-428e-89f8-064a0b4268b1@kernel.org> Date: Mon, 9 Oct 2023 08:04:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: ti: ams-delta: Fix cx81801_receive() argument types Content-Language: en-US To: Janusz Krzysztofik , Peter Ujfalusi Cc: Liam Girdwood , Mark Brown , Greg Kroah-Hartman , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20231007213820.376360-1-jmkrzyszt@gmail.com> From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwNelBCHEgS/OAa3EJoTfuYOK6wT6nadm YqYjwYbZE5V/SwzMbpWu7Jwl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zqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: <20231007213820.376360-1-jmkrzyszt@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.6 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Sun, 08 Oct 2023 23:04:50 -0700 (PDT) X-Spam-Level: ** On 07. 10. 23, 23:38, Janusz Krzysztofik wrote: > 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 Reviewed-by: Jiri Slaby > --- > 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) Thanks for fixing this. Funny enough that I managed to switch cp, but not the others. Yeah, there was a lot to overlook in those big changes. regards, -- js suse labs