Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp783909lqh; Thu, 28 Mar 2024 17:04:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWALIppmpdxx+Ot8TlXilwY/LFGQ7T3MSVcl2xyNHKqB7ZcYJJliIwEJ1e5QRZw9i4GgugeFIb298Uv+wE1RKQBI/Y3NNGzOkk7TFZLnw== X-Google-Smtp-Source: AGHT+IFQUQE4gx/stOBAwB0w4KhwGd/ejQcuiSVGA4nNfVr2Xh2GjoxUj/ejgyYbKhtHpDtN5g4v X-Received: by 2002:ad4:4312:0:b0:696:a0c1:b81b with SMTP id c18-20020ad44312000000b00696a0c1b81bmr1674476qvs.10.1711670680893; Thu, 28 Mar 2024 17:04:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711670680; cv=pass; d=google.com; s=arc-20160816; b=zkRQk2rWcP9FLYkeEI7d5VChmcLQYnBiMIUtkPSNfQ4e49DsakG6WcIhkJhZwlO5ve lkSA3WBso/HRrLNIpWcOHCU7BISp0Ehehf+Sj78Pb/Wk3X1KyEYn2fRzfieAcEGxYKqc vS1Ihl8B8Uw1bTulFJLtWQ4Gn4y4PWrvwiJrxE2gqNRN87K0pCmMlZRyMd62ZFONeLPA XhoFgWbBgAWJyHPq6ObApSKVdTOXTkm0SrRhE0tIWVlGSp63r21zfbfs/k1cESDW7Nmh et5BsheCevgNqPIOqSgnJYPweThFHExCOUZRtWb1RR/NXmT+LjF5qVlhKL9lcrMbbnNL LXow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Fn2G3+tLimKIiY6r365vGMbiTPSgkGnQi1KrNoEmf24=; fh=o7DFXfQPbECYqRxVlgBIMEYUWvOHlW0Wfa5+OvkZ+sE=; b=tNHAsGTeHgRT40Hq45AgRyFpmkeX/ATrFb49oNd35OLSeJsc46mYh2LG0pl4+naUyK 23z0upw9kuD0h9WhRlVdCBUZ1s3cTBmewM21BMlnvBhzBW5qnZecOjptPwFOIDtCDikE qwTl9wmiZWxOz2iatybP8eNm1lN5L5FLuK9UOvOEBptcSDkV1r8x1Jv/8M/SL/eL+hP8 VUI5s7ciP0MyuJWeFo1nm/5fEpS1wx1yb/ky0wQgjeCBItEtdHikyZVpWMt++24P3d4X +2p8jsPGngI31cGt1mMqr8VtQb9soN00a+XX+tiAET/WL/uvEOj8aRAAUJ3PEQNIBVGC ELrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="NR8XmN/L"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-123850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123850-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z11-20020ad4414b000000b00696a33fa20dsi2592070qvp.317.2024.03.28.17.04.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 17:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="NR8XmN/L"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-123850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123850-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8B6EB1C23A58 for ; Fri, 29 Mar 2024 00:04:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 936B4EEAB; Fri, 29 Mar 2024 00:04:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NR8XmN/L" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CABD233C8; Fri, 29 Mar 2024 00:04:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711670674; cv=none; b=V/Zfkd25XhlACb2rKzp+jPcQYLuaHWuJdGZ4n3LC+aLuEkBllxmVxYgutVxIZwMoNRpALKL0cPXbqFrZt8XGfxdm6hOLknxOU5Xa+Ly0wzwqhhwAD3LctG8peLC30bFP3O6QgmYk/h4hwKW8WKdbWxEAUZ3apbcaX+65tzpwGRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711670674; c=relaxed/simple; bh=Dg9fl2DYKd1S6Bc+b39oiuE3E+1/h1EYnX105Dk0gTo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a5w01XkdnruQtJXxA+NS4laRFpF+7rsBOL0Li0jco0rEUb6LZm5f6PEG//ZX8TVt0xR6pOPpTjgOnrCmASmWYBaAwttuzwd8f87RcWnpOrjc64Wf1nmqk0x+UAxS1+aKNFBys3PvM1lbjgIIkEFiSi3MFnjFRl862ZStsue2Bq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NR8XmN/L; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711670673; x=1743206673; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Dg9fl2DYKd1S6Bc+b39oiuE3E+1/h1EYnX105Dk0gTo=; b=NR8XmN/LDanRfeeUItwb5wnr0NCLPsAgx8XWGemZiAxq5AIFFQ/dZMpF FJvljvPM1JZM5ud50jreliY9dLxe81LKtSwuftth96c1+qOlOQmaVOb+g HjA083HpRcAkaTA2uon6X/CRNKhCE2n6+SOsc/rGdzrgmmo9bmTbwrSG8 r3lYJs6Ndxv45GFuWEZi4zdA0Brb/5ceTZ8dkZBEFnwq6cGFOKsg7wd2W uaMtaSn+aV/4sgjei5zJdV/k3od7MShy84dgXtUrS+WN/hDMAWAPfSg1Y xlun2lFHs87qo/lsQEwX7ihPs2J5pLgtInJx13E+lXqGe1yvf9ND2MMWP A==; X-CSE-ConnectionGUID: 7aj3kUWGTna2x8EAtX5Zfg== X-CSE-MsgGUID: kbwlP1uERQ20/jtOqHXhhQ== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="32258456" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="32258456" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 17:04:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="47783336" Received: from sj-4150-psse-sw-opae-dev3.sj.intel.com ([10.233.115.74]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 17:04:31 -0700 From: Peter Colberg To: Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Russ Weight , Marco Pagani , Matthew Gerlach , Peter Colberg , Andy Shevchenko Subject: [PATCH RESEND] fpga: dfl: omit unneeded casts of u64 values for dev_dbg() Date: Thu, 28 Mar 2024 20:04:29 -0400 Message-ID: <20240329000429.7493-1-peter.colberg@intel.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Omit unneeded casts of u64 values to unsigned long long for use with printk() format specifier %llx. Unlike user space, the kernel defines u64 as unsigned long long for all architectures; see commit 2a7930bd77fe ("Documentation/printk-formats.txt: No casts needed for u64/s64"). These changes are cosmetic only; no functional changes. Suggested-by: Andy Shevchenko Signed-off-by: Peter Colberg --- This is an unmodified resend of the second patch only from the series "fpga: dfl: clean up string formatting for sysfs_emit() and dev_dbg()". Link: https://patchwork.kernel.org/project/linux-fpga/patch/0cffb04a207a98148c61f512aa4dc90880e51251.1687301688.git.peter.colberg@intel.com/ --- drivers/fpga/dfl-afu-dma-region.c | 14 ++++++-------- drivers/fpga/dfl-afu-main.c | 4 +--- drivers/fpga/dfl-fme-mgr.c | 5 ++--- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/fpga/dfl-afu-dma-region.c b/drivers/fpga/dfl-afu-dma-region.c index 02b60fde0430..71ed9d394d07 100644 --- a/drivers/fpga/dfl-afu-dma-region.c +++ b/drivers/fpga/dfl-afu-dma-region.c @@ -146,8 +146,7 @@ static int afu_dma_region_add(struct dfl_feature_platform_data *pdata, struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); struct rb_node **new, *parent = NULL; - dev_dbg(&pdata->dev->dev, "add region (iova = %llx)\n", - (unsigned long long)region->iova); + dev_dbg(&pdata->dev->dev, "add region (iova = %llx)\n", region->iova); new = &afu->dma_regions.rb_node; @@ -187,8 +186,7 @@ static void afu_dma_region_remove(struct dfl_feature_platform_data *pdata, { struct dfl_afu *afu; - dev_dbg(&pdata->dev->dev, "del region (iova = %llx)\n", - (unsigned long long)region->iova); + dev_dbg(&pdata->dev->dev, "del region (iova = %llx)\n", region->iova); afu = dfl_fpga_pdata_get_private(pdata); rb_erase(®ion->node, &afu->dma_regions); @@ -210,7 +208,7 @@ void afu_dma_region_destroy(struct dfl_feature_platform_data *pdata) region = container_of(node, struct dfl_afu_dma_region, node); dev_dbg(&pdata->dev->dev, "del region (iova = %llx)\n", - (unsigned long long)region->iova); + region->iova); rb_erase(node, &afu->dma_regions); @@ -255,7 +253,7 @@ afu_dma_region_find(struct dfl_feature_platform_data *pdata, u64 iova, u64 size) if (dma_region_check_iova(region, iova, size)) { dev_dbg(dev, "find region (iova = %llx)\n", - (unsigned long long)region->iova); + region->iova); return region; } @@ -268,8 +266,8 @@ afu_dma_region_find(struct dfl_feature_platform_data *pdata, u64 iova, u64 size) break; } - dev_dbg(dev, "region with iova %llx and size %llx is not found\n", - (unsigned long long)iova, (unsigned long long)size); + dev_dbg(dev, "region with iova %llx and size %llx is not found\n", iova, + size); return NULL; } diff --git a/drivers/fpga/dfl-afu-main.c b/drivers/fpga/dfl-afu-main.c index c0a75ca360d6..4342d40a2106 100644 --- a/drivers/fpga/dfl-afu-main.c +++ b/drivers/fpga/dfl-afu-main.c @@ -730,9 +730,7 @@ afu_ioctl_dma_map(struct dfl_feature_platform_data *pdata, void __user *arg) } dev_dbg(&pdata->dev->dev, "dma map: ua=%llx, len=%llx, iova=%llx\n", - (unsigned long long)map.user_addr, - (unsigned long long)map.length, - (unsigned long long)map.iova); + map.user_addr, map.length, map.iova); return 0; } diff --git a/drivers/fpga/dfl-fme-mgr.c b/drivers/fpga/dfl-fme-mgr.c index ab228d8837a0..da3cb9c35de5 100644 --- a/drivers/fpga/dfl-fme-mgr.c +++ b/drivers/fpga/dfl-fme-mgr.c @@ -150,7 +150,7 @@ static int fme_mgr_write_init(struct fpga_manager *mgr, priv->pr_error = fme_mgr_pr_error_handle(fme_pr); if (priv->pr_error) dev_dbg(dev, "previous PR error detected %llx\n", - (unsigned long long)priv->pr_error); + priv->pr_error); dev_dbg(dev, "set PR port ID\n"); @@ -242,8 +242,7 @@ static int fme_mgr_write_complete(struct fpga_manager *mgr, dev_dbg(dev, "PR operation complete, checking status\n"); priv->pr_error = fme_mgr_pr_error_handle(fme_pr); if (priv->pr_error) { - dev_dbg(dev, "PR error detected %llx\n", - (unsigned long long)priv->pr_error); + dev_dbg(dev, "PR error detected %llx\n", priv->pr_error); return -EIO; } -- 2.44.0