From patchwork Wed Feb 14 16:28:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 128370 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp787788ljc; Wed, 14 Feb 2018 08:28:47 -0800 (PST) X-Google-Smtp-Source: AH8x225xZqyZtZMS3I9TPV++icF735dB2a0IOMn1CXmXYlljW0aT+tVMDURY6krRoZMh4rdJwRBC X-Received: by 10.28.158.77 with SMTP id h74mr4305154wme.38.1518625727176; Wed, 14 Feb 2018 08:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518625727; cv=none; d=google.com; s=arc-20160816; b=A/dlpxtdDP+BNsAhNK5HLK1UPv1diCgI0tXQKdwFFV009E+HXRHU+CjGgaQrzyrCdT infHo9gjwH1pPpaf2eGW1jJeTaWtbvIcoc76EuRbSaLiPOXhTOURzOLYXGVKH0EroePP YR3DT/Ms4Hk9Ztu8PpZ/fm4zkHpEiT7xUndb0EgEFXoSs4+yLdisQdVm30MbsM1x/zZA UbEOEz0JxULiMTEX3+vC0fIYwprt1Qkw7dzcMSA9bJJgA9QtaWl/sltxRqZlA0SlIIk7 qgznoDpIIhju7K/RWzMOetVkmSrJjExjVYx+xosGGV6iFfyoVwfgpqChq6e4oi3BWxTK C+pA== 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=nwkfPwjpS3xhAnr4lskgm6b2QFqp9eog+tFJsuca6Hc=; b=ucCGvdkVcPU5wZ18dc1ppPxDeFmpmGDa0BhjSXy+qYScUAB5VVyZfKNw/A7Dev9Pi7 Ypfty+pauvxsSYwQSiA97Kv6ZgWVnUpvE+BICb6GSpLdGFyeEO+/bUbsD7GmZ/t0xEeN p3RjQPq9uGfaJEv8klN5yLrdmHISLicrQAv8BhYiZE2i+zRDXg9a1/cOl3HAuSkBxw8c K8bhQMr0WP5yxxjP817At3r8l8mjkQ8T4q1TKdazvL5cZog9CdK+ls1JJKXFU6ffpkYp ognQM4tjqD9LwtZgQP5Q0Vp/C8L4rkKpuwCaHAdYow8st8ZowFzfsGlV83NjMrW05jQV i9Og== 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=CGGZjCt4; 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 t13si9847288wra.505.2018.02.14.08.28.46; Wed, 14 Feb 2018 08:28:47 -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=CGGZjCt4; 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 41032267B6C; Wed, 14 Feb 2018 17:28:36 +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 462BA267B6F; Wed, 14 Feb 2018 17:28:29 +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 6373D267B6C for ; Wed, 14 Feb 2018 17:28:19 +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=nFvc3I39fGynQ81F2CQVsHAZEFDQVc52b6IMJu6+nHg=; b=CGGZjCt4/rUc sx/hlIQLD1GRi8AkaPrOK0lWR5/SvqTs5dnomTrJCsmMFmcIiORKRbn+fFgCS/ZDC4LU0U7Nwy+jp /ThjB+WMlTrm6+EsBoxcUAKXrcQd0GRbYDeyL+INqEDCpLqJ316DuvJxB5O+bFC9ylXpfJS2mJ8HZ spmT0=; 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 1elzur-0005qH-5z; Wed, 14 Feb 2018 16:28:17 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1elzuq-0005hQ-Nb; Wed, 14 Feb 2018 16:28:16 +0000 From: Mark Brown To: Fabio Estevam In-Reply-To: <1518622745-12162-2-git-send-email-festevam@gmail.com> Message-Id: Date: Wed, 14 Feb 2018 16:28:16 +0000 Cc: alsa-devel@alsa-project.org, broonie@kernel.org, Charles Keepax Subject: [alsa-devel] Applied "ASoC: wm9713: 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: wm9713: 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 91cd00083d734258bf293dcf76793e2348be391a Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Wed, 14 Feb 2018 13:39:04 -0200 Subject: [PATCH] ASoC: wm9713: 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 a sparse warning. Use the empty struct initializer that clears all the struct members and fixes the sparse warning. Cc: Charles Keepax Signed-off-by: Fabio Estevam Acked-by: Charles Keepax Signed-off-by: Mark Brown --- sound/soc/codecs/wm9713.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/wm9713.c b/sound/soc/codecs/wm9713.c index df7220656d98..093be043c1b0 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c @@ -235,7 +235,7 @@ static int wm9713_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;