Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp751481rwe; Thu, 1 Sep 2022 07:10:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5sLjLuNjOsqKXn0Qve+WwBONujeEwyuxdchdIbaC0gY+wmaeW+4a3FIDi55EoLmBniXY0J X-Received: by 2002:a17:90b:2745:b0:1fb:1666:80f6 with SMTP id qi5-20020a17090b274500b001fb166680f6mr8808770pjb.103.1662041445849; Thu, 01 Sep 2022 07:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662041445; cv=none; d=google.com; s=arc-20160816; b=VbAQIYSe+SP4wTKAu1csdU/fN26HVSnzAFeB1NB+6QzZErDFL5QbRg5MIT+jTWbE9t 8VuTeVGhur9fDhjc+gjRSO9DA+HXz8t/vnxJgWnK9dyQLtHeQQGqrn2J4ZFCnxruUEUI hG4EnfyLE4oC5WsGrzqZ4DGijFhguZEUJr8JDFPXzVyn0DIoiXYGVsU5qzc90ainPYNh eodmJg2M8Z8G8W/7qJlh/5IU+/dK/eKgKIBuqjy9ZFvPUqggfLI8r7WR2uDeb4wiV08+ KbELbdKJt16kkF6bJYLgsQ6PE7tjf8bB37PIe/VXB+w+GQcA99BJj/NQTXrrvpZmHmJm 2wwg== 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:date:subject:cc:to:from :dkim-signature; bh=SL/tizUH2ppu5PA2uX6cBENdM9ECorbl6uxCTSnbqoc=; b=qLA773SkIu/ITR4G6U1VezUWvXs74GJ+1hlVtoKzyf/caZ7jFw/uHc1CVVg0AkA/+z l2w8jZlX/sfnxeE0UkEJK14E56GXNfOLOb3a6W+etBF7llB1UblHm+BcsVQ7B9HBiEko 286HlxyGpaFpGOH9GwZkmgmHpQzEOljcsLO37uz6+T0Ad3FeaSQbqCVDFH0cfQzEIJsK GMNsHtL0eVfr6O5yYarW1gvyCEKdjTzl0fuvDcDboBV2EWX0fGcHMn4ACf1webYqKGZW k0YsfGDr9aeK5BPInUMQxa8fvA4F0ugxwYZUtX8NhtxZBJYL25XACHzPZ5oVoO/RZui4 OgBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fyaX4fCI; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6306c6000000b0042c13ff2f25si9016089pgg.801.2022.09.01.07.10.34; Thu, 01 Sep 2022 07:10:45 -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=@intel.com header.s=Intel header.b=fyaX4fCI; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233999AbiIANXv (ORCPT + 99 others); Thu, 1 Sep 2022 09:23:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232301AbiIANX1 (ORCPT ); Thu, 1 Sep 2022 09:23:27 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0B0630E for ; Thu, 1 Sep 2022 06:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662038605; x=1693574605; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PXxOKoGywk+ZZAqueqtRGLpoP26979U19XLkh+q4+jI=; b=fyaX4fCIv3/GvzDxTTBeLjDnpeJBsVT6s7vOqTu8Kfvae7JFuM4DTHjc lGCGZ0aePgpNVuad+CVjD6s8JSuvvWoGAh+8WUVHaREajuUm4GXliCMsw SpFYfiwyuQ4Lp+DSnJTfkqjhEX/XJ7yQrMkTlOYOwkgcDv+JNyTvD4aRV WAGXGT8AUBkyzO0gqLbuiGX/Gvxidza/NxsGZGT3MFMGRra3kyLNrP91T 2/UtTJQJpcsqgOgoh925uDwJUYt/3WiVPxmb67ZXLtsHQx2CCRkuDiikN ZczkJ4NtPqUcougfO08Sz8u3tyN0CVqOG4jCbtYPlrHoV0sEDytkePKsL g==; X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="278728850" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="278728850" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 06:23:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="680853423" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 01 Sep 2022 06:23:23 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 7F21849F; Thu, 1 Sep 2022 16:23:38 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Dmitry Rokosov , linux-kernel@vger.kernel.org Cc: Mark Brown , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [PATCH v1 2/3] regmap: trace: Remove explicit castings Date: Thu, 1 Sep 2022 16:23:35 +0300 Message-Id: <20220901132336.33234-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220901132336.33234-1-andriy.shevchenko@linux.intel.com> References: <20220901132336.33234-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 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