Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1853787lqz; Mon, 1 Apr 2024 22:08:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDovfjTcROFbAyWSiZridvegnKhMKSVSUgcuK20kj8b4JfXgp775QKVStyxjIbLVr8PyY0RSR5DHIgGD7H9HO52+qeXCK0ZhUIPsPbQw== X-Google-Smtp-Source: AGHT+IEtmP0xzBddN84AndHbX9MIMSK6xGLaGaV7FCROGMNV/F/1mVjyHpLGVQo0a9GwhPeNTGOF X-Received: by 2002:a05:6808:2dc5:b0:3c3:9d04:9ef with SMTP id gn5-20020a0568082dc500b003c39d0409efmr14610985oib.50.1712034534930; Mon, 01 Apr 2024 22:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712034534; cv=pass; d=google.com; s=arc-20160816; b=0Mx8InBQeIkGaDwmrsgYZ1t7qhdsHdzIHhWbwlhjjycrpZyPJdRuqg00qShuHOQ1N2 aY5YccBFpGlPqPIjnWQd4TQVFf09NMXE0U8q9lJhbxzkCa6LEgQ5nIA1welglllRCP3g 9QkLxcW2Y+Mmor5nUpHTKnqs8aMmtvt/5dSVgIawAtg8N0pSC/wBbevZVIjG/XG5JX3a Bh3B06vvF1YzsG4YJGY8VWKje8etu7QM9kx2bO5ujnkPiiboTaCE3rCpywmarhrbsG8o aNHALa33oxgPQwCtbF0i83VRxaMEqJso7zE/dkSPIbOcfA5PCDS58TeDkUmLyCQSMmnZ nNAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NN89PfnOHpKPw1kDKCw6vVO4U+fdg3C9vjQYxXW6LGM=; fh=jW1tYRxPYDxDx4fjQYFwsBQgOVdMHUe31b3/z0vX19c=; b=J6XfZ4D4fRvsRNgp/PgrDkvHM/7l6cqxyQin78lpIq1PO/m1FtENckweAGM2ChnojW 0cbrnf/TJgCvypXahDUFpVb1iBTOD701Sag/yQ+ovwIPtrWvlkwRhVdCbR/bOSaXFWZq JuxahDoBTxHb6u8M6tPXF0F5RN4e6Cet9yQX2X274PiwIDmfGp6cFZSNBmFnZMUUZneJ 2Gsys5rvRYyTu9FBT2CKVJLbkZK/AHYC2sk64rMc1OhzhCnsYsz+gfW7USsSBJfe+ryH rfeB7zhHx7QF04oOy06ix4mI0ORfCuyEZQsqv2qk7QxVVHvpczsfBoTpWevbrT+3BzqR r/IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VJYsoJ+V; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h11-20020a63c00b000000b005dc90546100si10346284pgg.295.2024.04.01.22.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 22:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VJYsoJ+V; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127342-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 260F8B22342 for ; Tue, 2 Apr 2024 03:34:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 009F4168DD; Tue, 2 Apr 2024 03:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VJYsoJ+V" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 9F3C614286; Tue, 2 Apr 2024 03:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712028836; cv=none; b=hkXcCpXk199KxtRCRGKUBt8rdT7T3q5IP2GWmJOTr/kEryOoIb9Zy/dxNRPq0tNxF2fpeDchq5WzkCVuB+RIjIXdQ1dONr3T9gvR3dpAZV+qpRyB/QsDic8EQ/Ug0KiFMlsZvFSFKeoysP8+PM33sBGaThw8Ufpjdihjux2Lw4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712028836; c=relaxed/simple; bh=nm+nAlqpw3ca2xRqXTLmgegLhY4MxsydF/vxsaUw2M0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PAU++oRdk8LUPi5Gpsc8DlvZKzHXDhjCYx0lhhgMBRWNuHk2AoDs1YfQ81DMBRJ9iXzKC+5IhpqcX8nwZekLQkwdt8eI/vB6H8NQhyhSW6b1anGFNnxlqZGGKjL61xxTpdp7xwSrSnksCXmy0WRKj+HYGa4z0K+HRbS/1rAnhK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VJYsoJ+V; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712028835; x=1743564835; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nm+nAlqpw3ca2xRqXTLmgegLhY4MxsydF/vxsaUw2M0=; b=VJYsoJ+VfIuaCv5r9auzCwKTzQOA8AxZZiy2DOP6dibSnqjl94erSl/u 5KJn9USDVJ7CQaXCWqqBnsEEgkdzj8j1q3YXnfV46w6/JlWAGbBHXRQrD 6hjTYQCuTCkL21FX5DkLAoEaG38v25e9SeRZ+zvUVFh6qf11IHU20xd0K uWt6ZQ18/CQC4o9TiV/LCpnZGkLz1yPUmeML34xr6a9we3IQ4xohw59g0 UX/D+MTqtKueAg+PyjFlUDyXaZENF4DZiM77vPNtrEq2Oy/XPGldoMoNt VqNdO7I1mPhL3Q/5qt3od+hZlgV6IXs+tgC77wQOEBjyIaKjTPojIrwK5 Q==; X-CSE-ConnectionGUID: cOJwGq+CSjW5IU63M5OqUQ== X-CSE-MsgGUID: 1UUT7MF/QJS/IqMqBbUcvA== X-IronPort-AV: E=McAfee;i="6600,9927,11031"; a="10997135" X-IronPort-AV: E=Sophos;i="6.07,173,1708416000"; d="scan'208";a="10997135" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2024 20:33:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,173,1708416000"; d="scan'208";a="22587250" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmviesa004.fm.intel.com with ESMTP; 01 Apr 2024 20:33:51 -0700 Date: Tue, 2 Apr 2024 11:29:00 +0800 From: Xu Yilun To: Peter Colberg Cc: Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Russ Weight , Marco Pagani , Matthew Gerlach , Andy Shevchenko Subject: Re: [PATCH RESEND] fpga: dfl: omit unneeded casts of u64 values for dev_dbg() Message-ID: References: <20240329000429.7493-1-peter.colberg@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240329000429.7493-1-peter.colberg@intel.com> On Thu, Mar 28, 2024 at 08:04:29PM -0400, Peter Colberg wrote: > 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"). The change is OK. But I suggest just delete the unnecessary dev_dbg() since now people normally don't want these "Hello, I'm here!" info. > > 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()". Why only pick this patch out of the series? [...] > 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); I'm not sure if this is an real problem. Maybe we could keep it. > > 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); This is a real problem, is it? Change to dev_err()? Thanks, Yilun > return -EIO; > } > > -- > 2.44.0 > >