Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3094654rwb; Mon, 3 Oct 2022 09:33:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Q4Y8pbObhZdKJvKw5CtDeFtf/5PJinwZpb7Pjg5FyTS3mNbJCsXhL6uujoMM5KkG4KOoj X-Received: by 2002:a05:6a00:1342:b0:545:4d30:eecb with SMTP id k2-20020a056a00134200b005454d30eecbmr22906341pfu.69.1664814835467; Mon, 03 Oct 2022 09:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664814835; cv=none; d=google.com; s=arc-20160816; b=usnEtf7f0ZHE0BJopjoe1ZvqfS4pk0ZEer0tBoFp8v5o87cjj/AfopNHmaxvpvH85Y 66lEfa8MM8qOk7AgL9gjsW09NQbUoeCG6jq/jgJXGIvjZxRshZta8SIm4gg2YxWD7L09 VmwF/JJWTFR2M2rvai9eOFIywja2RaOKZPziznQwjuxEztYr2bpUyasZoeuA/FfDy3XB h7DtiEPebeOcA3lEjY0hsRPV9rRHOWhUmch/7Mr2oQkQ4Tm9Au++jol7qd7lbu2CHw+k u9KAWMyIgU40H1aPXZU8opypA8V2yR4g4HlJi43887aT77cdAmSUSRpTmlsVkFS1z2w4 sI8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=vSOSt7ldJJzQzuP6NnKC3Dkd55aZVWTbf8FC5g2rmD4=; b=pzbIzo5hlLOiB5DPf5mGtgqOSL+jCN5dqKP0NMHwxuack06TM31558qU4estymKBDr LWTG29WAdAyORP0kIwkzbwY0I7TBYzvrMMGZhJFm5NZkfEMoFGsVdpJ/dP7IIzMDK5mB /Mt5MKZGHgaNNmb6XvuApU77yfFWkMLXEuHJUm5XvAgR7gTl0p6j+xdINof/fuSeSa+b YnIaOn87eeVcl/6KTVmWW3EbMbcfGLMH6kgexCpC09orKS4jdUfvcgJpq3XKELnOdf05 S7SZle56bBSeHL+ow6eWdFFsfVyFfvlr32HsD+V0/2QRD2tnqjdH1t/WO4Ns5TC/2q9E RZvA== 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 j9-20020a170903024900b00178662903bcsi12318750plh.52.2022.10.03.09.33.43; Mon, 03 Oct 2022 09:33:55 -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 S229582AbiJCQMe (ORCPT + 99 others); Mon, 3 Oct 2022 12:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbiJCQMc (ORCPT ); Mon, 3 Oct 2022 12:12:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B97431ED4 for ; Mon, 3 Oct 2022 09:12:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 40DF0B80F01 for ; Mon, 3 Oct 2022 16:12:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD044C433D6; Mon, 3 Oct 2022 16:12:27 +0000 (UTC) Date: Mon, 3 Oct 2022 12:12:28 -0400 From: Steven Rostedt To: akpm@linux-foundation.org Cc: Andrew Halaney , Zhou jie , vbabka@suse.cz, mhiramat@kernel.org, edumazet@google.com, rdunlap@infradead.org, christophe.leroy@csgroup.eu, rppt@kernel.org, mark-pk.tsai@mediatek.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] init:Remove unnecessary (void*) conversions Message-ID: <20221003121228.66a0e7ec@gandalf.local.home> In-Reply-To: <20220930131142.xbrkwxop6vixnvht@halaneylaptop> References: <20220928014539.11046-1-zhoujie@nfschina.com> <20220930131142.xbrkwxop6vixnvht@halaneylaptop> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 On Fri, 30 Sep 2022 08:11:42 -0500 Andrew Halaney wrote: > Hi, > > nit: $subject should have a space after init:, i.e "init: Remove". > > On Wed, Sep 28, 2022 at 09:45:39AM +0800, Zhou jie wrote: > > The void pointer object can be directly assigned to different structure > > objects, it does not need to be cast. > > > > Signed-off-by: Zhou jie > > With the subject fixed up you can add: > > Reviewed-by: Andrew Halaney Looks fine to me too. Andrew Morton, care to take this? Acked-by: Steven Rostedt (Google) -- Steve > > > --- > > init/main.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/init/main.c b/init/main.c > > index 98182c3c2c4b..5494caa24738 100644 > > --- a/init/main.c > > +++ b/init/main.c > > @@ -1239,7 +1239,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(); > > @@ -1248,7 +1248,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 > >