Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp809767rwi; Wed, 2 Nov 2022 19:16:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5HrpurBjf3myPCF4ktOtrwtzzG/NRvaB7DQb84rLKuDKtTTK19nNB5hM317LVtu9b1OEit X-Received: by 2002:a50:ccc2:0:b0:460:4db2:5006 with SMTP id b2-20020a50ccc2000000b004604db25006mr27711854edj.369.1667441776004; Wed, 02 Nov 2022 19:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667441775; cv=none; d=google.com; s=arc-20160816; b=WcbsC7EA+r+DEsxrMG8iuRX07pR5n8hG984LoTIT4Mc4xmI8HtGaVmDwtGdazIxWmO 8B/Y1qrbVq5URr67Buv6m3DhpC63JYe+falzKEs6gGejE/tt8RF6kp/AfE6xGzs1g0bP OqaBXuJtrDoNtuTbAAvtTd8ugMEm0Za3rOnv/8yMq+MkAedtQNCWhiG9u6KRq1Knpx1i fWa4A7Q6skLq/oVkLYV3uSTeMQR30MNNTI0SSZNePDdAreSXWPF+kLjtvy945xnoIKZE wiAYfFHOiNtaJc/TF5uxx06UQN5MTl+hMdnAjYW0SSbDI9u4X4rmUqlHQRJJjms8PDp7 6lZw== 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 Return-Path: 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.15.52; Wed, 02 Nov 2022 19:16:15 -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 + 97 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 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", -- 2.18.2