From patchwork Wed Feb 14 13:29:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 128339 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp611670ljc; Wed, 14 Feb 2018 05:31:38 -0800 (PST) X-Google-Smtp-Source: AH8x225lca1j5nwwGEd6eZO1HeRhsleDuHKDl1MIlW5+goXbqs4U4cNCCFOcT+6b1OHOx/boSoIE X-Received: by 10.28.109.83 with SMTP id i80mr4525535wmc.89.1518615098201; Wed, 14 Feb 2018 05:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518615098; cv=none; d=google.com; s=arc-20160816; b=jPRUTpbhoJoq9OUJQ88NXtfnDZG4BS9QYhEByKgJMylRHWhI4F2GbN1Fwmxfdg+kI8 stkilbM1z54cNtNWzL1/K8CYBpa65ICmOV0hDn2i4CHnG3mluz7AEh9avZKM5D6VMsNj tp3NiliVuiJYAqS4bD84ThyUiskflAp8B12dLnjDNQG+Ryh5/eLYfM65aFIfy9ejKCFx i11Iw5/BRvBxACqdGtUtj0RQsc8dQ9NioQhU3S4svypiu0KqgLKAZHAwK38iZkzrk35J K8BbawE/tHvzJ9ZFwgY42z1Oe3XcaKZY6e0fTc6NMVRNCARvK6ez7V+J8qMIyUFkn13Z JZOA== 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=meJSb6mb0JVJugerjjFa3hX/pMVEFFzWlpog9/ucXmw=; b=EMe5CTk6gpBl5wMhTuOZM2Vkyf3EKYrLne8RCOEAXYAzCouh0QhtxFdS2svF9YET4j 7s8i4EImw+QAN9t295p8lZxchh8GFoYrV/etrCkoAAQFs+59XWm2fU0rGsW2u7FUJpJ3 ltJQFxUDioc0JARst2wSrHCcVEQz6cHxDZ2aQjD+3RQ6IgjuXbfFknafVs5yY/xYKibl B/Bt0pajY3fIHXs6q0n+g4BSfK5Y8nuVYPT9BRqYnwe4rkdHCtAI7ebOFIS0gHcs8UPt vmJKCYNrmusodOEKUyx7ZEDxzbk8hnTv0yZZt47P+h24BVU+y/DixcSzpVVT9MHXFQu+ lfag== 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=n01u0eqR; 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 33si1949543wrd.199.2018.02.14.05.31.37; Wed, 14 Feb 2018 05:31:38 -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=n01u0eqR; 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 72C33267BB1; Wed, 14 Feb 2018 14:30:40 +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 88AF3267BB1; Wed, 14 Feb 2018 14:30:39 +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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD 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 8F985267B2F for ; Wed, 14 Feb 2018 14:29:40 +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=X9TNk+p0u3jdCR2RCTOnJqWAzGR3SUCIG2QbxaBIqTI=; b=n01u0eqRzuxX 4byYLSRIUdXpcU2rA65Zsgq874YYsTPmsVVZE0H/csaYYQctAY/vzbIOT1beKNNM+aBa6d+jDOGqB t6gMwMcfkQW8bvwvbG9KYeZJo/nWt+hGDUt6ut9e4wIuM1Chomni6tRY5HHohdAyxfH0A1d+wAYOB 14DSc=; 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 1elx7y-0004qN-SD; Wed, 14 Feb 2018 13:29:38 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1elx7y-00077F-EE; Wed, 14 Feb 2018 13:29:38 +0000 From: Mark Brown To: Fabio Estevam In-Reply-To: <1518550536-16279-1-git-send-email-festevam@gmail.com> Message-Id: Date: Wed, 14 Feb 2018 13:29:38 +0000 Cc: alsa-devel@alsa-project.org, broonie@kernel.org Subject: [alsa-devel] Applied "ASoC: wm9712: Use empty struct initializer" 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: wm9712: Use empty struct initializer 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 60edb2006030894a4e45c84b04369cb70939d695 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Tue, 13 Feb 2018 17:37:50 -0200 Subject: [PATCH] ASoC: wm9712: Use empty struct initializer { 0 } only clears the first member of the structure. The first member of the snd_soc_dapm_update struct is a pointer, and writing 0 to a pointer results in the following sparse warning: sound/soc/codecs/wm9712.c:229:47: warning: Using plain integer as NULL pointer Use the empty struct initializer that clears all the struct members and fixes the sparse warning. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- sound/soc/codecs/wm9712.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 4f6d1a442bc4..c672d5d88827 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c @@ -226,7 +226,7 @@ static int wm9712_hp_mixer_put(struct snd_kcontrol *kcontrol, struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value; unsigned int mixer, mask, shift, old; - struct snd_soc_dapm_update update = { 0 }; + struct snd_soc_dapm_update update = {}; bool change; mixer = mc->shift >> 8;