From patchwork Wed Dec 6 15:29:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 120873 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7193872qgn; Wed, 6 Dec 2017 07:29:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMZnWHtv5bVsrXhMOrkmin7k4LHeDH1grp/rZPxFSW7CWdS/MHV56pTLvRyo9vkMCv1w6xY/ X-Received: by 10.223.130.205 with SMTP id 71mr21167287wrc.101.1512574163594; Wed, 06 Dec 2017 07:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512574163; cv=none; d=google.com; s=arc-20160816; b=M6I1aYsESfnUlxr7QckPC7wKub0qaZlX2nVLcNcHpLvFZPRkl3s0dwTQk4p1nCsRhf DjJLdKUYi6NRHaEbLAhJ8xH8vqTk7FkPT3H0NHzjeRUHAVZ9O3p0QyHjqTONNzbB3ENi dKDA/ubYvy7kRd4qjwSxV1jF3qsEjJgMi6+rJqaIQEBrhcaRMqlkFwag1DJiXAoRKXw4 i+uq0rgQjmCHLb1vgOfY2TvBSIlLZXk83oTIem2VW3Wn+DvKP5ADYsjLp+jLqz2gYunQ sg2mSi+Fmp/skR7VR5AwQb4SwAn9gl7xLTjCoQRHzN1lHzrxr6UaCWoLHp2sWrMUbDES GpQA== 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=FiL02IlNU4I6on/b6yjntYojfBJje96cth9ydYYJLFk=; b=c6jIrmRExv4c6B9aymMUFfYXDh8yi35Mg6MJfMGtAQPlVn4OjopUjuIK8/n8v+sfp9 N30Acn/04ZfTwee1w8f5zUElcevp2KgAwlS8zvt/v+f2+K1lRlBQpKTUNz27DezDsjbW /RfcxbAA+tHBP6/yvVh6p0xGL4W6iNxutt7LQCNyfxUw6sClD33ouO8qwNkqVlHR1NTU nzviDWa0U95Gr4BxZG6w58HwTm81/WNDD5LAgUMY2ju/j04Kqv5bFP3IQOpWSRJRvXi8 p01Ql8GstWseoDWZVlep/VsRPVbjiw9utvESVUyZRqVYphGMw2axW/oaa66e8nio9om4 /RJg== 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=AOiYt+P+; 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 143si2168433wmn.117.2017.12.06.07.29.23; Wed, 06 Dec 2017 07:29:23 -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=AOiYt+P+; 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 26F05267969; Wed, 6 Dec 2017 16:29:19 +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 BB25526796C; Wed, 6 Dec 2017 16:29:17 +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 5FAAA267968 for ; Wed, 6 Dec 2017 16:29:14 +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=SkFQh6e1petRtvrRNxO6RAI4kQdtcUyn9kJc0EYusO4=; b=AOiYt+P+JLY0 nXHeO2qTEGjOYnZyL0SExGYUaxP/NSNGpKUDIOi4YyYEKvWJ/3XqieJtriplv5N/zq+9id/3JPZXR 4/bmaNAtRCc/5ZNLpaad0zgrrjAEJTY2vDrJoJWfiDcLwbwjad4X0Lvdi8YP0uCAETS3ZXXT7ao8B 6um5w=; 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 1eMbdG-0002nK-4C; Wed, 06 Dec 2017 15:29:10 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eMbdF-0007YZ-Nj; Wed, 06 Dec 2017 15:29:09 +0000 From: Mark Brown To: Stefan Agner In-Reply-To: <20170807063657.12581-1-stefan@agner.ch> Message-Id: Date: Wed, 06 Dec 2017 15:29:09 +0000 Cc: alsa-devel@alsa-project.org, Xiubo.Lee@gmail.com, timur@tabi.org, linux-kernel@vger.kernel.org, nicoleotsuka@gmail.com, Mark Brown , fabio.estevam@nxp.com Subject: [alsa-devel] Applied "ASoC: fsl_asrc: protect macro argument" 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: fsl_asrc: protect macro argument 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 d1b726a9018e3f684ce190a1cbe012cb64f363d8 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 6 Dec 2017 16:17:27 +0100 Subject: [PATCH] ASoC: fsl_asrc: protect macro argument Protect macro argument with parentheses to avoid ambiguity. This fixes a warning seen with clang: warning: logical not is only applied to the left hand side of this comparison Signed-off-by: Stefan Agner Acked-by: Nicolin Chen Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_asrc.h | 2 +- 1 file changed, 1 insertion(+), 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/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h index 0f163abe4ba3..ec33dab4b909 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h @@ -57,7 +57,7 @@ #define REG_ASRDOC 0x74 #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) -#define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i)) +#define REG_ASRDx(x, i) ((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i)) #define REG_ASRIDRHA 0x80 #define REG_ASRIDRLA 0x84