From patchwork Wed Nov 8 21:32:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 118345 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5908244qgn; Wed, 8 Nov 2017 15:43:44 -0800 (PST) X-Google-Smtp-Source: ABhQp+TuELLyDmx2Onbj2XhZuAhAP1s/Ta1CLq7SQj8XIdsg0Xq16Oi3mHFb/G2oME+CMJ6PNerC X-Received: by 10.223.158.129 with SMTP id a1mr1755497wrf.179.1510184624845; Wed, 08 Nov 2017 15:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510184624; cv=none; d=google.com; s=arc-20160816; b=XePy//7fOOwLn//NcWuzq51lewgTxgsObu7KnluMUZ/nJCtlnEpcnAatkgJ1cZEd6K Mqh5TuVOFImd8yvGCwlDRQlY150mLSnjC1Ohy8SM+Hh3X5ZV/LUoIfBn7ENxyG9vB4++ W4QVsAzTCbAFGlxe5lHlLm90fAqQkKSnpw2i+yaFeQsFGgs7Y/iYL+6RLN67Qh5c2AQL tTxSWzAhbx8B+jSlwGLK9C9mkbui4St8M9m0OE7LwkfJz0LBtipTbcrofFdhcAVdxzpF h5xlvWYx1gySbnhLvAs9i7NN6i1HO96xAieqf5rp6A2jfQFIMiiWssH4KQ8Lpr5sYIkf dd5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=EMuv8Rum6Q/iHlc01VTFMZToSINCwkBU4K6+P/PKJ50=; b=aFut5oD+ZlNu90z19IzqsuJ/Trg3ihLqGJ38zADPgsCyw3sRbuqJ3Frl7T/+/HhmQb Q/1wg6lNI9hg/FnARera50Uy6DLs4dqWpgSphuT80Bh0zH0OQXFwxMYt2mnQXMYNNHrf PKjVQQT43ktAKhosmB4AqQUcv3i2WhoaDfLEuwCQrMtMaYyDIH1bqkCfATHegpNod6tc Sgl1kb5yFKtYCaBK1Dutwtv6Ddly/77c9Nq7EWLcFTfFdLqedBXxn6ogNeoq11IUdQtK vzpSKV6Phlrxk6CsQ2FEhrfWsdz/2LlgOYrDuCzc7VmbNaEF8ceyvWwWacTfTmdCQ21m NBFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=VUGh3hQ+; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id x12si5234871wre.117.2017.11.08.15.38.05; Wed, 08 Nov 2017 15:43:44 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=VUGh3hQ+; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1B3492678AC; Thu, 9 Nov 2017 00:20:51 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B91B42676CC; Wed, 8 Nov 2017 22:39:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id D69AD2676A3 for ; Wed, 8 Nov 2017 22:33:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=TTT44WkmZKjTlzvIUjmH7/GWgAjv21aFG4mecxwKJZ8=; b=VUGh3hQ+ukkM LY6mu2GP4SpvXY1f9nOVWqbhWtYkSH/mbhnT754DMPu810S0QDIbq1qy9GAhC/sQfZ2v05PSb12mf btH+/79euekKywxqVpNEih4Yt498mn9pr6bHMO+hSmQMQuMAbOR3i8kj/OLjw2hHqnBEAPSQ3FWpg GdOyo=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eCXxt-0003gv-3Z; Wed, 08 Nov 2017 21:32:53 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eCXxs-0005TV-8r; Wed, 08 Nov 2017 21:32:52 +0000 From: Mark Brown To: Subhransu S. Prusty In-Reply-To: <20171107104626.25800-10-guneshwor.o.singh@intel.com> Message-Id: Date: Wed, 08 Nov 2017 21:32:52 +0000 Cc: alsa-devel@alsa-project.org, Takashi Iwai , Guneshwor Singh , Liam Girdwood , Patches Audio , Mark Brown , Vinod Koul , "Subhransu S. Prusty" Subject: [alsa-devel] Applied "ASoC: hdac_hdmi: Fix static checker warning for sprintf usage" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: hdac_hdmi: Fix static checker warning for sprintf usage has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 70e97a2d9c5266487dfec4cade28f8e587927f04 Mon Sep 17 00:00:00 2001 From: "Subhransu S. Prusty" Date: Tue, 7 Nov 2017 16:16:24 +0530 Subject: [PATCH] ASoC: hdac_hdmi: Fix static checker warning for sprintf usage Use snprintf instead of sprintf to shut the warning. Signed-off-by: Subhransu S. Prusty Signed-off-by: Guneshwor Singh Acked-By: Vinod Koul Signed-off-by: Mark Brown --- sound/soc/codecs/hdac_hdmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index e824d47cc22b..6f3ff15c0962 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -942,7 +942,8 @@ static int hdac_hdmi_create_pin_port_muxs(struct hdac_ext_device *edev, if (!se) return -ENOMEM; - sprintf(kc_name, "Pin %d port %d Input", pin->nid, port->id); + snprintf(kc_name, NAME_SIZE, "Pin %d port %d Input", + pin->nid, port->id); kc->name = devm_kstrdup(&edev->hdac.dev, kc_name, GFP_KERNEL); if (!kc->name) return -ENOMEM;