Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5322200yba; Mon, 13 May 2019 08:57:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQMHCEX4obVj7rbog/kWTjw31NLBbPBL6RQiLHFrWiHKGQ4jODVzowh97Ukv5RztXZESUy X-Received: by 2002:aa7:8495:: with SMTP id u21mr23565412pfn.125.1557763063729; Mon, 13 May 2019 08:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557763063; cv=none; d=google.com; s=arc-20160816; b=J5FL8bYltjmxYjwN7YhbNX7PCgITgwFUhnWJc8e5KzFZZSY4i2glWjGx0B+LROnL8+ 7xk0cazCESDC6DO6/Do7skPGDYvwoHvWxTpO5A7jV+hAoetxKFzMwbDzjoI9xeolWyZF oyw9ovg6CO9PzGGngp6bhE/j4kcTbhZMiwx7v5hPRPNZI1Me69J/P6T2wYSFu6nPC0Ty h9tlmUtTpF6j6+AokmCJkQauLbw7K2Bq/0WEteBwS25xUzWxdg94Ec1vIsBQWuCQEOq2 bIsZmflygIn7u6g8Vc+GSGYWXo5cm+dWU1Q1kQtEHeyQPwjYcC7wZpSU0APfLiN+LdGn EGqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SmS1tHJZuu1TzBbhnzD6ESGOsCR6ApPpfTs/I1lOhUY=; b=esGFfM/GZY6ayUcCvmc5BZv6/kj2DMATztEh2UY45JjbvabgkPeoMVC/2g2ntIaHKa nPmDI+ekDrlNV9TWpw20PDJU0HBJmjBWqhOhkk64wsQ0iFNQfD+NASq/pl9Gwz7Y0m5u uQnZVPut2jH/iY2/QxMibVr+TRwcYXWQd6HzRPNVklYXMd1QMr4o7ub8eawQIzM3ZcOF qSJx7u0cKwuG2qiPY2zu/7mnWqdZboLFGZpeVt/aoXPXhhFFYG4HYyrw4Bcc5w/HVPlu u09rqbhLruR3159Sx1lCU9EtpzR30LlEOGuvZWZyeFVkDLAxI0/m5zlMbEz1d3NRslJJ KQIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D5hzPWG6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si17337104pgm.540.2019.05.13.08.57.28; Mon, 13 May 2019 08:57:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D5hzPWG6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729721AbfEMNoH (ORCPT + 99 others); Mon, 13 May 2019 09:44:07 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:39751 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729680AbfEMNoF (ORCPT ); Mon, 13 May 2019 09:44:05 -0400 Received: by mail-pl1-f196.google.com with SMTP id g9so6523744plm.6 for ; Mon, 13 May 2019 06:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SmS1tHJZuu1TzBbhnzD6ESGOsCR6ApPpfTs/I1lOhUY=; b=D5hzPWG6gtCd0TMFcL+cgKdSZm0s3l4fWz8loMtKRxjuhvmhXs9bxiwu2cFEEpRuRN +HrmDtqBudGQeIwXdHJiN6WAVYlyMLk9RdYL2TK4LeYQw6Grtn7nMVoz2DHPW+uB/Jj+ zT2Gz2Cs8Mj0+KwHadXJ9DgqeoQJyLaYElrB9xyZiN6i21GOKBK3psU8JAM/K4290UQy CPXVf+4jgS9UixHWfwoOPFevF4zBKsf82FBrlYYCnGR69vTCyvAD918uBAPXNeCeBaBa cIK0VZKjnrVq8GBKrhrpo4kN9UoVt6nbVG5OsN3U7sbL6PVDqMEgQxhzFZEc/ELQd8oK v5kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SmS1tHJZuu1TzBbhnzD6ESGOsCR6ApPpfTs/I1lOhUY=; b=Nq+gXcUtcFdav3PrFPnMHhKj4u/S6Omy4fkNnMW8HdtNPmTrHYm2MhKGaYz0ULqFZ5 FJbPfSdFI6X6qCvC7ML82UknJoO8DdtQAjuO7PH/aUpJZSFem0BQXKJhV9Z33jtDzfNK 7f3Q/0v1epXLM5jZW1Dxhqmb2Q42XbvWguA6UsKpL/DXEbfJ+DDIXVc4Hc3GvAZoLz2r kRk3/RpwBTAKA97BA05Kmi1Ibln16Vf7qIJql1OOKkcT9Tk0drlLL10yBEsKMiE0GcV9 dI3+3DCgcY3ye7hbEmhJUhwlZUA+a+Y5lmRs55ngXyfaWXJKzEQpA42NV6XLUP2A+0WC 9k0w== X-Gm-Message-State: APjAAAWH0fwaIoUeIbOecLYxtL3AF8QDcAyTRyjPLdH7n/4QAm8+qZZB 8ou3WvKDyUIzJU1AwioSz2A= X-Received: by 2002:a17:902:7082:: with SMTP id z2mr8052506plk.176.1557755044642; Mon, 13 May 2019 06:44:04 -0700 (PDT) Received: from bnva-HP-Pavilion-g6-Notebook-PC.domain.name ([117.248.72.152]) by smtp.gmail.com with ESMTPSA id e10sm10874261pfm.137.2019.05.13.06.44.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 06:44:04 -0700 (PDT) From: Vandana BN To: dan.carpenter@oracle.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, Vandana BN Subject: [PATCH v4 5/8] Staging: kpc2000: kpc_dma: Resolve checkpath errors Macros in paranthesis & trailing statements on next line. Date: Mon, 13 May 2019 19:13:24 +0530 Message-Id: <20190513134327.26320-5-bnvandana@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190513134327.26320-1-bnvandana@gmail.com> References: <20190510193833.1051-1-bnvandana@gmail.com> <20190513134327.26320-1-bnvandana@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below errors reported by checkpath ERROR: Macros with complex values should be enclosed in parentheses CHECK: Prefer using the BIT macro ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line Signed-off-by: Vandana BN --- v2 - split changes to multiple patches v3 - edit commit message, subject line v4 - edit commit message drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c index 0b8dcf046136..e996ced77bd6 100644 --- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c +++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c @@ -14,7 +14,7 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("Matt.Sickler@daktronics.com"); #define KPC_DMA_CHAR_MAJOR UNNAMED_MAJOR -#define KPC_DMA_NUM_MINORS 1 << MINORBITS +#define KPC_DMA_NUM_MINORS BIT(MINORBITS) static DEFINE_MUTEX(kpc_dma_mtx); static int assigned_major_num; static LIST_HEAD(kpc_dma_list); @@ -55,9 +55,11 @@ static ssize_t show_engine_regs(struct device *dev, struct device_attribute *at { struct kpc_dma_device *ldev; struct platform_device *pldev = to_platform_device(dev); - if (!pldev) return 0; + if (!pldev) + return 0; ldev = platform_get_drvdata(pldev); - if (!ldev) return 0; + if (!ldev) + return 0; return scnprintf(buf, PAGE_SIZE, "EngineControlStatus = 0x%08x\n" -- 2.17.1