Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1798133rwd; Sun, 28 May 2023 02:43:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61/idMAkqY9RdLypONskWs2+nmyQErTTReHnf8ig0ZORTpWZIw3woFBkZIXGwqPB4YhaE5 X-Received: by 2002:a17:902:c410:b0:1ad:fcdc:2a9f with SMTP id k16-20020a170902c41000b001adfcdc2a9fmr10088782plk.51.1685267033999; Sun, 28 May 2023 02:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685267033; cv=none; d=google.com; s=arc-20160816; b=09ib3M3/rEEoGAagS0dcaNLFvHM+TLh5Vqz9HgUZLF84QUKvZC8jFGVHyweKVhGXM0 hh3rooVE7TCMofsV/AlS4pe+StUK+U6FA0jg6kXkPUAAe5KBeN66noReXjMel837gimh Ey/Wlto86ftSiG/48KSoz/vhrW66bGPdRGfYabBOrBedEpu09BRwDZxDGLMSeRcGT+pt HLxQW3r266QL58Y/VRA67plr3b7qyGXl05qQE7/XvYOxopmTY7NRrEtC2RdXHn0nnW3x vgVhNC3sEfIXRMWMcPgYDvL3RI4f0Hqu6a7d0Be5tVTy14gLRnFB1hakIP8re/cn+D0k 7FfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L5apzWOtZuTJOfXE6mi1soXxoB5/pgyI8ubB1tdlJ8c=; b=YM4+VNib6YnoU2+LqE8aswOQ0850w25d+6MeszUOREgnuIbeOFbT0ARezyTyJGECxU 3OIaEsfmjV1QEBrLgjirdYS2fk/IGrcVIr8e9rfYZdBBw1qaY2uYMgLNwO4xpMmHA0gU I5P0QXOV0p2gE5RnbAKPrrMGOfNa/PloBF6eRWRDDLPZo3CZkJ9VxPk2NpM7ntBT+4i1 FYfL2J+Tjcuzx+YQLcnKbrv05uKb/9/WnJgzt4/1nfxqM5ZNOyhroGgSHYd42ZK8DWWo IGChOi1GrXylJDSSkBtH33ntt0uZTmO32LK3cWAQf67ovyR4aIx2t9RSKAvVFkHZbGJi PwlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eEwCMGxh; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a170902aa9300b001ab0340f9cesi7390901plr.11.2023.05.28.02.43.37; Sun, 28 May 2023 02:43:53 -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=@linuxfoundation.org header.s=korg header.b=eEwCMGxh; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229470AbjE1I7f (ORCPT + 99 others); Sun, 28 May 2023 04:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjE1I7d (ORCPT ); Sun, 28 May 2023 04:59:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6168AC3 for ; Sun, 28 May 2023 01:59:32 -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 E572A60B8F for ; Sun, 28 May 2023 08:59:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A141BC433D2; Sun, 28 May 2023 08:59:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685264371; bh=1bcyegoixc2lffmeeEozrOPkCJkoAIG0nh4u/jbtUw8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eEwCMGxhXeSj3PpmiHhppuuANzDQ16hf8zUDIbQ6ewsYzmHfcLZCfjZ5MXY2i09XB aJfNYotWyVunKT0ULFLoxSboGmZm0VpH91QT5ktRwORv0lGBaaoecgn24CaS1GK8MZ AnMAyf71ZtvGpq7at9Z30GpZpLcqAh62jHqNSz5E= Date: Sun, 28 May 2023 09:59:27 +0100 From: Greg Kroah-Hartman To: Prathu Baronia Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Khadija Kamran , "Fabio M. De Francesco" , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, dan.carpenter@linaro.org, error27@gmail.com, lkp@intel.com, oe-kbuild-all@lists.linux.dev, oe-kbuild@lists.linux.dev Subject: Re: [PATCH v4 1/3] axis-fifo: fix smatch warning for format specifier Message-ID: <2023052814-savage-culprit-2096@gregkh> References: <20230527115101.47569-1-prathubaronia2011@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230527115101.47569-1-prathubaronia2011@gmail.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Sat, May 27, 2023 at 05:20:58PM +0530, Prathu Baronia wrote: > Fix an old smatch warning reported by lkp introduced by commit > d2d7aa53891e. In the mentioned commit we had used "%pa" format specifier > for a void* type and hence smatch complained about its use instead of > "%p". > > Fixes: d2d7aa53891e ("staging: axis-fifo: convert to use miscdevice") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Link: https://lore.kernel.org/r/202305150358.nt1BkbXz-lkp@intel.com/ > Signed-off-by: Prathu Baronia > --- > V3 -> V4: Split into warning fixing and cleanup commits > V2 -> V3: Fix smatch warnings from kernel test robot > V1 -> V2: Split into logical commits and fix commit message > > drivers/staging/axis-fifo/axis-fifo.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c > index 7a21f2423204..271cab805cad 100644 > --- a/drivers/staging/axis-fifo/axis-fifo.c > +++ b/drivers/staging/axis-fifo/axis-fifo.c > @@ -906,8 +906,8 @@ static int axis_fifo_probe(struct platform_device *pdev) > if (rc < 0) > goto err_initial; > > - dev_info(fifo->dt_device, "axis-fifo created at %pa mapped to 0x%pa, irq=%i\n", > - &r_mem->start, &fifo->base_addr, fifo->irq); > + dev_info(fifo->dt_device, "axis-fifo created at %pa mapped to 0x%p, irq=%i\n", > + &r_mem->start, fifo->base_addr, fifo->irq); In looking at this further, this whole dev_info() line should just be removed. When drivers work properly, they are quiet, otherwise the kernel log would look even worse than it currently is. So please just remove this entirely. Also, attempting to print memory addresses to the kernel log is very suspect and generally frowned apon, which is another reason this shouldn't be done. thanks, greg k-h