Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5032052yba; Mon, 13 May 2019 04:18:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEeM1aqaSr6Yga3mdeQ0hb0j9eUaghfdZ4JQspihf7HHPSmxbQWcr68RgDCLvnTKYAzJJX X-Received: by 2002:a17:902:b407:: with SMTP id x7mr30628917plr.28.1557746325345; Mon, 13 May 2019 04:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557746325; cv=none; d=google.com; s=arc-20160816; b=wT0PV0VTDPDXwpRm4C04UT0lQ0QTfPRgmNawjaP2cpaYAXq2wtiXIyMoq34aqQgfN7 kYEz5p0NJ8i1qsTEYbaPJSiZ7AlUjCdxtIUEJ6pDfPrHaNsW/hTk0MWspfUfxfFycbJJ 6kTmz96cyKe9pDAfwZfJ9Td2b5BeKKFOmodtZ0oZn2MVUJRyVviHePJMIbPUBsvPg5Ge Kqg7dHHBo91sNwJ8xlOH007W1EhvxDkSefaFZhC1kUbiewyHb1zK3q12SMlyGJi3am/E wqq8/oFkoEdBAzEQ8+4wrGhIUPAhCHfxlMja5VRvM1T516HCmw2k6dTcwoYtam3uEO1Z AHig== 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=o4eZkIy+Solqri1rxC2h12FdOB/yEXjP+6uX/QrWUOk=; b=GNWP6uB9IGECJYAKuE93m/B+wonKdiL6vM8PdgVh67kS+zt/Hifq/JKMV9LWro6dQl YtSeCprp0Inw5raWpZhmBY/xyWsjNts21A02CwJHte3JAX/ylbMAOcQ8QfomGKBielKH z0FC2MPCWEipFngPiA5TEv8jq2eaj7dgWgmbwwrM/3q4oZoJEB0PsVrBhbjmnfDmjab2 lfR7zjFRoyWSvJKolBXKbkQ2tcwV3Lqby2p3eQ8tiA52DvrAw8y8O6cNsFlBnUuju2J0 nLA6BCdO8cu+Vvd9fwwh0PyiQ4cmVRSW9C8oCiRh8e3uSs9UyXvXSAcRstE4xhZQwJ9c ZRBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qfRvrcRg; 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 d21si15505325pgv.353.2019.05.13.04.18.29; Mon, 13 May 2019 04:18:45 -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=qfRvrcRg; 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 S1728095AbfEMK07 (ORCPT + 99 others); Mon, 13 May 2019 06:26:59 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39529 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbfEMK07 (ORCPT ); Mon, 13 May 2019 06:26:59 -0400 Received: by mail-pl1-f195.google.com with SMTP id g9so6265417plm.6 for ; Mon, 13 May 2019 03:26:58 -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=o4eZkIy+Solqri1rxC2h12FdOB/yEXjP+6uX/QrWUOk=; b=qfRvrcRgmLWL1HE15Cr9GLYd+TZXzEmxZiYMUbOWGPlAme5KaDvoFmEDmvFV3Ssld5 4Bqb/dFe28RFQpWBwUXaDO4gfevEb8/tQjUMGX1tBIeYHn2f65WIxPSJvDbscxFC9GlA bNeIA5ofT6mjPRt2nZMTcVuIMuqyZ2MsoztLfWvCGPglVt7r6c170JgPuh2naMTG7WPL 3FwkIhGQFz5MMCmbtGRB90ohPwliq/M1kcoXLQbaxneUSAiBYnNDEA/w8oPg30dYKWIR 0GX/X2a+Qo4ZZ+9sP5ziNkVMHHRDkLmLsgXHfWHdSgUd8lw+aPPOFp1IsRTMWzZ96sba MXCw== 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=o4eZkIy+Solqri1rxC2h12FdOB/yEXjP+6uX/QrWUOk=; b=IE0slkHyP85tP2VndHB6H1GZgwwTcsI8GZQr/ynPDh8h8rIFFHuv4Fuk7llKdJUd4+ J1NrDKqdczmY3v5tuT9MXOidYE1vzQTSG/dOpXyHi/lvTT0DuViKmXw10nNlVMFWzFvL veWRfRzeZ4aPpbfalVb1xdatBHY5ZduENB8YfIoKbs0RUT5QeWB7NYTYMxaaoCUar7n1 Nl3vJfOjuOqzHGnxsvK8nxrsHLuK96jQ/DMwVkY0zYzdywkSpP269rA0RE++2BhMxVoN GF/EKWEOX8uGzNAbX8z4ifFU9CkoIcapQkgI90AgP0rzl6UajqB5Fo1lJ24KC7f/Hp1q uAwQ== X-Gm-Message-State: APjAAAXkvIpKRlJaEdOx6JOOXnJNe2J1wXGqkABOPVmjgVa0eg3ldf3c jjd/tP7blQJr9FUFLTbbxKs= X-Received: by 2002:a17:902:2884:: with SMTP id f4mr1536267plb.230.1557743218294; Mon, 13 May 2019 03:26:58 -0700 (PDT) Received: from bnva-HP-Pavilion-g6-Notebook-PC.domain.name ([117.248.72.152]) by smtp.gmail.com with ESMTPSA id r124sm11773487pgr.91.2019.05.13.03.26.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 03:26:57 -0700 (PDT) From: Vandana BN To: 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 v3 2/8] Staging: kpc2000: kpc_dma: Resolve space errors around pointers and function declarations reported by checkpatch. Date: Mon, 13 May 2019 15:56:16 +0530 Message-Id: <20190513102622.22398-2-bnvandana@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190513102622.22398-1-bnvandana@gmail.com> References: <20190510193833.1051-1-bnvandana@gmail.com> <20190513102622.22398-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 resolves below errors reported by checkpatch ERROR: "(foo*)" should be "(foo *)" ERROR: "foo * bar" should be "foo *bar" ERROR: "foo __init bar" should be "foo __init bar" ERROR: "foo __exit bar" should be "foo __exit bar" --- v2 - split changes to multiple patches v3 - edit commit message --- Signed-off-by: Vandana BN --- drivers/staging/kpc2000/kpc_dma/dma.c | 8 ++++---- drivers/staging/kpc2000/kpc_dma/fileops.c | 2 +- drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c | 12 ++++++------ drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/kpc2000/kpc_dma/dma.c b/drivers/staging/kpc2000/kpc_dma/dma.c index ba987307d898..488b9b81debc 100644 --- a/drivers/staging/kpc2000/kpc_dma/dma.c +++ b/drivers/staging/kpc2000/kpc_dma/dma.c @@ -14,7 +14,7 @@ static irqreturn_t ndd_irq_handler(int irq, void *dev_id) { - struct kpc_dma_device *ldev = (struct kpc_dma_device*)dev_id; + struct kpc_dma_device *ldev = (struct kpc_dma_device *)dev_id; if ((GetEngineControl(ldev) & ENG_CTL_IRQ_ACTIVE) || (ldev->desc_completed->MyDMAAddr != GetEngineCompletePtr(ldev))) schedule_work(&ldev->irq_work); @@ -85,8 +85,8 @@ void start_dma_engine(struct kpc_dma_device *eng) int setup_dma_engine(struct kpc_dma_device *eng, u32 desc_cnt) { u32 caps; - struct kpc_dma_descriptor * cur; - struct kpc_dma_descriptor * next; + struct kpc_dma_descriptor *cur; + struct kpc_dma_descriptor *next; dma_addr_t next_handle; dma_addr_t head_handle; unsigned int i; @@ -208,7 +208,7 @@ void stop_dma_engine(struct kpc_dma_device *eng) void destroy_dma_engine(struct kpc_dma_device *eng) { - struct kpc_dma_descriptor * cur; + struct kpc_dma_descriptor *cur; dma_addr_t cur_handle; unsigned int i; diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000/kpc_dma/fileops.c index 6c38c3f978c3..61927b313a26 100644 --- a/drivers/staging/kpc2000/kpc_dma/fileops.c +++ b/drivers/staging/kpc2000/kpc_dma/fileops.c @@ -55,7 +55,7 @@ int kpc_dma_transfer(struct dev_private_data *priv, struct kiocb *kcb, unsigned ldev = priv->ldev; BUG_ON(ldev == NULL); - dev_dbg(&priv->ldev->pldev->dev, "kpc_dma_transfer(priv = [%p], kcb = [%p], iov_base = [%p], iov_len = %ld) ldev = [%p]\n", priv, kcb, (void*)iov_base, iov_len, ldev); + dev_dbg(&priv->ldev->pldev->dev, "kpc_dma_transfer(priv = [%p], kcb = [%p], iov_base = [%p], iov_len = %ld) ldev = [%p]\n", priv, kcb, (void *)iov_base, iov_len, ldev); acd = (struct aio_cb_data *) kzalloc(sizeof(struct aio_cb_data), GFP_KERNEL); if (!acd){ diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c index dece60e6e3f3..004d91b5ad00 100644 --- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c +++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c @@ -21,7 +21,7 @@ static LIST_HEAD(kpc_dma_list); /********** kpc_dma_list list management **********/ -struct kpc_dma_device * kpc_dma_lookup_device(int minor) +struct kpc_dma_device *kpc_dma_lookup_device(int minor) { struct kpc_dma_device *c; mutex_lock(&kpc_dma_mtx); @@ -36,14 +36,14 @@ struct kpc_dma_device * kpc_dma_lookup_device(int minor) return c; } -void kpc_dma_add_device(struct kpc_dma_device * ldev) +void kpc_dma_add_device(struct kpc_dma_device *ldev) { mutex_lock(&kpc_dma_mtx); list_add(&ldev->list, &kpc_dma_list); mutex_unlock(&kpc_dma_mtx); } -void kpc_dma_del_device(struct kpc_dma_device * ldev) +void kpc_dma_del_device(struct kpc_dma_device *ldev) { mutex_lock(&kpc_dma_mtx); list_del(&ldev->list); @@ -80,7 +80,7 @@ static ssize_t show_engine_regs(struct device *dev, struct device_attribute *at } DEVICE_ATTR(engine_regs, 0444, show_engine_regs, NULL); -static const struct attribute * ndd_attr_list[] = { +static const struct attribute *ndd_attr_list[] = { &dev_attr_engine_regs.attr, NULL, }; @@ -203,7 +203,7 @@ struct platform_driver kpc_dma_plat_driver_i = { }; static -int __init kpc_dma_driver_init(void) +int __init kpc_dma_driver_init(void) { int err; @@ -239,7 +239,7 @@ int __init kpc_dma_driver_init(void) module_init(kpc_dma_driver_init); static -void __exit kpc_dma_driver_exit(void) +void __exit kpc_dma_driver_exit(void) { platform_driver_unregister(&kpc_dma_plat_driver_i); class_destroy(kpc_dma_class); diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h index 67c0ea31acab..8101601736a2 100644 --- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h +++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h @@ -56,7 +56,7 @@ struct dev_private_data { u64 user_sts; }; -struct kpc_dma_device * kpc_dma_lookup_device(int minor); +struct kpc_dma_device *kpc_dma_lookup_device(int minor); extern struct file_operations kpc_dma_fops; @@ -172,12 +172,12 @@ void SetClearEngineControl(struct kpc_dma_device *eng, u32 set_bits, u32 clear_ } static inline -void SetEngineNextPtr(struct kpc_dma_device *eng, struct kpc_dma_descriptor * desc) +void SetEngineNextPtr(struct kpc_dma_device *eng, struct kpc_dma_descriptor *desc) { writel(desc->MyDMAAddr, eng->eng_regs + 2); } static inline -void SetEngineSWPtr(struct kpc_dma_device *eng, struct kpc_dma_descriptor * desc) +void SetEngineSWPtr(struct kpc_dma_device *eng, struct kpc_dma_descriptor *desc) { writel(desc->MyDMAAddr, eng->eng_regs + 3); } -- 2.17.1