Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7686654rwp; Tue, 18 Jul 2023 21:17:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlENzw06JiWc85xA0Z5iygkzt4Rl/zw65ed++/9WFbyqEKz7chKypFsFKOQ1OVqFKsAO0WeM X-Received: by 2002:a17:906:197:b0:994:554b:7f27 with SMTP id 23-20020a170906019700b00994554b7f27mr1158733ejb.2.1689740221867; Tue, 18 Jul 2023 21:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689740221; cv=none; d=google.com; s=arc-20160816; b=yYm6xmeSdq+PBi80XOyvT24J/UqxrZwshS3OOlS0w45C2IwlNRB5jnnkSafLBAiuow dam0GhqroxgAj0RCulPRzbU76xJItXAxiL7JXSFgQFiDEzTvg+BPmimK2gyqpxUcoh+h qIgvAWwBw4bH9O6TFdOjDaNDU7lAv90w2lwjkzEwpRjVOvCOeLxrRxpEndijin7Hefcp 6nKFdQapbMjy2T2oNxs4VIS2+T6D9h7VXz7MCaajEb8HD8VXU6vR1zPqwIe8lU3+oIKY cxQamWi531KVsEl2NAZYD3GylDaEp8OSqzjyVGzghjlpAcCSSll8FrbiFtZLRNhCYwUD XnTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=Exwz6R5arXVZJowD8C0cdJ29gmqYclJ1iEh4iFuldTY=; fh=byxctZD46EI+o59hDlDzM3miu5yTIkITLc6MvQ52NA0=; b=l9A9ryHcQKE8iEvluEyncGzhBfSjRVA2VLu+soNJxT8K6gMOvAqKU5cWvhv7ZwscB4 fNEFXv9atcOZjbQ9Y0/2o+sXvyeD2NOaRwzabk0DYgiVQJLQNTm2387/h74ddMfdx4/r rG82LEHQD0vpcg3AjnPYSTlF51TalowNyCe7IhKEAs2ofa/5Oul0zJYrcHOy//gNHXUY y4neNcGvAVfivgp38VX2P6bCKXK6XrDv44Ac+Zr6cWxhHlAthKruArJ9JSA85lmzUALD UR/al/73L3ak1b/00kX9Nd7chFhXLXesydZxoy+lgaY/kZ/UJk7G5ILAwKSdeQOxA9NL C1NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=WKCtPGcN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a1709060f4300b009885217c85bsi604594ejj.275.2023.07.18.21.16.37; Tue, 18 Jul 2023 21:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=WKCtPGcN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230076AbjGSDf0 (ORCPT + 99 others); Tue, 18 Jul 2023 23:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbjGSDfA (ORCPT ); Tue, 18 Jul 2023 23:35:00 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7AC419BC for ; Tue, 18 Jul 2023 20:34:49 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R5KHP2r2wzCQYDr for ; Wed, 19 Jul 2023 10:18:24 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689733104; x=1692325105; bh=8Zl0vZY76tBdb/jVDtCmxFdg39w CDc1sNz0Rki5WdqA=; b=WKCtPGcNs5xGwHs0dm6dAYZY6dXEXdzZOm+LfQP+5v0 kcj7DtaugDzH69Jlc8392Wl5jxFRXXbekaGdGxYNDNhGcOr3W4NtXZvja/plDRvf sawrQN1cU+siNUT5+DeRrer8xe7r8xoB9VTkz5DKwN2oMcDUgFxsvc5AlXbCG7oh uonneVhrDZRCvN04dqNJCYWKwaq8giehEgQ7RCLNWN7zM23rmFNvTJdboibxgTJ/ 4EyK5NkEPo5+h/6TpoMSuxc7o3iZwjZ0qblXojjGJru8rT9iTBFnSBbjGV0I4CvJ GUfx9Wc+WTQ1hsP4CAEG+Y0yQL+FSV8ly8votfInyOQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZURMCrdPUuwF for ; Wed, 19 Jul 2023 10:18:24 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R5K5n6N6RzC2dDY; Wed, 19 Jul 2023 10:10:05 +0800 (CST) MIME-Version: 1.0 Date: Wed, 19 Jul 2023 10:10:05 +0800 From: wuyonggang001@208suo.com To: perex@perex.cz, tiwai@suse.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: SOF: ipc4-topology: Fix application of sizeof to pointer In-Reply-To: <20230719015525.48613-1-zhanglibing@cdjrlc.com> References: <20230719015525.48613-1-zhanglibing@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: wuyonggang001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sizeof is being applied to the pointer ptr, not the integer it points to. Eliminate the following error(s): ./sound/soc/sof/ipc4-topology.c:221:29-35: ERROR: application of sizeof to pointer Signed-off-by: Yonggang Wu --- sound/soc/sof/ipc4-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c index a4e1a70b607d..2dbe87dbd239 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -218,7 +218,7 @@ static int sof_ipc4_get_audio_fmt(struct snd_soc_component *scomp, ret = sof_update_ipc_object(scomp, available_fmt, SOF_AUDIO_FMT_NUM_TOKENS, swidget->tuples, - swidget->num_tuples, sizeof(available_fmt), 1); + swidget->num_tuples, sizeof(*available_fmt), 1); if (ret) { dev_err(scomp->dev, "Failed to parse audio format token count\n"); return ret;