From patchwork Tue Jan 17 05:42:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 44496 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1578111wrn; Mon, 16 Jan 2023 21:43:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXucqs1tdJ3HI2pNopHX/IPLpDUTssd71P2MyfvKP5hAO287qm6CK1MRvHB+cL/yyxehG54g X-Received: by 2002:a05:6a20:7048:b0:b8:915c:477f with SMTP id i8-20020a056a20704800b000b8915c477fmr1651599pza.19.1673934232578; Mon, 16 Jan 2023 21:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673934232; cv=none; d=google.com; s=arc-20160816; b=AvnsInrc8EIACjZo/gwNSI5UeYNHmG9oWCFcyhHpH1otNBsrK/dQ0mzGD7xiWTKJfY vAbS6rOR7qj9MadgDLWpdIwXGQAi5Dub3PNEJwx5xj1rHsFoSbZu6p9H9gkww7Di/j42 /AtopkiDsb4hdTz/DKW+Lgupwq3l3XYVIH/iyfRdr4/uA9YOFdxaHRMdC23aAaalxQ8F OTu5uLmQpXLTjOcVlfmuDBufeEcuXnkW/b0fdpiBaiCy+5i3PNZbpoRx4Lot8Umcfg9C GroB+Z6MURTNYK3La62sPQU1WjSLY+y7yF5Kp4gK8IrX/YreNRKlIl91fGvKFmX/qx+C 0KcQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/WKOGoBxBJ7e9eHs1d/Wh7HfUyq9RNCraETWyfvIuN4=; b=bAGNDgkMPuHVsw99aOpW5CAUBfkxWHo/EolJQSgXq3vN7Lyz3frmPx4ZXQzhB0OJ1k /7nm7PViu3yc3fMzuVG4C0s5E8ig5KjhiYILARs8Anhqn+HWfoIgFm7dS+WdaXgNd4vm nNi2AlGzPTUwfL2assxWd57I1JRGHtERdeSygwVKe9QlZY+/nnXoK3xUQ0/F+z/fGSb1 aeAF3Es5Av5g/VHi2YBev8KHNFnJ4Tn4sN9XT+SzzZ+9A6cres6L6yUOcB0UU6KtOvk8 AGpG+iljKDeN55G0OgFWhs+9BVWj5g9n9XkQNtiMTg2TU5BGhfCnzL27z6drv7YzCBS7 iudw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=RERJfXS4; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k24-20020a63f018000000b004b5620ecea4si22102332pgh.356.2023.01.16.21.43.39; Mon, 16 Jan 2023 21:43:52 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=RERJfXS4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235331AbjAQFmp (ORCPT + 99 others); Tue, 17 Jan 2023 00:42:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbjAQFmk (ORCPT ); Tue, 17 Jan 2023 00:42:40 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37DB318B0D; Mon, 16 Jan 2023 21:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=/WKOGoBxBJ7e9eHs1d/Wh7HfUyq9RNCraETWyfvIuN4=; b=RERJfXS4VIkaB3Go+ku9pr/fo5 6+TYiTA2e6th8ndw1sLQ2VFzq51ZTp9I55eF1kqXd+SsQ92OTY/hU1dquGLvf5Gx09tOJjRA3kw6Y 1pubaq+16KKv8jFjE6bLj9sVyy9FdianTkSAFu30W/5fGbTguX6iWQwv1XX6L/co9xjiOLfLPVZxW 1ehDLrCV+bzSuZcVXcWF5HYBXPwjJkI/6FTTevATBM7qrOdcqBdFSUU38ieTVZQ+mipMdwaMoHts0 3PytaHowkV6c3EFF0sq81+IRMjGzNDHKe+dSma1HH1wjVzL6kaW5FFca0tGBssR0n0X2TDbNRDlFE +Q4hdnGA==; Received: from [2601:1c2:d80:3110::9307] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHejy-00Czpc-PB; Tue, 17 Jan 2023 05:42:34 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Vincent Shih , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Subject: [PATCH] rtc: sunplus: fix printk format warning Date: Mon, 16 Jan 2023 21:42:32 -0800 Message-Id: <20230117054232.24023-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755247261848756366?= X-GMAIL-MSGID: =?utf-8?q?1755247261848756366?= Use %pap to satisfy the printk format warning: drivers/rtc/rtc-sunplus.c: In function 'sp_rtc_probe': drivers/rtc/rtc-sunplus.c:243:33: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=] 243 | dev_dbg(&plat_dev->dev, "res = 0x%x, reg_base = 0x%lx\n", | ~^ Fixes: fad6cbe9b2b4 ("rtc: Add driver for RTC in Sunplus SP7021") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Vincent Shih Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: linux-rtc@vger.kernel.org --- drivers/rtc/rtc-sunplus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/drivers/rtc/rtc-sunplus.c b/drivers/rtc/rtc-sunplus.c --- a/drivers/rtc/rtc-sunplus.c +++ b/drivers/rtc/rtc-sunplus.c @@ -240,8 +240,8 @@ static int sp_rtc_probe(struct platform_ if (IS_ERR(sp_rtc->reg_base)) return dev_err_probe(&plat_dev->dev, PTR_ERR(sp_rtc->reg_base), "%s devm_ioremap_resource fail\n", RTC_REG_NAME); - dev_dbg(&plat_dev->dev, "res = 0x%x, reg_base = 0x%lx\n", - sp_rtc->res->start, (unsigned long)sp_rtc->reg_base); + dev_dbg(&plat_dev->dev, "res = %pap, reg_base = 0x%lx\n", + &sp_rtc->res->start, (unsigned long)sp_rtc->reg_base); sp_rtc->irq = platform_get_irq(plat_dev, 0); if (sp_rtc->irq < 0)