From patchwork Thu May 2 10:59:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 163257 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp5587436ill; Thu, 2 May 2019 04:09:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeoTvZw2FmRZpXkaEjZgil/ohM6MH81Rs7BheZyfmO+iTTN2WO0HZmnoSiujaGAGlKqyrV X-Received: by 2002:adf:f88f:: with SMTP id u15mr2297808wrp.155.1556795381834; Thu, 02 May 2019 04:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556795381; cv=none; d=google.com; s=arc-20160816; b=v9/H+9Udxft5VLWNSkEeWSB1s1kiXk+h2cpiqN8CktkPPgsmtkmhqFHOdNbC08pG+4 2VDfJ3lI61JNG154+tzxboTlspf29l6cgGE5H9nzFk/cMv7RB994Ig65/6Mn3wuJeRNj x1ki+TIDChzBVuCPsLkv1uoroWwlQcJghPMe/XUWEPDW+VufdhxsH9T1VWo0En+qEY9s LYKRlLCTn4MJJCELcuVhZdDVpJzKr1Kr4ZRJY9bKcAU9McYk5eG3jle+2zetbLHqUFBU 5AwhnqJ8wQjfT+fU7VpdyrIOl40Rw0i2ZqsixUHH2J45UxRzXDTuSL0Tu5/XxfETSqeT VFsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-filter:delivered-to:dkim-signature:dkim-filter; bh=azX8tSe8dJt3A/aGzEvETqvFgPp3IpQIRbB5Ojisc54=; b=rnMBYlL652xT1H9lM4TWSHCuR7sp6xS6qdzji4lh4EM6cMJqkmMg8tsKHRWLnhwKFH dpSn9UtkemhXHrfEotNCxThi53Q3Jj+GThdoQexhQDPijeoNx65d0a1m9H9fIXMn+kug TZnhTrkRuCI1Xwtf6YSdk4h3MyDpEeuAtH9elJidBM5Dk8EjZZMxB8gfxCen8Ez18NYE orKNH/Y3hVraL5yX7W3q7KN51p/Po1K7iTWDZn2MiSpw1P2vdENESeyr6SK7OC+QOx2b yoZk5NhVYQF8Yte/auiQ3W1Ishuq2Wv6SPkMfnU0KzWhQei7nbZTVjn4oNKuWVnOl9o7 3eUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=DckyQa44; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=jEEHLq9y; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id 16si466430wmp.8.2019.05.02.04.09.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 May 2019 04:09:41 -0700 (PDT) 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=pass header.i=@alsa-project.org header.s=default header.b=DckyQa44; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=jEEHLq9y; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 177AD17C1; Thu, 2 May 2019 13:08:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 177AD17C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1556795381; bh=/sxgrjYH1yaGI/N9cLN8i1Whf/QnNy+u1+Wv5b2hQjU=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=DckyQa443bNrEdax6BYQt3+mrQfQJU78fZegrU14mTlHMkUVtKbUrUBf6HUVRWGoV B57JFIzsoURlX7MLzQLw+rhNed+ih9XgkLupB6fHSTnr5I97qXxbHf/dvDwHHn5C54 1zIkR6UnfwrbuYVA9kJ9HPr7Jt3YgWu18hfTNXjE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 51C7DF89762; Thu, 2 May 2019 13:00:51 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id C8767F8974F; Thu, 2 May 2019 13:00:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_PASS autolearn=disabled version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7C4A6F8974F for ; Thu, 2 May 2019 13:00:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7C4A6F8974F Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="jEEHLq9y" Received: from localhost.localdomain (unknown [171.76.113.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0097920656; Thu, 2 May 2019 11:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556794842; bh=Nxjf/qNQYqjiBe9R0eKn/f1btuiVEF1z0Y4EiTwpn2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jEEHLq9ym/iSL2+plp0F0SwO1ytk+FzysVTbEO7AwdHaMw4beQzfFVuBHoEaW0obp w1sdojsMbvyVIW5Sqyn8Wj30FdEaM+nU9zeDdKqkeUMuQI1h4CKlrRQxoyB10p53sg rmIelJ28tTMCcut/bpgvSjfjBZwrmLc9zHiCNE04= From: Vinod Koul To: alsa-devel@alsa-project.org Date: Thu, 2 May 2019 16:29:28 +0530 Message-Id: <20190502105930.9889-13-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190502105930.9889-1-vkoul@kernel.org> References: <20190502105930.9889-1-vkoul@kernel.org> MIME-Version: 1.0 Cc: Greg KH , Sanyog Kale , Vinod Koul , Pierre-Louis Bossart , Shreyas NC Subject: [alsa-devel] [PATCH 12/14] soundwire: wrap macro argument in parenthesis 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" macro argument should be inside a parenthesis to avoid precedence issues checkpatch complains: CHECK: Macro argument 'n' may be better as '(n)' to avoid precedence issues Signed-off-by: Vinod Koul --- include/linux/soundwire/sdw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 41c49631288a..35662d9c2c62 100644 --- a/include/linux/soundwire/sdw.h +++ b/include/linux/soundwire/sdw.h @@ -36,7 +36,7 @@ struct sdw_slave; #define SDW_FRAME_CTRL_BITS 48 #define SDW_MAX_DEVICES 11 -#define SDW_VALID_PORT_RANGE(n) (n <= 14 && n >= 1) +#define SDW_VALID_PORT_RANGE(n) ((n) <= 14 && (n) >= 1) #define SDW_DAI_ID_RANGE_START 100 #define SDW_DAI_ID_RANGE_END 200