Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1315716rwe; Thu, 1 Sep 2022 16:44:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ZeHTt/tRdAEqiC8peAgwbw/a6bzf4nBnp+BK1T2ReVDdxKn+ywcG/irGOqHVoa4kzRA7D X-Received: by 2002:a17:90b:4c8d:b0:1f5:29ef:4a36 with SMTP id my13-20020a17090b4c8d00b001f529ef4a36mr1703764pjb.127.1662075895302; Thu, 01 Sep 2022 16:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662075895; cv=none; d=google.com; s=arc-20160816; b=oKQrBR8l+2gkcFXN0TNjiLzk5vPv6ABxNNgNS3+P/fYmrvzOsCSsEDV4v+0Jx4sLxc YAqDjIEpS+HSdMzJdYtA34Ko+cAwxwp5jkAMOD5pOEj4vhWhAd5CEJ1N97Ty5P43x/VN PpU+FBpHotVTRKf6s7TKvPdFHR7wg6uBYBkjjhtfM8wsT1VXM8pnQknqJLaDMdwr31iI 5/+nQomqObC7NzgoCbiID0hFkgpHpVBDTdakK7wHF/ikkttmabZ2oMayQTsAiGf9ox19 uzusPoms6AMxv1C/bdrRtpiUtiBIrh8gA58qeQcc4GFcxJ0H7kx2VW6fpOXrdjRgQi52 qi6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8NYQ8TiEoubycwd0qSsig772N0wdowFhknhOlLJw32Q=; b=Bm7rIln9ZS5xXx/KUgn09ZkBYDeWhZjn0KIfU/9uqdF1QVATrPMeXmapeIPjxxT9kB K1rwUjlDqIxJA0RjTg5AVfYIrUB7XBXPaMEsu63HvaGznHKWzKX7eozp0mJqbsgfdx57 o+DxMxk99G8O0mLwLHtI9zTQuNfC/SAoyBjEY5GvIqoOfPI2L/ht4dZpEfFLQOU5K4+5 /FNKnSkP83KysCq3Rjpe09xJkWGuYWTHA1A6ucuLEIcIel4RCfmOPIqVipPf2P7Z8kGw qlgmSsuWsMtV2WlZj6JYf+incxdkc5OtThPRGua5TN0RXSQH6UDTRT/D50jaDqSRAyYW QEyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=Rqti4u1B; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu10-20020a17090b1b0a00b001fdd2a56d6dsi6732739pjb.43.2022.09.01.16.44.44; Thu, 01 Sep 2022 16:44:54 -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; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=Rqti4u1B; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235136AbiIAWkF (ORCPT + 99 others); Thu, 1 Sep 2022 18:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233070AbiIAWj7 (ORCPT ); Thu, 1 Sep 2022 18:39:59 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35E92DA2 for ; Thu, 1 Sep 2022 15:39:49 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 8D0C85FD05; Fri, 2 Sep 2022 01:22:19 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1662070939; bh=8NYQ8TiEoubycwd0qSsig772N0wdowFhknhOlLJw32Q=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=Rqti4u1BU2pWUvB8I7bwcHhiWZ9/5mCy4uFtGE695ggPqEvD2BkVv7rh4ZEfzn74O O3vuzVAc/MuSljpoEG+u6uZoPsSmKpSq1T6QoZOM5ujJ4+ZgxdDUP/Ig9VN50X3Pzc 340a/iKkuKMh/6V3+ztiMZU4hUGQMWmHnYDN6xmUvSdDd8HPmzCbYfQOUL9MOTgh2s v1JdHskPJe+Q3Kt6513gwT7QnShnMFZYqc4/FFUPZYYFk6AXYl8WHXjFJI2RP/pSe9 0ItdquOHRvr5kxivBrXdmA+3/zYGzx9bXQ4VkAgYEcE7BJnKCAv6defBHYiH5UU0d2 9v4j0R0QfkSIQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Fri, 2 Sep 2022 01:22:19 +0300 (MSK) Date: Fri, 2 Sep 2022 01:22:18 +0300 From: Dmitry Rokosov To: Andy Shevchenko CC: , Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: [PATCH v1 2/3] regmap: trace: Remove explicit castings Message-ID: <20220901222218.ytusdn7xvgiru7qw@Rockosov-MBP> References: <20220901132336.33234-1-andriy.shevchenko@linux.intel.com> <20220901132336.33234-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220901132336.33234-2-andriy.shevchenko@linux.intel.com> User-Agent: NeoMutt/20220429 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/09/01 19:49:00 #20211246 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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, 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. > > Signed-off-by: Andy Shevchenko > --- > drivers/base/regmap/trace.h | 17 +++++------------ > 1 file changed, 5 insertions(+), 12 deletions(-) > > diff --git a/drivers/base/regmap/trace.h b/drivers/base/regmap/trace.h > index e92edc4f4ca5..a0f83e44a9d1 100644 > --- a/drivers/base/regmap/trace.h > +++ b/drivers/base/regmap/trace.h > @@ -32,9 +32,7 @@ DECLARE_EVENT_CLASS(regmap_reg, > __entry->val = val; > ), > > - TP_printk("%s reg=%x val=%x", __get_str(name), > - (unsigned int)__entry->reg, > - (unsigned int)__entry->val) > + TP_printk("%s reg=%x val=%x", __get_str(name), __entry->reg, __entry->val) > ); > > DEFINE_EVENT(regmap_reg, regmap_reg_write, > @@ -85,8 +83,7 @@ DECLARE_EVENT_CLASS(regmap_bulk, > memcpy(__get_dynamic_array(buf), val, val_len); > ), > > - TP_printk("%s reg=%x val=%s", __get_str(name), > - (unsigned int)__entry->reg, > + TP_printk("%s reg=%x val=%s", __get_str(name), __entry->reg, > __print_hex(__get_dynamic_array(buf), __entry->val_len)) > ); > > @@ -124,9 +121,7 @@ DECLARE_EVENT_CLASS(regmap_block, > __entry->count = count; > ), > > - TP_printk("%s reg=%x count=%d", __get_str(name), > - (unsigned int)__entry->reg, > - (int)__entry->count) > + TP_printk("%s reg=%x count=%d", __get_str(name), __entry->reg, __entry->count) > ); > > DEFINE_EVENT(regmap_block, regmap_hw_read_start, > @@ -196,8 +191,7 @@ DECLARE_EVENT_CLASS(regmap_bool, > __entry->flag = flag; > ), > > - TP_printk("%s flag=%d", __get_str(name), > - (int)__entry->flag) > + TP_printk("%s flag=%d", __get_str(name), __entry->flag) > ); > > DEFINE_EVENT(regmap_bool, regmap_cache_only, > @@ -283,8 +277,7 @@ TRACE_EVENT(regcache_drop_region, > __entry->to = to; > ), > > - TP_printk("%s %u-%u", __get_str(name), (unsigned int)__entry->from, > - (unsigned int)__entry->to) > + TP_printk("%s %u-%u", __get_str(name), __entry->from, __entry->to) > ); > > #endif /* _TRACE_REGMAP_H */ > -- > 2.35.1 > Reviewed-by: Dmitry Rokosov -- Thank you, Dmitry