Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4582885imu; Mon, 12 Nov 2018 13:27:46 -0800 (PST) X-Google-Smtp-Source: AJdET5fG4kxV8NzrZ5yZpKACQdtONDwHjp0rzb939NfBoZpdhorInyXeBJ8nQyPoyUK7b2rEN4Ii X-Received: by 2002:a63:fe0a:: with SMTP id p10mr2239802pgh.265.1542058066669; Mon, 12 Nov 2018 13:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542058066; cv=none; d=google.com; s=arc-20160816; b=BrGxLYx4Sj582+zi0soaScW8Id4YfuPdmSDbVp30mmXkHEcr50z0dI1CF0HjU/gzpP ZrzboduIwQ63V/UfdEGf1zC+C+kS7TKb+94EPxbjLKP6biXA5cgtZjDFYzjfiCQIL+Lu WFu8A2eJhzgol2M7BOcftQnlR2K0ejANFsSVSA7OuVU2XzHUEc/4cayy0q16YyRUpVSB DrYs5W6znK2a06QpaTVqrkwO87ViFfvLvxLAVJHno5emQSPfw64LTzVZcPozabwd6JMd cUe5oEmGFi3HtcvvTt/UcMupXy5T/hPxTexkT3byiOZZA2a2x4FoARKNI6xZmGO7DHSH NySA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=2YigA4xI0vqIvXIqwK5mp19gQJMv6bYkGSyKwrGBXoM=; b=0aNPh7LH61xtyKGpXK25WXRcrYC3cpuZSGAryVNSz6vfBKkCuwmuBIV311reTp1yty XHhR179dohf/bVjXcIuGVVPzyzA9Ij6F6wkYQ2KoK08Uvb2IHY/nJTORAWUr3JA5Bwzg xF3HUI/hhiLED0cPlW6rqbMrOQAjAUhFGj/5k4qF8OgblgCvFmOu6deVfZw078VZj+SN lFsSIvk/3wdmL1+itgtgcXBlePY58U9p42Hj4tN98tacbPrGIYsM26BxONLfku9gOZ8q Zw0mHqzXHwIODsT1yq5nvVlAei99dcjF96uhF250yq6bpjnsc3suZo1b9b77drhGI/LY 5bQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="k/TrHFGe"; 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 g70-v6si20907642pfd.86.2018.11.12.13.27.31; Mon, 12 Nov 2018 13:27:46 -0800 (PST) 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="k/TrHFGe"; 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 S1730548AbeKMHWF (ORCPT + 99 others); Tue, 13 Nov 2018 02:22:05 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:53462 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbeKMHWF (ORCPT ); Tue, 13 Nov 2018 02:22:05 -0500 Received: by mail-it1-f193.google.com with SMTP id r12-v6so14874625ita.3 for ; Mon, 12 Nov 2018 13:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=2YigA4xI0vqIvXIqwK5mp19gQJMv6bYkGSyKwrGBXoM=; b=k/TrHFGe0/BvxrdT6/73hseFsxAoVZjDzAQ/pH+YMlTitxUZFjXVlvJKEDGWdN5CHt RkuyV2BbVfw25Pon2WDIeVNFiyZixgDmGICTd6DFuyOU9R6L6gsbUuP7CY6ePpBPDp9G RcU6+BX8V1/p+Qg3PFj2Sl05aGgl4YoQghrC6mNMyeMJUeaBehGAhqgOk/NCovbUGFse y7NfwHFkM8cHBJWfJPmrutzSsDYhPScGkMIUkkFXmtEl+2sAUdaSWoCYhgdOERBLJHOs ePXp7nhrQqld4rkBLNwipX+zWEiSn2hGpdr0fdv5RXY0eUQzeQhqf55d9DHWKv8BAVG6 Wk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=2YigA4xI0vqIvXIqwK5mp19gQJMv6bYkGSyKwrGBXoM=; b=gYQCU30kPZhMgjw58VdO9+h+m1KswZVZx1i8sJKkqM51IbcZ9pHZOAb7+fWF6/LrDL pjqVcVbcahYJNRi26aSwxA6KtoEzM8DT3c9nFi6EC2IWNleE2eEpl1FmN9KYnTHWWPg3 wBDY1u2pRJjdKLe5EY5Ut1emPBWH58gJmgT3WDcHixPMFy3xYBQcxnEUMAky30kegxz1 apCySGxFnJvZDVA4ds5ROl9qjGg6MMHeF2DDH3yqzisk5TR1Fb0Zj2/mNeWgKpEVpZ4U ZPexezxrUcieUoPjzOTPhoKvZLycj7RrMSz/OPGvTUafB0obE19b9mi8oaMlOOXxUOmb fXmw== X-Gm-Message-State: AGRZ1gJ6l1tZs+vX+dd8FesVpov09Qfjc4Q5ZcYCNLF1ykNJcJjNak71 LJUzSKBJXFe4jCrBWqF9mpR/aMwp X-Received: by 2002:a02:7113:: with SMTP id n19-v6mr2381958jac.91.1542058024058; Mon, 12 Nov 2018 13:27:04 -0800 (PST) Received: from rdeal-VirtualBox (cpe-174-98-59-17.cinci.res.rr.com. [174.98.59.17]) by smtp.gmail.com with ESMTPSA id g18-v6sm5167290itg.7.2018.11.12.13.27.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Nov 2018 13:27:03 -0800 (PST) Date: Sat, 10 Nov 2018 00:04:34 -0500 From: Robert Deal To: Rob Springer , Todd Poynor , Ben Chan , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: gasket: formatting fixes Message-ID: <20181110050434.GA18281@rdeal-VirtualBox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reformat arguments in a few functions in gasket_page_table.c to better follow linux kernel formatting standards. Signed-off-by: Robert Deal --- drivers/staging/gasket/gasket_page_table.c | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index f5253ba9a430..26755d9ca41d 100644 --- a/drivers/staging/gasket/gasket_page_table.c +++ b/drivers/staging/gasket/gasket_page_table.c @@ -1088,9 +1088,9 @@ void gasket_page_table_reset(struct gasket_page_table *pg_tbl) } /* See gasket_page_table.h for description. */ -int gasket_page_table_lookup_page( - struct gasket_page_table *pg_tbl, ulong dev_addr, struct page **ppage, - ulong *poffset) +int gasket_page_table_lookup_page(struct gasket_page_table *pg_tbl, + ulong dev_addr, struct page **ppage, + ulong *poffset) { uint page_num; struct gasket_page_table_entry *pte; @@ -1134,9 +1134,9 @@ int gasket_page_table_lookup_page( } /* See gasket_page_table.h for description. */ -bool gasket_page_table_are_addrs_bad( - struct gasket_page_table *pg_tbl, ulong host_addr, ulong dev_addr, - ulong bytes) +bool gasket_page_table_are_addrs_bad(struct gasket_page_table *pg_tbl, + ulong host_addr, ulong dev_addr, + ulong bytes) { if (host_addr & (PAGE_SIZE - 1)) { dev_err(pg_tbl->device, @@ -1150,8 +1150,8 @@ bool gasket_page_table_are_addrs_bad( EXPORT_SYMBOL(gasket_page_table_are_addrs_bad); /* See gasket_page_table.h for description. */ -bool gasket_page_table_is_dev_addr_bad( - struct gasket_page_table *pg_tbl, ulong dev_addr, ulong bytes) +bool gasket_page_table_is_dev_addr_bad(struct gasket_page_table *pg_tbl, + ulong dev_addr, ulong bytes) { uint num_pages = bytes / PAGE_SIZE; @@ -1226,9 +1226,8 @@ int gasket_page_table_system_status(struct gasket_page_table *page_table) } /* Record the host_addr to coherent dma memory mapping. */ -int gasket_set_user_virt( - struct gasket_dev *gasket_dev, u64 size, dma_addr_t dma_address, - ulong vma) +int gasket_set_user_virt(struct gasket_dev *gasket_dev, u64 size, + dma_addr_t dma_address, ulong vma) { int j; struct gasket_page_table *pg_tbl; @@ -1346,8 +1345,7 @@ int gasket_free_coherent_memory(struct gasket_dev *gasket_dev, u64 size, } /* Release all coherent memory. */ -void gasket_free_coherent_memory_all( - struct gasket_dev *gasket_dev, u64 index) +void gasket_free_coherent_memory_all(struct gasket_dev *gasket_dev, u64 index) { if (!gasket_dev->page_table[index]) return; -- 2.17.1