From patchwork Mon Nov 13 01:15:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 164301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp940155vqg; Sun, 12 Nov 2023 17:16:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKEa9GtSdJVN8mMhzG//uTVakpqxyGHr+3wMN/ly4825CMda4oXQaFgDPtCn1Gf/g/2yEm X-Received: by 2002:a17:90b:2e47:b0:280:23e4:4326 with SMTP id sm7-20020a17090b2e4700b0028023e44326mr12462550pjb.14.1699838215915; Sun, 12 Nov 2023 17:16:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699838215; cv=none; d=google.com; s=arc-20160816; b=aSWWhtkSdrK4YCtu6PCQWT6GrCuA3hHIAzOXLC6LmzhYmUIBvkP/uWG/XsENk+Yu+3 fkRUsP6zYbVJyAa3g1O04Jt4obwrhcM+0dQBJGOZ+LsPksPuPVaN3uyY5mssL04rhkGN ndtCR7O5xIB57BoINfNWRvTm1hn86KCV1tLCF+IT+kE4+L+O6eklQ32YMsTjvsf1t4E4 8D6PJ69/h68jONCbQD2dXD7QgbaE5Q/K5PIzL3Lj8H1cbH0Dn9lpGybmdBoikdLWTQxI f6+X8NZOVhA9yVlmF8TYuqyaUpz6H2dtYlzmOlfwyAZGM3d8OF9EI269v2p3xW4SQfAv tSRw== 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=xqL4/sRWfSEvpZVFV8MjcB6mC/notmJ5Yf/4Fm8jYRU=; fh=sWLie+AasJsw9DDDW1e64iCbiRVVQa5FiTafBEY5OzU=; b=XV19sy8t9xfPG/QQro1iqydTcWgKd7FVQ3I39MI1Vd36Fi5XGEgknc/vkuT58zFBAf OMNyLHcXtZJ6lcGUaijYHTHTTvlC5vRQ+K8nbrwI+uvOinmj7QSP1GLFJmLs3kf6b1dL hueY+y7WTvgPFvfYycLFRYn54LO5ZMSAxnpW/qRiINTjuUjuVXgUcECMuEnMoFUaFYAV Ax+xdOzZppdVHAQLBr+UH9rt9d3MTYfHwh7ImL8EmgVDBSLNTVxvgqRZq5S8p6qtFm7w xf97yPlETbdMhRVAytMTSEnJQOlqBWAJ8P+h4+cMwAJM40z1RKnKdsOaaIjKWAhp2ht/ lP/g== 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 s138-20020a632c90000000b00577960a815csi4410815pgs.188.2023.11.12.17.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 17:16:55 -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 D751E80775A8; Sun, 12 Nov 2023 17:16:07 -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 S232721AbjKMBPy (ORCPT + 30 others); Sun, 12 Nov 2023 20:15:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjKMBPx (ORCPT ); Sun, 12 Nov 2023 20:15:53 -0500 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id A79271BDD for ; Sun, 12 Nov 2023 17:15:49 -0800 (PST) Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 5CB506031E5A3; Mon, 13 Nov 2023 09:15:45 +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: context: Remove unnecessary (void*) conversions Date: Mon, 13 Nov 2023 09:15:43 +0800 Message-Id: <20231113011543.6940-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:16:07 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782409557179589909 X-GMAIL-MSGID: 1782409557179589909 The ctx pointer does not need to cast the type. Signed-off-by: Li zeming Acked-by: Frederic Barrat Acked-by: Andrew Donnellan --- drivers/misc/ocxl/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ocxl/context.c b/drivers/misc/ocxl/context.c index 7f83116ae11a6..cded7d1caf328 100644 --- a/drivers/misc/ocxl/context.c +++ b/drivers/misc/ocxl/context.c @@ -55,7 +55,7 @@ EXPORT_SYMBOL_GPL(ocxl_context_alloc); */ static void xsl_fault_error(void *data, u64 addr, u64 dsisr) { - struct ocxl_context *ctx = (struct ocxl_context *) data; + struct ocxl_context *ctx = data; mutex_lock(&ctx->xsl_error_lock); ctx->xsl_error.addr = addr;