From patchwork Thu Nov 3 01:39:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 14591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp267787wru; Wed, 2 Nov 2022 19:15:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63uV4QjuvkGk6I3MbNL8HPA/3FyEffKE1GyAz4tleX7eU/g3kIUF1G1BEvYb3arsPvJFSf X-Received: by 2002:a05:6402:4445:b0:461:b506:de51 with SMTP id o5-20020a056402444500b00461b506de51mr28390588edb.388.1667441700223; Wed, 02 Nov 2022 19:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667441700; cv=none; d=google.com; s=arc-20160816; b=Ed8yN2udkxTxxuRGO9EHYhti+nlC9N18XBiLNRFGW1P06HhQ1XhaOA8W9Zsj7YYiet 4yyLpRVe4/feP2Q50g9P4MfYvMj9y2BM6g6jtWg5oipM+VGo/QUvsM/ZdIkb5QRAsuEo WtQuPbGgIhIhL613SEQ+ByXlU3+lp9TGB0aJGpqj4UOeW2w6jWY96d6Zm7mOcq7RptFb DCEDwo/mqWP7DjLp9+KVVUxG2ypUG32G3t348ev4hIHfmIHdFrLI8/vipfEnaGwYir3x 4vReI566ob+XGWMVZNtBTLZCHffEucUaPmp9EmOQUGaXRdKXWpQQ/cYbGn06lWP1hP9d X3Bw== 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=I8UnjwjHnVMjSFrecCKlU/pxjIuC90+YCQq7YNbcBeE=; b=hE9ssQRVmurSWLxEB+j30j4Wf/4Z7u9NeqeuEVMdsHJF+H85dgO6FPFLcc3FopoLty JpslXCiV5fNLqgJNqroC+wj5uSyWX4HLAInZjCaUTyLJ8dg7YvgAf25uhIu7S4dPowrb 0ESvZr2b791XHeqZoIEo1x41F3pUgAVi6JJ0hlTJ1OqYcOyn3kZ6Lrzyhc0egJN1RfU5 xzf5sZAl7aJGSsfOYzn8/ZSzQDZaI8K0njOXrFYpm/jtc6db96v7OJZeBkbPbFGPa/B1 DE8Zmi2bEVP9D4YUC77SfBt6U7QEqdALZ24aBvrkoo0UVJYnOQBfu/8pfRqb51VFHfYl +e3g== 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 d17-20020a1709063cf100b00782a5657512si14940614ejh.416.2022.11.02.19.14.36; Wed, 02 Nov 2022 19:15:00 -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; 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 S229493AbiKCBkB (ORCPT + 99 others); Wed, 2 Nov 2022 21:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiKCBj7 (ORCPT ); Wed, 2 Nov 2022 21:39:59 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BB90211179 for ; Wed, 2 Nov 2022 18:39:58 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id EBB771E80D1A; Thu, 3 Nov 2022 09:37:56 +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 BxzDOGM0ExRa; Thu, 3 Nov 2022 09:37:54 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 470451E80CEE; Thu, 3 Nov 2022 09:37:54 +0800 (CST) From: Li zeming To: akpm@linux-foundation.org, vbabka@suse.cz, keescook@chromium.org, mhiramat@kernel.org, edumazet@google.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] init: main: Remove unnecessary (void*) conversions Date: Thu, 3 Nov 2022 09:39:53 +0800 Message-Id: <20221103013953.3203-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?1748439348023316960?= X-GMAIL-MSGID: =?utf-8?q?1748439348023316960?= The data pointer does not need to cast the type. Signed-off-by: Li zeming --- init/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index 1fe7942f5d4a..6ac4a7f8d034 100644 --- a/init/main.c +++ b/init/main.c @@ -1237,7 +1237,7 @@ __setup("initcall_blacklist=", initcall_blacklist); static __init_or_module void trace_initcall_start_cb(void *data, initcall_t fn) { - ktime_t *calltime = (ktime_t *)data; + ktime_t *calltime = data; printk(KERN_DEBUG "calling %pS @ %i\n", fn, task_pid_nr(current)); *calltime = ktime_get(); @@ -1246,7 +1246,7 @@ trace_initcall_start_cb(void *data, initcall_t fn) static __init_or_module void trace_initcall_finish_cb(void *data, initcall_t fn, int ret) { - ktime_t rettime, *calltime = (ktime_t *)data; + ktime_t rettime, *calltime = data; rettime = ktime_get(); printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs\n",