From patchwork Mon Nov 13 01:45:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 164307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp948830vqg; Sun, 12 Nov 2023 17:47:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE064rKJ94QaVHL7Ly23AUrb19fDpw9uEDmO6LG9PXXMwrafSO9nhWglw0PmKon9YA8Cnge X-Received: by 2002:a05:6a20:3942:b0:185:b04c:81a5 with SMTP id r2-20020a056a20394200b00185b04c81a5mr7117855pzg.57.1699840023204; Sun, 12 Nov 2023 17:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699840023; cv=none; d=google.com; s=arc-20160816; b=XZJ1sjdMiM0zZUi86+/33Uf8FNaZc2SHtwM6Gxefsyp2thImVibgqKpy2bTtVf6FOy KnKsZpVaNd/oX/Hj9xKOUIYvyR/l6UmKVSAA7tAYgn6/aPbNN9j6CMFxMHoAT3ARIKUI S7vXvBhJo7Lqdu88DhJ45hFGLOMt2MMOhHEARjzeOdUawY7qzbzIM9sbzybk12rOFELo Gatg173JNQ+O0SMg4/LmWuUFYkhLqfB2N785VzqW/Fpsr+YEf210MmZIG4ujTRrccpgx IKjTzvYHhMHklFlY04/wzrcm/uwIx62S0bykhxhwBwx2enxraKAWkFW4ozv8jSLJ7dHT ZK6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=H5roq/O5nn3D16hZL+MfrsTneekUm23DXbu6I0BZywc=; fh=sWLie+AasJsw9DDDW1e64iCbiRVVQa5FiTafBEY5OzU=; b=RGIyYS3evZhprQSjNSiyoYgJpAjHYNHUYZJNm42Nc5ZEuSGGo/NYNoyJPJ0SJFEvli cJqEWl8vczWtlYX2J823GEJIwALsHZgTM9AbuzOq0k8lS7R9ez7CPgIijO1s07ENj3s/ Yn6SIbpnU2uTuL4BhU3RwVlQUdRSQwFvn/ZrY0x+RF15/ADBAU/LVOw9PSq+7CMOn+Kj R9bGuWOwIyUdt5C9zeadUMvx4xWmxo73Pa5/Z9FSQ3aFhQjownggiEH5Tpge6ZrVnrnJ WmfJJ1Kyhs0svJnrp+TspMiUVfdU0v8ffvBqzs2/fWcO0gjqHnEqOQ7v9zpsEUQ7ILN1 VGIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v1-20020a170902b7c100b001bb0ba81053si4488206plz.50.2023.11.12.17.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 17:47:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ADD6180792C5; Sun, 12 Nov 2023 17:45:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232721AbjKMBpn (ORCPT + 30 others); Sun, 12 Nov 2023 20:45:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbjKMBpl (ORCPT ); Sun, 12 Nov 2023 20:45:41 -0500 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 61B10D7A for ; Sun, 12 Nov 2023 17:45:37 -0800 (PST) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 59BFD60327047; Mon, 13 Nov 2023 09:45:35 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: fbarrat@linux.ibm.com, ajd@linux.ibm.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] misc: ocxl: link: Remove unnecessary (void*) conversions Date: Mon, 13 Nov 2023 09:45:33 +0800 Message-Id: <20231113014533.11064-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 12 Nov 2023 17:45:46 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782411452036682309 X-GMAIL-MSGID: 1782411452036682309 The link pointer does not need to cast the type. Signed-off-by: Li zeming Acked-by: Frederic Barrat Acked-by: Andrew Donnellan --- drivers/misc/ocxl/link.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/misc/ocxl/link.c b/drivers/misc/ocxl/link.c index c06c699c0e7b1..03402203cacdb 100644 --- a/drivers/misc/ocxl/link.c +++ b/drivers/misc/ocxl/link.c @@ -188,7 +188,7 @@ static void xsl_fault_handler_bh(struct work_struct *fault_work) static irqreturn_t xsl_fault_handler(int irq, void *data) { - struct ocxl_link *link = (struct ocxl_link *) data; + struct ocxl_link *link = data; struct spa *spa = link->spa; u64 dsisr, dar, pe_handle; struct pe_data *pe_data; @@ -483,7 +483,7 @@ static void release_xsl(struct kref *ref) void ocxl_link_release(struct pci_dev *dev, void *link_handle) { - struct ocxl_link *link = (struct ocxl_link *) link_handle; + struct ocxl_link *link = link_handle; mutex_lock(&links_list_lock); kref_put(&link->ref, release_xsl); @@ -540,7 +540,7 @@ int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr), void *xsl_err_data) { - struct ocxl_link *link = (struct ocxl_link *) link_handle; + struct ocxl_link *link = link_handle; struct spa *spa = link->spa; struct ocxl_process_element *pe; int pe_handle, rc = 0; @@ -630,7 +630,7 @@ EXPORT_SYMBOL_GPL(ocxl_link_add_pe); int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) { - struct ocxl_link *link = (struct ocxl_link *) link_handle; + struct ocxl_link *link = link_handle; struct spa *spa = link->spa; struct ocxl_process_element *pe; int pe_handle, rc; @@ -666,7 +666,7 @@ int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) int ocxl_link_remove_pe(void *link_handle, int pasid) { - struct ocxl_link *link = (struct ocxl_link *) link_handle; + struct ocxl_link *link = link_handle; struct spa *spa = link->spa; struct ocxl_process_element *pe; struct pe_data *pe_data; @@ -752,7 +752,7 @@ EXPORT_SYMBOL_GPL(ocxl_link_remove_pe); int ocxl_link_irq_alloc(void *link_handle, int *hw_irq) { - struct ocxl_link *link = (struct ocxl_link *) link_handle; + struct ocxl_link *link = link_handle; int irq; if (atomic_dec_if_positive(&link->irq_available) < 0) @@ -771,7 +771,7 @@ EXPORT_SYMBOL_GPL(ocxl_link_irq_alloc); void ocxl_link_free_irq(void *link_handle, int hw_irq) { - struct ocxl_link *link = (struct ocxl_link *) link_handle; + struct ocxl_link *link = link_handle; xive_native_free_irq(hw_irq); atomic_inc(&link->irq_available);