From patchwork Wed Aug 3 20:44:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Stitt X-Patchwork-Id: 12935879 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 A02E8C19F2B for ; Wed, 3 Aug 2022 20:45:51 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7A1821F1; Wed, 3 Aug 2022 22:44:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7A1821F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1659559549; bh=ytvAuLA2sy/pLYqSIYPE8oOyDbtcqqJPIHs4sRmNJg8=; h=Date:Subject:From:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=BXUsVU9iWbb6rknZSxyIIOSdmif3McJ0V+ORdS6uhQ+h4GSHMJn/2zNhcLfvJpISM mnezH2TBdmezBWpb3HgQf/IGR+onA7pp+N3SIaF+9cHy4/t3/HP24zNA+rsglAYfYx I47IPkf8dugFBdoCX6HDuygvBgJNsw2w/fR2XTu8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 207B9F80166; Wed, 3 Aug 2022 22:44:59 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 23491F80166; Wed, 3 Aug 2022 22:44:58 +0200 (CEST) Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 710B9F80166 for ; Wed, 3 Aug 2022 22:44:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 710B9F80166 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ob5DwtSj" Received: by mail-yb1-xb4a.google.com with SMTP id bu13-20020a056902090d00b00671743601f1so14129720ybb.0 for ; Wed, 03 Aug 2022 13:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=0sKogew4m6eCnkm9Qwz368UT9tOW4WxFrPuJ/tuZBLY=; b=ob5DwtSjNECtxnS+HT9qoDLpsMlGuD4A/DhuB8jtbj96zm7uzCWnWlX+AiA1OUjzWU aqQdI6op/b1qZn2enAIscsZCDTY3DK2dPQPyYuNp/w6zUr9V3sENZuk1TSMLDGjSu1QW 5RqZgwgK+WcrVObpOSatpr5G0sPmzOo5mil/POxat7xjWKAmVE4ULVIguXSh5npxVwus HSOEaImyJF9jklYeGzL/yThSRIa8f7pW2sjf65LsLL8okLaK+39bR0XwEFTjHhpwEKyb 11Yl+p7oJaiZduYb7i+ZhCdj40d+5JQpiijRq7tHU4Rnhzo1uQudKhmcal39TM8WCoBM KTVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=0sKogew4m6eCnkm9Qwz368UT9tOW4WxFrPuJ/tuZBLY=; b=H8+jdDWh0iyi+k8L0OtKVqDkSHnSTmGJ9zzny7VU5T9Z86Ejt/O7GOURL6fIJE8TSe 1W0fFUA/GfyRtlnW3oIiEc8Dbo0O4yasd0txvGxpPQJ4VSMGrYkoG5NkIGb2fthf82zP KvQSDqSdsUcJySU8gPKujjPfvPuXn+XVaQHqkYlgrkszYVqh3Bz+4Xt7iJR6jKf76hGY 2Lrg8hh0iHmhWMnlUIX57shhLDtnwCkilowZGQp+WgLcRgFZGM7RW+p+k3JslVe/2tqT u3LLx8EKGMsZqVpQGy1AFk70mbNZjYDAOPxISN1YpXZJkAtBRcg/LRUl/p9caaVx0/eT WcNA== X-Gm-Message-State: ACgBeo08U2p9R2X6f2R1gdoMbWTwGSsZBGu8ekBKblkagq8F/Sn39Gho IxVw5zOnvrsRHvXPgthcFLAkm6cRYNz1OxIUYw== X-Google-Smtp-Source: AA6agR5swAlRAG0PoXXTtzTzeRtGlfsuTK3cgLN3STV50CkZr1FuU63M63rJYJC1oNB2Odd/8z1DQzP4Zmk5hllYvg== X-Received: from justinstitt.mtv.corp.google.com ([2620:15c:211:202:1bc6:4ec2:4609:dea0]) (user=justinstitt job=sendgmr) by 2002:a81:5ca:0:b0:31f:38d6:f59f with SMTP id 193-20020a8105ca000000b0031f38d6f59fmr24401528ywf.324.1659559493505; Wed, 03 Aug 2022 13:44:53 -0700 (PDT) Date: Wed, 3 Aug 2022 13:44:42 -0700 Message-Id: <20220803204442.2996580-1-justinstitt@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.1.455.g008518b4e5-goog Subject: [PATCH resend] ASoC: SOF: ipc3-topology: Fix clang -Wformat warning From: Justin Stitt To: Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Daniel Baluta , alsa-devel@alsa-project.org, Justin Stitt , Kai Vehmanen , Liam Girdwood , Peter Ujfalusi , llvm@lists.linux.dev, Nick Desaulniers , Ranjani Sridharan , Pierre-Louis Bossart , Nathan Chancellor , Tom Rix , Bard Liao , linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" When building with Clang we encounter these warnings: | sound/soc/sof/ipc3-topology.c:2343:4: error: format specifies type | 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] | SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH); | ^~~~~~~~~~~~~~~^~~~~~~~~~~~~~~^~~~~~~~~~~~~ Use correct format specifier `%d` since args are of type int. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Reported-by: Nathan Chancellor Suggested-by: Nathan Chancellor Signed-off-by: Justin Stitt Reviewed-by: Nathan Chancellor Acked-by: Pierre-Louis Bossart --- Note: resending with the subject corrected, this patch fixes a build warning that will break the Clang build when CONFIG_WERROR=y. Original patch: https://lore.kernel.org/all/20220721211218.4039288-1-justinstitt@google.com/ Reported by Nathan here: https://lore.kernel.org/all/YtmrCJjQrSbv8Aj1@dev-arch.thelio-3990X/ sound/soc/sof/ipc3-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/ipc3-topology.c b/sound/soc/sof/ipc3-topology.c index b2cc046b9f60..65923e7a5976 100644 --- a/sound/soc/sof/ipc3-topology.c +++ b/sound/soc/sof/ipc3-topology.c @@ -2338,7 +2338,7 @@ static int sof_ipc3_parse_manifest(struct snd_soc_component *scomp, int index, } dev_info(scomp->dev, - "Topology: ABI %d:%d:%d Kernel ABI %hhu:%hhu:%hhu\n", + "Topology: ABI %d:%d:%d Kernel ABI %d:%d:%d\n", man->priv.data[0], man->priv.data[1], man->priv.data[2], SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH);