Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp871779rwe; Thu, 1 Sep 2022 08:51:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ZjO53Vrl7AK1lN9sXmL/+a4E64FjjV5DOOQsKFvy3OrZsDlPvxEJfeNbiYMmTTVPauvud X-Received: by 2002:a63:8a41:0:b0:42b:7450:4e81 with SMTP id y62-20020a638a41000000b0042b74504e81mr25014086pgd.341.1662047481071; Thu, 01 Sep 2022 08:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662047481; cv=none; d=google.com; s=arc-20160816; b=o81j2plbs+oWOsRDV+qAd/9/gkE8Q3ZXtTT4BLixbKiwuBLbnUAYEfy++usScNKjJL 02mP5KL5EPPiB/wydsiZvPm+giMFdKYQDXQGVUq4F0S5tUr0omwNRwfDRaVIwCnKN6YJ Xv9wcFbQw2TVeFsiYVBPyPmeNfdvVVhPgtK3bezFr6wZ4F79V9zTBovgKBDr3jImzIe/ ghklhaiq9gRySA2XnZQv7fjXLFgt9siMQDdrcK5IWAtlVxvr+tQAPoiR/mHbYqjJNDBH KV3XimYimuoFGJI2wwLCnYN/MZ0BwS87b5E2oDL4W1wXC7W7lOLvU8X/MSc6fTSkms+L RhpQ== 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=SeE1s61sgcD2A2QWnV1PdqCg8h735My1zWoTSjQIcaA=; b=Nk80pdVK752Qkmi3cYeS7w2fQrVelH5bWI4T0Wbm3QxunTIa59zY7OoRlkoGZfz2kR nYXHRHiBHZRShQIgQwrHEWXqgSh+Cfone1pteQbvCiF2Dd10ElFfVYKKg3RvGl556KMP uT/+TYzmVQfPlNTaAqJkxNVriKlKWO48Ktt8/zXVS60gzUwoVLN2A2bIcSceiENt0O+7 6QwlTQID66rw1gAtLxjyHC6UqvTmRuYp7BTUukOfSWvMLRjiGCE3/8QDk3EMypl63f/y sqYMlSxvaxvvp6JW+G4Iem3VaWGRsAv4seXCBsFeJ8J7A4TMCHC4pe2fEVYKdOmcpNPn 0U5w== 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 nu6-20020a17090b1b0600b001fbbef0d020si5466617pjb.161.2022.09.01.08.51.08; Thu, 01 Sep 2022 08:51:21 -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 S233750AbiIAOpi (ORCPT + 99 others); Thu, 1 Sep 2022 10:45:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233301AbiIAOpd (ORCPT ); Thu, 1 Sep 2022 10:45:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F8653032 for ; Thu, 1 Sep 2022 07:45: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 dfw.source.kernel.org (Postfix) with ESMTPS id 66A2261DAD for ; Thu, 1 Sep 2022 14:45:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEC69C433D6; Thu, 1 Sep 2022 14:45:29 +0000 (UTC) Date: Thu, 1 Sep 2022 10:46:01 -0400 From: Steven Rostedt To: Andy Shevchenko Cc: Mark Brown , Andy Shevchenko , Dmitry Rokosov , Linux Kernel Mailing List , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: [PATCH v1 2/3] regmap: trace: Remove explicit castings Message-ID: <20220901104601.01773fb8@gandalf.local.home> In-Reply-To: References: <20220901132336.33234-1-andriy.shevchenko@linux.intel.com> <20220901132336.33234-2-andriy.shevchenko@linux.intel.com> 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, T_SCC_BODY_TEXT_LINE 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 Thu, 1 Sep 2022 17:18:01 +0300 Andy Shevchenko wrote: > On Thu, Sep 1, 2022 at 5:15 PM Mark Brown wrote: > > On Thu, Sep 01, 2022 at 04:23:35PM +0300, Andy Shevchenko wrote: > > > There is no need to have explicit castings to the same type the > > > variables are of. Remove the explicit castings. > > > > IIRC this was an idiom that the trace code was using for some deep magic > > reason to do with some fiddly preprocessor stuff. > > Perhaps that (dark) magic disappeared a long time ago since in my > practice of adding trace events this is the first (and probably > oldest) one which has these castings. Perhaps Steven can shed a light. > There was no dark magic for those castings. The trace events never needed them. It was added from the original commit: fb2736bbaee0e ("regmap: Add basic tracepoints") So, I'm all for dropping them. Reviewed-by: Steven Rostedt (Google) -- Steve