Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3199080imm; Sun, 29 Jul 2018 12:39:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpccaEckEd6PRdXmpZ+EmNlNeio6sbvdmK7Zxzfq8n9tScqjAIOq50y6zNoaftFulT23VE7Z X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr14035853plb.248.1532893152768; Sun, 29 Jul 2018 12:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532893152; cv=none; d=google.com; s=arc-20160816; b=OYeJsauGD+L2raOk8NaYuZl6WcnpZQk5Tg854fKVZr7BOzlNlFATMSpQ4IoR5KIHlm xiQWmWzRfgW5RVN3wADuP7Csf4Byr4Tnp4KhNAf2go4+EKmCoB/V+My1jMXUp1sZ6IO6 53m0KZ7WygXsF4kANOx8PoDHByGqIFL4qv6sfMXONUlzDY+OVPVMBlQa6xAmLAApTQNU nVdxS5mnfw42myBuMyBNVuhM0d6BKTOeXLIsgx2HRvPRbJyQFsERA1QmeuRas3HbdKef 5L9wOJRaHij3/CCc0eZFybl8+tbis1iK6GtLsg5Qv1j29fupHZcGtjDSOLj5pIcxWBTf g61w== 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:arc-authentication-results; bh=pm57v/24+HRgbJ93VzFn1J9XogQIktPrn3/dYpTsnaY=; b=WJyWxlQwt4GPYTn4aMLp9/UcqfdWklIF7ev5G823ZY+jVI0jRWx8Veg1irMaHzW2eF JsomEo2PmAWi2sn1lkRXS+TgwrgrggY7JXz4t9/WavcLw86uQcQPcuONQza80n2mCk1p ebhykwrFot9lsNMCznO7nqufyLZ99MVbLiyLbQRSaznD4JbdOcAYXx/X5ML6rvqrhP+Z 4w6NeigAh/yWO1UNPQ7/b55rA1sFZe3IGTj6BUBaG7q1gFBPl9qC4oIb9Vtf3+hDYBJg oIBr8gcMQ4sqFS3gNMbJFzXJrWkeZ75DmrYDIG3WHPf+Aa/0BjBbEBzvvUtqHLZo5j4R 9zrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g74F+Qpk; 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 s22-v6si8232433plr.498.2018.07.29.12.38.58; Sun, 29 Jul 2018 12:39:12 -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=g74F+Qpk; 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 S1731776AbeG2VJT (ORCPT + 99 others); Sun, 29 Jul 2018 17:09:19 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:45962 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728934AbeG2VIg (ORCPT ); Sun, 29 Jul 2018 17:08:36 -0400 Received: by mail-pl0-f65.google.com with SMTP id j8-v6so4501074pll.12 for ; Sun, 29 Jul 2018 12:37: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 :mime-version:content-transfer-encoding; bh=pm57v/24+HRgbJ93VzFn1J9XogQIktPrn3/dYpTsnaY=; b=g74F+QpkiQpwMad8CoE5O4G2z9WQLYH/76cvGCgzxJmyzrlK4zI1Qjk2ycAadr44g9 OSQeQotbKEFTKy6UNAXS6H1Vms1pwAvugbp85k08y5CFG8RKjXd6p2kUmUHXSdOwqPRx M4HpqMpcDoGXbji3IQraOZXp4GleXpiNuBcTbNqKR8CXHLaGI1kL9SGiJOYTojnU42PG kFRzPIRjGEIfPTXPQkDG1swo4fdYnRbAMT6ScIDMzPStKA9Aw8aC4M7YJ7DlFJkhlwl7 G9mwefVesAjqSqdyR8jDjpjb2y95LS0/xnWDYGC2Xoz1j89JaJR7QI8y8Bm+JSOjKQ+E wcFA== 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=pm57v/24+HRgbJ93VzFn1J9XogQIktPrn3/dYpTsnaY=; b=gQL3+ZiqYZG5F9BikrjZcHt6vfrRGr9WOrSpHapxY+bg9ZB1d4GEyhK/EmyllSI431 X29GQKBCSPXXcq3aFh5XjvtLcnlmt2iG8WLsQKoor8GGnSFuHtm1YnhEOWgIHCbtMytL 9QLbsZlmxHkNRYwoYDfQ6fJJ0c+A9dVKs9J4ch1qx/EXdkbPFIhNePdMoBUK+PU+puOA 2+sdhaWocf2JFrZpkHzM31sVdK0chimzgxhWqShHiGSnbRFZ/jfd71OqFggDhnD6y2dG yRSnkKJn66RdGwX29AGBKpzVHlU5WCK9ZzSEyOfPlM3dp8k2UPL7RYhiv59L/gV41+AZ v+IQ== X-Gm-Message-State: AOUpUlFpfIHWPH8mv5xJvSdUmCMoTRTvkL+u5ygWWJ0xdWIZcR6jRUJ6 Xw5szW/NPchp+Sn1zZMLZwo= X-Received: by 2002:a17:902:342:: with SMTP id 60-v6mr13741308pld.15.1532893024818; Sun, 29 Jul 2018 12:37:04 -0700 (PDT) Received: from toddpoynor2.mtv.corp.google.com ([2620:0:1000:3701:7d29:cd13:d903:7908]) by smtp.gmail.com with ESMTPSA id k26-v6sm27474062pfb.167.2018.07.29.12.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jul 2018 12:37:04 -0700 (PDT) From: Todd Poynor To: Rob Springer , John Joseph , Ben Chan , Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Todd Poynor Subject: [PATCH 07/13] staging: gasket: ioctl: simplify comments for static functions Date: Sun, 29 Jul 2018 12:36:40 -0700 Message-Id: <20180729193646.201721-8-toddpoynor@gmail.com> X-Mailer: git-send-email 2.18.0.345.g5c9ce644c3-goog In-Reply-To: <20180729193646.201721-1-toddpoynor@gmail.com> References: <20180729193646.201721-1-toddpoynor@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Todd Poynor Static functions don't need kernel doc formatting, can be simplified. Reformat comments that can be single-line. Remove extraneous text. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 51 +++++---------------------- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/drivers/staging/gasket/gasket_ioctl.c b/drivers/staging/gasket/gasket_ioctl.c index 78a132a60cc4f..55bdd7bfac866 100644 --- a/drivers/staging/gasket/gasket_ioctl.c +++ b/drivers/staging/gasket/gasket_ioctl.c @@ -170,14 +170,7 @@ long gasket_is_supported_ioctl(uint cmd) } } -/* - * Permission checker for Gasket ioctls. - * @filp: File structure pointer describing this node usage session. - * @cmd: ioctl number to handle. - * - * Check permissions for Gasket ioctls. - * Returns true if the file opener may execute this ioctl, or false otherwise. - */ +/* Check permissions for Gasket ioctls. */ static bool gasket_ioctl_check_permissions(struct file *filp, uint cmd) { bool alive; @@ -218,11 +211,7 @@ static bool gasket_ioctl_check_permissions(struct file *filp, uint cmd) return false; /* unknown permissions */ } -/* - * Associate an eventfd with an interrupt. - * @gasket_dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to gasket_interrupt_eventfd struct in userspace. - */ +/* Associate an eventfd with an interrupt. */ static int gasket_set_event_fd(struct gasket_dev *gasket_dev, struct gasket_interrupt_eventfd __user *argp) { @@ -237,11 +226,7 @@ static int gasket_set_event_fd(struct gasket_dev *gasket_dev, gasket_dev->interrupt_data, die.interrupt, die.event_fd); } -/* - * Reads the size of the page table. - * @gasket_dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to gasket_page_table_ioctl struct in userspace. - */ +/* Read the size of the page table. */ static int gasket_read_page_table_size( struct gasket_dev *gasket_dev, struct gasket_page_table_ioctl __user *argp) @@ -268,11 +253,7 @@ static int gasket_read_page_table_size( return ret; } -/* - * Reads the size of the simple page table. - * @gasket_dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to gasket_page_table_ioctl struct in userspace. - */ +/* Read the size of the simple page table. */ static int gasket_read_simple_page_table_size( struct gasket_dev *gasket_dev, struct gasket_page_table_ioctl __user *argp) @@ -299,11 +280,7 @@ static int gasket_read_simple_page_table_size( return ret; } -/* - * Sets the boundary between the simple and extended page tables. - * @gasket_dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to gasket_page_table_ioctl struct in userspace. - */ +/* Set the boundary between the simple and extended page tables. */ static int gasket_partition_page_table( struct gasket_dev *gasket_dev, struct gasket_page_table_ioctl __user *argp) @@ -340,11 +317,7 @@ static int gasket_partition_page_table( return ret; } -/* - * Maps a userspace buffer to a device virtual address. - * @gasket_dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to a gasket_page_table_ioctl struct in userspace. - */ +/* Map a userspace buffer to a device virtual address. */ static int gasket_map_buffers(struct gasket_dev *gasket_dev, struct gasket_page_table_ioctl __user *argp) { @@ -370,11 +343,7 @@ static int gasket_map_buffers(struct gasket_dev *gasket_dev, ibuf.host_address, ibuf.device_address, ibuf.size / PAGE_SIZE); } -/* - * Unmaps a userspace buffer from a device virtual address. - * @gasket_dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to a gasket_page_table_ioctl struct in userspace. - */ +/* Unmap a userspace buffer from a device virtual address. */ static int gasket_unmap_buffers(struct gasket_dev *gasket_dev, struct gasket_page_table_ioctl __user *argp) { @@ -402,10 +371,8 @@ static int gasket_unmap_buffers(struct gasket_dev *gasket_dev, } /* - * Tell the driver to reserve structures for coherent allocation, and allocate - * or free the corresponding memory. - * @dev: Pointer to the current gasket_dev we're using. - * @argp: Pointer to a gasket_coherent_alloc_config_ioctl struct in userspace. + * Reserve structures for coherent allocation, and allocate or free the + * corresponding memory. */ static int gasket_config_coherent_allocator( struct gasket_dev *gasket_dev, -- 2.18.0.345.g5c9ce644c3-goog