From patchwork Tue Dec 13 07:36:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 32664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2686420wrr; Mon, 12 Dec 2022 23:40:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4miKxWbxsYLfydF0EoOn6yXtwOYNt3K0a8GGlGCBhZW259XkuA5S4JhJN9xgd6b1y36w9O X-Received: by 2002:a17:90a:1d0:b0:218:bedf:8740 with SMTP id 16-20020a17090a01d000b00218bedf8740mr20484597pjd.0.1670917224159; Mon, 12 Dec 2022 23:40:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670917224; cv=none; d=google.com; s=arc-20160816; b=sPkdwXUo8d9qm5Z8J4v41W3dfuhfV1NId8F/3gkL0ek7KJEL4iZyDJSMnRLBO5FB0p UnDMr2c4L15M0o1x04z4qXhR3+XEdyzbgEqkvlq3pX/ql84hdcWHsTafpQgf9xQkYKWF j5pMvZuLNhIULhj04VqCirq9zbH9zLv0X8Yh9t9VS8dYAioIdA4wxiGIOyfPbVvDetBb X/SxutV13+l17bJyFXQER7FSfueFj+9kCQiLZbt8arR03Jl0lcnHp4B6aXZ3TmFKfXEs 1DmeeEfte0Y8LU+pN+26hJmMKsd4brmxLnVwdxzUnMZ5r7YsUM+eCi8oC7jQnP7ufim1 0aig== 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=xDvS+O4opyORBAMh8HIWbznDq4C+/UjODFwzhsVZ0rc=; b=bO867+5yAca47IsZqCW9Ix4W6lSGNho+ntVZqCOBV7ibeJkrlF1OJW7ivRbEb7keOK LKrjnYg5cPXXMkE5rbQKBZLSIEXB0TvsLrcAVrG8izi2/oKTBU8MhY+gKlR1nOJcUIc+ VokRfI3ki5ZHBDZYmcFgtmy9yHRAYeTZk6wqGGqkOA6ZIp3oIDHTfHjDhgtDaDEGg9mI LZrlOULGutx/IlP1XLE1KTmMvcleuAZ71pW2B5Y52S4WLriNDZ8EvJP/n9CLA96ai/j4 h/PkIzMqNlytY7RHpyAYFtxvQql2soQwM/Cwp/mtn/uV3eM++MRVQ0z/Az0z6lIkgOvK G03w== 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 oe16-20020a17090b395000b00213213d63bbsi11416520pjb.41.2022.12.12.23.40.10; Mon, 12 Dec 2022 23:40:24 -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 S234320AbiLMHgq (ORCPT + 99 others); Tue, 13 Dec 2022 02:36:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233694AbiLMHgo (ORCPT ); Tue, 13 Dec 2022 02:36:44 -0500 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2443413D6C; Mon, 12 Dec 2022 23:36:43 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 7E1CD1E80D80; Tue, 13 Dec 2022 15:32:03 +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 9xnrt98Y5fCV; Tue, 13 Dec 2022 15:32:00 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id BF5521E80D56; Tue, 13 Dec 2022 15:32:00 +0800 (CST) From: Li zeming To: richard.henderson@linaro.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, ebiederm@xmission.com, akpm@linux-foundation.org Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] kernel: process: Remove unnecessary (void*) conversions Date: Tue, 13 Dec 2022 15:36:33 +0800 Message-Id: <20221213073633.3586-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,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?1752083699346008399?= X-GMAIL-MSGID: =?utf-8?q?1752083699346008399?= generic_ptr is a void * type and does not require a cast. Signed-off-by: Li zeming --- arch/alpha/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index 65fdae9e48f3..5bc8be1eba11 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c @@ -74,7 +74,7 @@ struct halt_info { static void common_shutdown_1(void *generic_ptr) { - struct halt_info *how = (struct halt_info *)generic_ptr; + struct halt_info *how = generic_ptr; struct percpu_struct *cpup; unsigned long *pflags, flags; int cpuid = smp_processor_id();