Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32831335rwd; Fri, 7 Jul 2023 23:20:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQ0jSMWA3Iz+YdGYbqhXGcga4jBMhnOfUbY6ADQARKqKtz8xCZ69+adZ6PQxMlLPIEjYKh X-Received: by 2002:a92:d690:0:b0:345:9798:9f7 with SMTP id p16-20020a92d690000000b00345979809f7mr8720713iln.14.1688797235546; Fri, 07 Jul 2023 23:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688797235; cv=none; d=google.com; s=arc-20160816; b=LWMtTJh2wy+3HGBOw839k37k8PifosRc9vVu8/L2ICenbPklFZRz513ypZq8sSjsgb QhsqEeDch30m6V2K0bO/vHXJzB4FuBD8dXjZ/pgTq+FBJhEUJTtXjSRTxI+Ou36e8NOO W2hJ0KKuPVP/DMaRJFlyJYGkHZ0Q044+vEnNenL3oyIJWuml0MD4ApvOWDzeaweGn8+N Wk4UZoYQ/il21s6zEJnjx0ha76nyLW6iPtfmxGKQcN1C9vEJ2efmB/eWx5tXzW8VRiMS yA/2HgA9DISGz7ygGupNqObDJAgFTKduX7AncMs8OEk5koAJiVqIghyb97SauH17JYxc Zufw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=4TCnZ9Yp/QzfZmo6gCMRZiYF2goV1i5forJ0EUEXVqU=; fh=VQNhSHK2Ewh5L29yHumFsqVZCDYXkUXMqTRULp1ETbw=; b=uqLzUS+29Cf+ZqtIl2Jl5B9T5RVtByeNhU+1kipCszlVqBu5ZNEy5bxHIGmICWAncn Z+FkRGbZqtVr8877Sm6keM9o70yYt1NSwb2/PAjAGMTdtowoMyjPfyuy+uUN3ltj7WOJ 1S3Ogqura7U/Q4Mp6BSePJwd3ctcuFXV0INwuIj3tq+HtEct2E+zkrmhO9BE2JdeBZEu 22leik4j5IMvNE2pVa61dMdt++eJTmrQ3kSy7F+10D3ORppx0Bjr753L9jZ7U/bGRlFN dAUUq5gojfi75a74Dlwrb1M41N9vNy0p0mwbRI655laN4wYr2QEO5aaNNU8GheGOu2gc WNLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=g7RF9azN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a170903200c00b001b8944aa943si4718259pla.315.2023.07.07.23.20.22; Fri, 07 Jul 2023 23:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=g7RF9azN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232505AbjGHDzV (ORCPT + 99 others); Fri, 7 Jul 2023 23:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjGHDzT (ORCPT ); Fri, 7 Jul 2023 23:55:19 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8109C1FEA for ; Fri, 7 Jul 2023 20:55:18 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-6355e774d0aso16348076d6.1 for ; Fri, 07 Jul 2023 20:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688788517; x=1691380517; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=4TCnZ9Yp/QzfZmo6gCMRZiYF2goV1i5forJ0EUEXVqU=; b=g7RF9azNYneFpUruGq9YDr0wn5usxd4szawIy9Lg6/SYNBWeoinWHFZ7BO2JI6Enki tB6yKCYwNTy0IGmNI/HtlbL30Knr+Gbga60YLmWoKo/RPE0Q6hFxaXRani3ZLO60zPAx 17I1NwMDq9xcPcXdmBzAfgYqxh5Z4b5ju2A7fEphRNM6bQFAWovjAZFsUfQs5mTTk4QV 67GhjP+MatcTi/XK8gF8LpAIKY9y23sYYte2atISKLbpO1ScjJKQWweAXlllZe47NkwA u8n9CfzP3tGs10u0P8kydE/QgRzfjAsX7UU1BnvVKjCB+JIA2NqWB8JCTLxMsddeo0QP /hXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688788517; x=1691380517; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4TCnZ9Yp/QzfZmo6gCMRZiYF2goV1i5forJ0EUEXVqU=; b=fC4lvHqZorNzB2CprZvyMUO/+JsOoyKhyDBRucoKyYFAnwkShYw2QOD5GOxrNkkNT9 /M/VyrFfXFrYUGZZv90dGWWSEnDelcAmxlasg07eKo62V/93UPsKY1OHpzpcsF9S9ecT ncGKvxomVZwyKTulWeoIi+kUUbwVorI/LM15IuDZHfKz5VvtF2GMrN9DMIw7IWj0Src6 YEgUB59C6SlDUhjLk+YtaaEsT5A0DJxT+uLreFMyjGxlyq7dbKPcuyOFt7zU9OqjSzZS BabggrCcF2slqjiHhc7fggk/pYNDkF0q078WcpC17gGmidDRs3L4JHXuAnEKqb6vPq4n NCaw== X-Gm-Message-State: ABy/qLaAHMu1OKdB3HmrutqQkjYii1CPgSbETaErxCUYgBWthIkVK5J2 cVSNV4o+vLYx/nYmQkSoAV7z9jSYP+8= X-Received: by 2002:a0c:e44f:0:b0:635:3892:a2b0 with SMTP id d15-20020a0ce44f000000b006353892a2b0mr6101298qvm.15.1688788517523; Fri, 07 Jul 2023 20:55:17 -0700 (PDT) Received: from alolivei-thinkpadt480s.gru.csb ([2804:14c:bf20:86d6:7871:f7e9:8a15:865a]) by smtp.gmail.com with ESMTPSA id p8-20020a0c8c88000000b006300ff90e71sm2850435qvb.122.2023.07.07.20.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 20:55:16 -0700 (PDT) Date: Sat, 8 Jul 2023 00:55:11 -0300 From: Alexon Oliveira To: alexondunkan@gmail.com Cc: martyn@welchs.me.uk, manohar.vanga@gmail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH] staging: vme_user: fix check alignment should match open parenthesis Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adhere to Linux kernel coding style. Reported by checkpatch: CHECK: Alignment should match open parenthesis #132: FILE: drivers/staging/vme_user/vme_bridge.h:132 #135: FILE: drivers/staging/vme_user/vme_bridge.h:135 #139: FILE: drivers/staging/vme_user/vme_bridge.h:139 #142: FILE: drivers/staging/vme_user/vme_bridge.h:142 #144: FILE: drivers/staging/vme_user/vme_bridge.h:144 #146: FILE: drivers/staging/vme_user/vme_bridge.h:146 #148: FILE: drivers/staging/vme_user/vme_bridge.h:148 #152: FILE: drivers/staging/vme_user/vme_bridge.h:152 #163: FILE: drivers/staging/vme_user/vme_bridge.h:163 #173: FILE: drivers/staging/vme_user/vme_bridge.h:173 #175: FILE: drivers/staging/vme_user/vme_bridge.h:175 Signed-off-by: Alexon Oliveira diff --git a/drivers/staging/vme_user/vme_bridge.h b/drivers/staging/vme_user/vme_bridge.h index 11df0a5e7f7b..a0d7a8db239d 100644 --- a/drivers/staging/vme_user/vme_bridge.h +++ b/drivers/staging/vme_user/vme_bridge.h @@ -128,28 +128,21 @@ struct vme_bridge { struct mutex irq_mtx; /* Slave Functions */ - int (*slave_get)(struct vme_slave_resource *, int *, - unsigned long long *, unsigned long long *, dma_addr_t *, - u32 *, u32 *); - int (*slave_set)(struct vme_slave_resource *, int, unsigned long long, - unsigned long long, dma_addr_t, u32, u32); + int (*slave_get)(struct vme_slave_resource *, int *, unsigned long long *, + unsigned long long *, dma_addr_t *, u32 *, u32 *); + int (*slave_set)(struct vme_slave_resource *, int, unsigned long long, unsigned long long, dma_addr_t, u32, u32); /* Master Functions */ - int (*master_get)(struct vme_master_resource *, int *, - unsigned long long *, unsigned long long *, u32 *, u32 *, - u32 *); - int (*master_set)(struct vme_master_resource *, int, - unsigned long long, unsigned long long, u32, u32, u32); - ssize_t (*master_read)(struct vme_master_resource *, void *, size_t, - loff_t); - ssize_t (*master_write)(struct vme_master_resource *, void *, size_t, - loff_t); - unsigned int (*master_rmw)(struct vme_master_resource *, unsigned int, - unsigned int, unsigned int, loff_t); + int (*master_get)(struct vme_master_resource *, int *, unsigned long long *, + unsigned long long *, u32 *, u32 *, u32 *); + int (*master_set)(struct vme_master_resource *, int, unsigned long long, + unsigned long long, u32, u32, u32); + ssize_t (*master_read)(struct vme_master_resource *, void *, size_t, loff_t); + ssize_t (*master_write)(struct vme_master_resource *, void *, size_t, loff_t); + unsigned int (*master_rmw)(struct vme_master_resource *, unsigned int, unsigned int, unsigned int, loff_t); /* DMA Functions */ - int (*dma_list_add)(struct vme_dma_list *, struct vme_dma_attr *, - struct vme_dma_attr *, size_t); + int (*dma_list_add)(struct vme_dma_list *, struct vme_dma_attr *, struct vme_dma_attr *, size_t); int (*dma_list_exec)(struct vme_dma_list *); int (*dma_list_empty)(struct vme_dma_list *); @@ -159,24 +152,19 @@ struct vme_bridge { /* Location monitor functions */ int (*lm_set)(struct vme_lm_resource *, unsigned long long, u32, u32); - int (*lm_get)(struct vme_lm_resource *, unsigned long long *, u32 *, - u32 *); - int (*lm_attach)(struct vme_lm_resource *, int, - void (*callback)(void *), void *); + int (*lm_get)(struct vme_lm_resource *, unsigned long long *, u32 *, u32 *); + int (*lm_attach)(struct vme_lm_resource *, int, void (*callback)(void *), void *); int (*lm_detach)(struct vme_lm_resource *, int); /* CR/CSR space functions */ int (*slot_get)(struct vme_bridge *); /* Bridge parent interface */ - void *(*alloc_consistent)(struct device *dev, size_t size, - dma_addr_t *dma); - void (*free_consistent)(struct device *dev, size_t size, - void *vaddr, dma_addr_t dma); + void *(*alloc_consistent)(struct device *dev, size_t size, dma_addr_t *dma); + void (*free_consistent)(struct device *dev, size_t size, void *vaddr, dma_addr_t dma); }; -void vme_bus_error_handler(struct vme_bridge *bridge, - unsigned long long address, int am); +void vme_bus_error_handler(struct vme_bridge *bridge, unsigned long long address, int am); void vme_irq_handler(struct vme_bridge *, int, int); struct vme_bridge *vme_init_bridge(struct vme_bridge *);