From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BB81C433E0 for ; Sun, 7 Feb 2021 14:12:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1266C64E10 for ; Sun, 7 Feb 2021 14:12:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbhBGOL1 (ORCPT ); Sun, 7 Feb 2021 09:11:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbhBGOK2 (ORCPT ); Sun, 7 Feb 2021 09:10:28 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DA6C061756 for ; Sun, 7 Feb 2021 06:09:46 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id a1so13999388wrq.6 for ; Sun, 07 Feb 2021 06:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OG1Z720HiLI9TnXhLnBUmjf5XIxwOfpZr3RRpPSXgXQ=; b=GfsaJtmnGDEpBhuLitsDTYUsTz64nplZRyNBtdJpb486s9lXKCtHilA3fpiApDplH3 4CDoarxDiA934iORYhlKJWX1+PAAtdYLb98tzM+WJ/upRbmnKKWUR/hreMXjZNY4Cxa/ pSLmUGvN10759ojMa98twMbNDyyyT75Hh4GQ94IuSO+JpmXyDCpqs7lbzNqTPO54C0AV 7ZY/IdamEpZ7mPIKuwi3a1FLz/NKpy7Y9QsSRgf+9CfZONvXYBwThW4nrI4rbaD0LgVy a410LPmAp0V8TEc1F7YCnqFbxF8F2ryrdfmWgcMvMfhnyK0x++XWwDsPpKE+tkISIYXa GZPg== 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; bh=OG1Z720HiLI9TnXhLnBUmjf5XIxwOfpZr3RRpPSXgXQ=; b=HBN9+mx5cP8WJzQuTInsuVymBpWQAodvX34vWZ0xElckP+iGOXjw/JCZtgxjUjJ0Lr NZIHKB4VvgnDuw5M+FPwrwP5pG6zdn3i4venPsYdYjkrA7Q25kfVNPDx+rmS2SUqKc4y 2hvAEBuFRzaHq3sT7nuzFNScy7rrtpdwm8imBL+mg9PMRc9cYsdGYZpIFUnF4HKRvRB2 T0T9DEWedSS/NTPsDBuK5MHA2rUcQduj9KMYtrOI+5H5vDWeOteZbIXw7oUtzpTqWPVp braUi/xrBrd5A9d+ZdlG5z2sjptoru+5r+iGbNMlPsgYRvYrM9pR0Vgqu8xvZpWt8kg1 h/Yw== X-Gm-Message-State: AOAM533TVChFNQXCxWSCOc2iMpc0KoYuzE8V4K3CYT+3NCN8IrASkRfC mCJhvbp90r/sHriDWrnlpZ0= X-Google-Smtp-Source: ABdhPJzoppnoztlFXc9Mnu2L51Ulp5+l73hpF4TySI7ZzlwTO/JM1danrGQ+bgtcI06kEfUN4YW+WQ== X-Received: by 2002:adf:cd01:: with SMTP id w1mr15008526wrm.316.1612706985388; Sun, 07 Feb 2021 06:09:45 -0800 (PST) Received: from mahak-Inspiron-7570 ([103.153.208.42]) by smtp.gmail.com with ESMTPSA id v5sm2049044wro.71.2021.02.07.06.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 06:09:44 -0800 (PST) From: Mahak Gupta To: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, rcy@google.com, benchan@chromium.org, toddpoynor@google.com, rspringer@google.com Cc: Mahak Gupta Subject: [PATCH] staging: gasket: fix indentation and lines ending with open parenthesis Date: Sun, 7 Feb 2021 19:39:28 +0530 Message-Id: <20210207140928.11029-1-gmahak1@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes warnings of 'checkpatch.pl'. According to Linux coding guidelines, code should be aligned properly to match with open parenthesis and lines should not end with open parenthesis. Signed-off-by: Mahak Gupta --- drivers/staging/gasket/gasket_ioctl.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/staging/gasket/gasket_ioctl.c b/drivers/staging/gasket/gasket_ioctl.c index e3047d36d8db..a966231bad42 100644 --- a/drivers/staging/gasket/gasket_ioctl.c +++ b/drivers/staging/gasket/gasket_ioctl.c @@ -40,7 +40,7 @@ static int gasket_set_event_fd(struct gasket_dev *gasket_dev, /* 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) + struct gasket_page_table_ioctl __user *argp) { int ret = 0; struct gasket_page_table_ioctl ibuf; @@ -51,8 +51,7 @@ static int gasket_read_page_table_size(struct gasket_dev *gasket_dev, if (ibuf.page_table_index >= gasket_dev->num_page_tables) return -EFAULT; - ibuf.size = gasket_page_table_num_entries( - gasket_dev->page_table[ibuf.page_table_index]); + ibuf.size = gasket_page_table_num_entries(gasket_dev->page_table[ibuf.page_table_index]); trace_gasket_ioctl_page_table_data(ibuf.page_table_index, ibuf.size, ibuf.host_address, @@ -66,7 +65,7 @@ static int gasket_read_page_table_size(struct gasket_dev *gasket_dev, /* 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) + struct gasket_page_table_ioctl __user *argp) { int ret = 0; struct gasket_page_table_ioctl ibuf; @@ -92,7 +91,7 @@ static int gasket_read_simple_page_table_size(struct gasket_dev *gasket_dev, /* 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) + struct gasket_page_table_ioctl __user *argp) { int ret; struct gasket_page_table_ioctl ibuf; @@ -107,8 +106,8 @@ static int gasket_partition_page_table(struct gasket_dev *gasket_dev, if (ibuf.page_table_index >= gasket_dev->num_page_tables) return -EFAULT; - max_page_table_size = gasket_page_table_max_size( - gasket_dev->page_table[ibuf.page_table_index]); + max_page_table_size = gasket_page_table_max_size + (gasket_dev->page_table[ibuf.page_table_index]); if (ibuf.size > max_page_table_size) { dev_dbg(gasket_dev->dev, @@ -119,8 +118,7 @@ static int gasket_partition_page_table(struct gasket_dev *gasket_dev, mutex_lock(&gasket_dev->mutex); - ret = gasket_page_table_partition( - gasket_dev->page_table[ibuf.page_table_index], ibuf.size); + ret = gasket_page_table_partition(gasket_dev->page_table[ibuf.page_table_index], ibuf.size); mutex_unlock(&gasket_dev->mutex); return ret; @@ -183,7 +181,7 @@ static int gasket_unmap_buffers(struct gasket_dev *gasket_dev, * corresponding memory. */ static int gasket_config_coherent_allocator(struct gasket_dev *gasket_dev, - struct gasket_coherent_alloc_config_ioctl __user *argp) + struct gasket_coherent_alloc_config_ioctl __user *argp) { int ret; struct gasket_coherent_alloc_config_ioctl ibuf; -- 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E471C433DB for ; Sun, 7 Feb 2021 14:10:03 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCD9364E49 for ; Sun, 7 Feb 2021 14:10:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CCD9364E49 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A8C0685B11; Sun, 7 Feb 2021 14:10:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HPiuIaNhrGjU; Sun, 7 Feb 2021 14:10:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 17CF8859EF; Sun, 7 Feb 2021 14:10:01 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CDF781BF3F4 for ; Sun, 7 Feb 2021 14:09:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C6DCE868F0 for ; Sun, 7 Feb 2021 14:09:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kdxN4fB-uRd1 for ; Sun, 7 Feb 2021 14:09:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id E47538672E for ; Sun, 7 Feb 2021 14:09:46 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id n6so1173936wrv.8 for ; Sun, 07 Feb 2021 06:09:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OG1Z720HiLI9TnXhLnBUmjf5XIxwOfpZr3RRpPSXgXQ=; b=GfsaJtmnGDEpBhuLitsDTYUsTz64nplZRyNBtdJpb486s9lXKCtHilA3fpiApDplH3 4CDoarxDiA934iORYhlKJWX1+PAAtdYLb98tzM+WJ/upRbmnKKWUR/hreMXjZNY4Cxa/ pSLmUGvN10759ojMa98twMbNDyyyT75Hh4GQ94IuSO+JpmXyDCpqs7lbzNqTPO54C0AV 7ZY/IdamEpZ7mPIKuwi3a1FLz/NKpy7Y9QsSRgf+9CfZONvXYBwThW4nrI4rbaD0LgVy a410LPmAp0V8TEc1F7YCnqFbxF8F2ryrdfmWgcMvMfhnyK0x++XWwDsPpKE+tkISIYXa GZPg== 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; bh=OG1Z720HiLI9TnXhLnBUmjf5XIxwOfpZr3RRpPSXgXQ=; b=Fj5Rzq0TaCDIf9pyU39fqyhAXIhJ5n7q0sqRGO1izJBtAPF9bcqMqGuWimCmZbPR5p Vx6Myl5oN5lXO+xjQDlMLYO3KyPjvTDmfpPqp0YNRv9HgZv64OZuoWS7QtAcYgHb/VRA 4yvcIPkIaJQJWtlavydFKYR7zd6PnNBe7zSLdlg29H2qCkv4xrNOoJUwCV1IpkUWzGDL KjdLtrzIcPUYUef8+5ogNpnKCYh85MjqSYxBKIWDAz3A2RauwM/Qchx446H3UF4SDndB cwrNvEmff73eKt0n9lZZ5QhYgD0f7rf7rCyoM3j7QC5M8BcR6+UyO71srgdP5zgaxjfw Ru3A== X-Gm-Message-State: AOAM533o703W5Wxj7zwigDEd9nAHWYF1Id+A4RD9fPNGgtehHtOrmwiY PGu+xkt5VYlSf1RY2mvwxP0= X-Google-Smtp-Source: ABdhPJzoppnoztlFXc9Mnu2L51Ulp5+l73hpF4TySI7ZzlwTO/JM1danrGQ+bgtcI06kEfUN4YW+WQ== X-Received: by 2002:adf:cd01:: with SMTP id w1mr15008526wrm.316.1612706985388; Sun, 07 Feb 2021 06:09:45 -0800 (PST) Received: from mahak-Inspiron-7570 ([103.153.208.42]) by smtp.gmail.com with ESMTPSA id v5sm2049044wro.71.2021.02.07.06.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 06:09:44 -0800 (PST) From: Mahak Gupta To: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, rcy@google.com, benchan@chromium.org, toddpoynor@google.com, rspringer@google.com Subject: [PATCH] staging: gasket: fix indentation and lines ending with open parenthesis Date: Sun, 7 Feb 2021 19:39:28 +0530 Message-Id: <20210207140928.11029-1-gmahak1@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mahak Gupta MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" This patch fixes warnings of 'checkpatch.pl'. According to Linux coding guidelines, code should be aligned properly to match with open parenthesis and lines should not end with open parenthesis. Signed-off-by: Mahak Gupta --- drivers/staging/gasket/gasket_ioctl.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/staging/gasket/gasket_ioctl.c b/drivers/staging/gasket/gasket_ioctl.c index e3047d36d8db..a966231bad42 100644 --- a/drivers/staging/gasket/gasket_ioctl.c +++ b/drivers/staging/gasket/gasket_ioctl.c @@ -40,7 +40,7 @@ static int gasket_set_event_fd(struct gasket_dev *gasket_dev, /* 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) + struct gasket_page_table_ioctl __user *argp) { int ret = 0; struct gasket_page_table_ioctl ibuf; @@ -51,8 +51,7 @@ static int gasket_read_page_table_size(struct gasket_dev *gasket_dev, if (ibuf.page_table_index >= gasket_dev->num_page_tables) return -EFAULT; - ibuf.size = gasket_page_table_num_entries( - gasket_dev->page_table[ibuf.page_table_index]); + ibuf.size = gasket_page_table_num_entries(gasket_dev->page_table[ibuf.page_table_index]); trace_gasket_ioctl_page_table_data(ibuf.page_table_index, ibuf.size, ibuf.host_address, @@ -66,7 +65,7 @@ static int gasket_read_page_table_size(struct gasket_dev *gasket_dev, /* 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) + struct gasket_page_table_ioctl __user *argp) { int ret = 0; struct gasket_page_table_ioctl ibuf; @@ -92,7 +91,7 @@ static int gasket_read_simple_page_table_size(struct gasket_dev *gasket_dev, /* 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) + struct gasket_page_table_ioctl __user *argp) { int ret; struct gasket_page_table_ioctl ibuf; @@ -107,8 +106,8 @@ static int gasket_partition_page_table(struct gasket_dev *gasket_dev, if (ibuf.page_table_index >= gasket_dev->num_page_tables) return -EFAULT; - max_page_table_size = gasket_page_table_max_size( - gasket_dev->page_table[ibuf.page_table_index]); + max_page_table_size = gasket_page_table_max_size + (gasket_dev->page_table[ibuf.page_table_index]); if (ibuf.size > max_page_table_size) { dev_dbg(gasket_dev->dev, @@ -119,8 +118,7 @@ static int gasket_partition_page_table(struct gasket_dev *gasket_dev, mutex_lock(&gasket_dev->mutex); - ret = gasket_page_table_partition( - gasket_dev->page_table[ibuf.page_table_index], ibuf.size); + ret = gasket_page_table_partition(gasket_dev->page_table[ibuf.page_table_index], ibuf.size); mutex_unlock(&gasket_dev->mutex); return ret; @@ -183,7 +181,7 @@ static int gasket_unmap_buffers(struct gasket_dev *gasket_dev, * corresponding memory. */ static int gasket_config_coherent_allocator(struct gasket_dev *gasket_dev, - struct gasket_coherent_alloc_config_ioctl __user *argp) + struct gasket_coherent_alloc_config_ioctl __user *argp) { int ret; struct gasket_coherent_alloc_config_ioctl ibuf; -- 2.17.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel