Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp921950ybm; Wed, 22 May 2019 14:00:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCWGkQDvYSHzf+zCOJQt21a2pzz6nUS4+y+Qkrzqi+YW4QKyH/mQpzGT8PwVkWutlYHVGs X-Received: by 2002:a17:90a:22d0:: with SMTP id s74mr92860pjc.3.1558558839048; Wed, 22 May 2019 14:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558558839; cv=none; d=google.com; s=arc-20160816; b=c0UyO0DqUXr25dgdyZFv6dXqn8lVZsbR/DmqbIJDSXjKSgLhAeG3WeINLmEkuIesZc zmTKl8g4CSBzSnl6z8JJB4dKx12rgQt6rGbETVSsq72KP/FuIufXb4Gcwd0A4ENWs47G vWAmPFkvSUg+4wPLfMA9fnU5XeLLLj3rOlh2pncCBjQ8xn1TyAbPj5VIM0mySADshQa7 pyLulEsFBo1TV1zy3hYstx7SiF0Iwpb9x6cp3lGarv786zji0jP051dWAH4V1dCMjKia /c2JR8+1r6V9a5dSbY/yrmum7db1vO/2hJCC0xDhT3Z9/HorjFHChYg4Oe8gclfSUfUj x2GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wVzM4niY3zy81NT2oIqGefdVIsRifRFmdGCA5K8Tg8E=; b=M8GwCie8jqfYUX7fOC96jLn4sRbf0sbgWDXONWoUIP0ebL2LQhR4ZBftadk66rynxz Qq+R9Jboenb1t5jj5s6SE0IClZ6RupFUQnJUkud5oLNglDjsYwAfrXLz0TFP4Q4ueI/R +U3N/lmYGbJymMqshTgw6r9nGk3cOdckHgdtrBPClO7iqHPgudEEOKet0eySrz3WeaHN bbQauIHOA/rGQlXGYhNy70XN/OGhD5acX1r64huFJ+KHI7GFeMayREK4fO6eDyZHy9c9 rFASTClLhpHlZUCJH6kesnL8Mk5KtOqvs50B7QnqkusSG+ZakfpSzrr4nbcvrWS5T8xY YzUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=ZALnQcpZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si22832544pld.295.2019.05.22.14.00.23; Wed, 22 May 2019 14:00:39 -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=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=ZALnQcpZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730422AbfEVU7Q (ORCPT + 99 others); Wed, 22 May 2019 16:59:16 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44785 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730223AbfEVU7P (ORCPT ); Wed, 22 May 2019 16:59:15 -0400 Received: by mail-lj1-f194.google.com with SMTP id e13so3379953ljl.11 for ; Wed, 22 May 2019 13:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikanor-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wVzM4niY3zy81NT2oIqGefdVIsRifRFmdGCA5K8Tg8E=; b=ZALnQcpZJWxdmxktc+lG6HWKrFJgYqg1MSWtcFQID+vDGms4ojbKoIDiQYoDaGTZwX OrC6QUvcTSuuoKlNbj/etZi8Iz/cOmPn3ivI5L0lq1SI2po/vIDwgrKfr7SRhpBhOTwE dwMOm0MNKWPT+mFi4henWIG+PDYwANHw51y4mZvAyjnVGbE1LCnCi1KZvu5kP7IRSyBB pBBzaAEjJIGqoXeFAq+S047w2dzfEFNks4VZQcNokha6ww1DUb1iUAJKCnjSSFq/WPak jnZDi+cuT143W5me8K8ilJMiBcSDE/3no3GAq1ngB6wLq1cAIxdNHPH0F5vGwUm4fLRN R3ow== 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:mime-version:content-transfer-encoding; bh=wVzM4niY3zy81NT2oIqGefdVIsRifRFmdGCA5K8Tg8E=; b=bohInC2QzbtTBh+wLIiut/bTgtIapf3bVsR+UorrD6jQjEmjBYL5yq1WifzFIUMePa yuo/XpPXApj6naaSqAAuv/2qhaBDxYZrK2fcLlMGL99pGKJexTdwtLiTZzUdTQSwpn6X lj18adApefmDSbhuwRhbx+iuDHpXrLED/3w7+7Gz75mqbPdjKs3QIahfcRTqM1SA4xsK Uu8NAR3q2iQYhNcMpZmotA+y1z4pOJYtbyfFZLimXxplIqnO6Akz8N5XzjxYibnXHq05 tbX/uth3hqkWK6nSlWfGd+LGbah3TQiq4PijeFiWIPDp3KLugbYPFdsoBkfoaITzcR95 wYIw== X-Gm-Message-State: APjAAAXZdBBNf1RcbR581raVFNGNnCCoJhZ5fpENvVFRGYVclweC+mEf 4hO0YlaO9ThQI8eW2EUMZdaexw== X-Received: by 2002:a2e:96da:: with SMTP id d26mr36992761ljj.9.1558558753363; Wed, 22 May 2019 13:59:13 -0700 (PDT) Received: from dev.nikanor.nu (78-72-133-4-no161.tbcn.telia.com. [78.72.133.4]) by smtp.gmail.com with ESMTPSA id e12sm5506518lfb.70.2019.05.22.13.59.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 13:59:12 -0700 (PDT) From: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= To: gregkh@linuxfoundation.org Cc: jeremy@azazel.net, dan.carpenter@oracle.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Simon=20Sandstr=C3=B6m?= Subject: [PATCH 4/6] staging: kpc2000: add spaces around operators in cell_probe.c Date: Wed, 22 May 2019 22:58:47 +0200 Message-Id: <20190522205849.17444-5-simon@nikanor.nu> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190522205849.17444-1-simon@nikanor.nu> References: <20190522205849.17444-1-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes checkpatch.pl warning "spaces preferred around that ". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.c index 4742f909db79..9a32660a56e2 100644 --- a/drivers/staging/kpc2000/kpc2000/cell_probe.c +++ b/drivers/staging/kpc2000/kpc2000/cell_probe.c @@ -320,7 +320,7 @@ static int probe_core_uio(unsigned int core_num, struct kp2000_device *pcard, kudev->uioinfo.mem[0].name = "uiomap"; kudev->uioinfo.mem[0].addr = pci_resource_start(pcard->pdev, REG_BAR) + cte.offset; - kudev->uioinfo.mem[0].size = (cte.length + PAGE_SIZE-1) & ~(PAGE_SIZE-1); // Round up to nearest PAGE_SIZE boundary + kudev->uioinfo.mem[0].size = (cte.length + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1); // Round up to nearest PAGE_SIZE boundary kudev->uioinfo.mem[0].memtype = UIO_MEM_PHYS; kudev->dev = device_create(kpc_uio_class, &pcard->pdev->dev, MKDEV(0,0), kudev, "%s.%d.%d.%d", kudev->uioinfo.name, pcard->card_num, cte.type, kudev->core_num); @@ -399,7 +399,7 @@ static int kp2000_setup_dma_controller(struct kp2000_device *pcard) for (i = 0 ; i < 32 ; i++) { capabilities_reg = readq( pcard->dma_bar_base + KPC_DMA_C2S_BASE_OFFSET + (KPC_DMA_ENGINE_SIZE * i) ); if (capabilities_reg & ENGINE_CAP_PRESENT_MASK) { - err = create_dma_engine_core(pcard, (KPC_DMA_C2S_BASE_OFFSET + (KPC_DMA_ENGINE_SIZE * i)), 32+i, pcard->pdev->irq); + err = create_dma_engine_core(pcard, (KPC_DMA_C2S_BASE_OFFSET + (KPC_DMA_ENGINE_SIZE * i)), 32 + i, pcard->pdev->irq); if (err) goto err_out; } @@ -481,7 +481,7 @@ int kp2000_probe_cores(struct kp2000_device *pcard) // Finally, instantiate a UIO device for the core_table. cte.type = 0; // CORE_ID_BOARD_INFO cte.offset = 0; // board info is always at the beginning - cte.length = 512*8; + cte.length = 512 * 8; cte.s2c_dma_present = false; cte.s2c_dma_channel_num = 0; cte.c2s_dma_present = false; -- 2.20.1