From patchwork Tue Dec 13 07:45:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 32667 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2689076wrr; Mon, 12 Dec 2022 23:49:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Q6uujvITS4Z4r788HI1QgwLIKRh6NJ05nj0CrsdqebZkjyNVQQ4L99+JsMBtb4WBBO35+ X-Received: by 2002:a05:6402:3606:b0:461:57c1:84ea with SMTP id el6-20020a056402360600b0046157c184eamr14542347edb.3.1670917754179; Mon, 12 Dec 2022 23:49:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670917754; cv=none; d=google.com; s=arc-20160816; b=fDayFXattj/mTGJfqrI0c/XNxlqKaxxXgN7F2bDzNTFnre+0k9HS0g2Etm5MAqBHB5 C5ggsYHQpKtdiNB8n/SIRO8ShpCuxEYC/MEllTqDrz8973N3vLq/sRSRVzhNIJYsx6fM CtooyVVrFOtfA57uHjMBvMbxPWLSBxDQ8rdDXZT6cmYVkOQDVl/HofoZ+v+/5iF85cby tcuNk4JUZu6+JRwxbGIhqdKgobg9XYn7Yskep2MKPjLIUTL7fWsEWKg4WUPs/+2UH2jj ktXoykoeRV6fFPlDrSNONxG4idrS3L7BsoZbqeVSMjHPfq4sjJalgNTApwzelJ+LbHp2 1IVg== 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=M52jlXlGLJXmP8U4QEWJgEv2TBUJcy1UI9hyELdy+4s=; b=DkTAA1sT+zq/r4u8olLmXqjZ6O4viISnxOUbdfAz7wnhav/3m33aBZ+YXKFV4OZaSS FI28RV0m7XyYEHCK1L+KKTLKKuLRoZ5cHayoxWCIUWfToJbhCEGtwsdgNpKDfd6rKryV oC0KU5NGv4RD0Ejq9VHp15pH9j9q/3I6OmIO3JFNYad84wn4Wvw8vASjbILlxGQ+XDqj bdgNoIwS36bXJs/CgF28Kny3hDDuamjnoFlwiVbiJAe4WAar1TTFnYcojiej3OluS5cX cI7tFDwJBdOXzfvdsGgfeJqsRjufyd3C8ALIwnGvkbV1NH0saiMJcdPFsgwNKBjsIwIE UCFQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec48-20020a0564020d7000b0046a7f3ddb8csi7800879edb.523.2022.12.12.23.48.50; Mon, 12 Dec 2022 23:49:14 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233694AbiLMHpc (ORCPT + 99 others); Tue, 13 Dec 2022 02:45:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbiLMHpa (ORCPT ); Tue, 13 Dec 2022 02:45:30 -0500 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA8ACB1D3; Mon, 12 Dec 2022 23:45:28 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 10F721E80D80; Tue, 13 Dec 2022 15:40:50 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FlQBb2iAncfU; Tue, 13 Dec 2022 15:40:47 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 440BA1E80D56; Tue, 13 Dec 2022 15:40:47 +0800 (CST) From: Li zeming To: richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, akpm@linux-foundation.org Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] kernel: smp: Remove unnecessary (void*) conversions Date: Tue, 13 Dec 2022 15:45:22 +0800 Message-Id: <20221213074522.3738-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752084254840166759?= X-GMAIL-MSGID: =?utf-8?q?1752084254840166759?= The void * type pointer does not need to be cast and assigned to another pointer. Signed-off-by: Li zeming --- arch/alpha/kernel/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c index f4e20f75438f..0ede4b044e86 100644 --- a/arch/alpha/kernel/smp.c +++ b/arch/alpha/kernel/smp.c @@ -628,7 +628,7 @@ flush_tlb_all(void) static void ipi_flush_tlb_mm(void *x) { - struct mm_struct *mm = (struct mm_struct *) x; + struct mm_struct *mm = x; if (mm == current->active_mm && !asn_locked()) flush_tlb_current(mm); else @@ -670,7 +670,7 @@ struct flush_tlb_page_struct { static void ipi_flush_tlb_page(void *x) { - struct flush_tlb_page_struct *data = (struct flush_tlb_page_struct *)x; + struct flush_tlb_page_struct *data = x; struct mm_struct * mm = data->mm; if (mm == current->active_mm && !asn_locked())