From patchwork Thu Feb 23 07:01:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60809 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp175314wrd; Wed, 22 Feb 2023 23:10:54 -0800 (PST) X-Google-Smtp-Source: AK7set90oiXiRR90fAqxOHk98GkJaHf2lmU8t0YNRT08rYbalLv0W/VavQdJCHlPAmW/mQsX2No8 X-Received: by 2002:a05:6402:268e:b0:4ac:b24b:8ce0 with SMTP id w14-20020a056402268e00b004acb24b8ce0mr9833575edd.4.1677136254488; Wed, 22 Feb 2023 23:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677136254; cv=none; d=google.com; s=arc-20160816; b=bB0OnZ1ws1QIivqwNTGVif/UYen/GyuIfxJnejc3URB5CWKHeThwqj630iPXAYHY6T aBTu3bYEYE/3rJzGYfKXkfnqtnhpSdSEJG663Y+n3kKiVHEYINP6XZoGJ3QSC3P0yOmD DmtyDjZZUn/p2vzVomVTxqCsOeJnMj/SttKeg3KOAmucZBOefbeml2Z/lGVocjoCHwkE 3HH4RuiOhlYR6pP675bEmusIRHrQikbGLJRIanh/4xkQN+t+r7HsD1I05Md6puuJNoQM Sd21TbaRK2p/rzownpGI5O7aX2dqBsRRfN23QUMEJvodZhVFsb1G2+J4byMF9qRbdcnb sYSQ== 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=IxmQQoiv4zd0sXAXrZdHnjwV4WUcXZ4Ow9C4raydYTA=; b=npVVwkr9L+1dSA83hnXi4x4g5xi7qBt9Ta8hYnYYgTeAZI5x67aVKlzcFffNXRNh0w W+kNRZUbafmu+FpTuM1PBe5/ljjexxtieQMNf+GQCGSsDbSEX6rVbhIsfJ4bsnh7aAgG TnO79C0GQWDoqSQU798RKQRpMn9Oc2m4MGdZuhbJsYnoW7e1Y/lLUUO+wXYste/0kwZN wZ5TRteSMilbhUf0n6dHl6WF+fBlm0bMzwj2NfMFCeXlG0yP2VzYVqldQdhUcEAcSKUl +xoMNxrKp6pbLCpwgF8tSHhFYp+cGQTEgbjaz6JJ36AUASfkF91kHsb0rowztvaUSet5 FKzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=3a0VaGCf; 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 fu35-20020a170907b02300b008e649198db8si4274275ejc.720.2023.02.22.23.10.31; Wed, 22 Feb 2023 23:10:54 -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=3a0VaGCf; 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 S233464AbjBWHBX (ORCPT + 99 others); Thu, 23 Feb 2023 02:01:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232580AbjBWHBW (ORCPT ); Thu, 23 Feb 2023 02:01:22 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D69149886 for ; Wed, 22 Feb 2023 23:01:20 -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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=IxmQQoiv4zd0sXAXrZdHnjwV4WUcXZ4Ow9C4raydYTA=; b=3a0VaGCfdEWsxlHBFoLewcx7rM y3ytzZMgT68GyP4S54Hz4unOjQZgCo3oB83XVbMwbI7bgL+XrOF7510wj7TCpcvQLXWVzlKZ58+v7 3KJidHDLifH+OnZ2Eu1fZlsrSwwLMcs9+C1ImY3OdeWYZUghAN8p0FHPM8w+6u8T316UuqSOu7Bye B7F3nDckF0UocPVnMkez9fkHuwK0zVmbrLPgCQvzrQjWbC0eZnf8j0o7QVrCMTz8vaZVdYQquFC3g T2FrAJZ5J8RH7DCUzxjutE/zE9EUhtnpxJhpF+sPxbeKAjxY3EzQfXHnn+jr64t7Zz1AOc+M2NbMr a5t1pmZw==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV5bS-00FMG2-Tb; Thu, 23 Feb 2023 07:01:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Gerhard Sittig , Anatolij Gustschin , linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Nicholas Piggin , Christophe Leroy Subject: [PATCH 1/4] clk: mpc512x: fix resource printk format warning Date: Wed, 22 Feb 2023 23:01:13 -0800 Message-Id: <20230223070116.660-2-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223070116.660-1-rdunlap@infradead.org> References: <20230223070116.660-1-rdunlap@infradead.org> 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?1758604825254954030?= X-GMAIL-MSGID: =?utf-8?q?1758604825254954030?= Use "%pa" format specifier for resource_size_t to avoid a compiler printk format warning. ../arch/powerpc/platforms/512x/clock-commonclk.c: In function 'mpc5121_clk_provide_backwards_compat': ../arch/powerpc/platforms/512x/clock-commonclk.c:989:44: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] 989 | snprintf(devname, sizeof(devname), "%08x.%s", res.start, np->name); \ | ^~~~~~~~~ ~~~~~~~~~ | | | resource_size_t {aka long long unsigned int} Prevents 24 such warnings. Fixes: 01f25c371658 ("clk: mpc512x: add backwards compat to the CCF code") Signed-off-by: Randy Dunlap Cc: Gerhard Sittig Cc: Anatolij Gustschin Cc: linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy --- arch/powerpc/platforms/512x/clock-commonclk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/arch/powerpc/platforms/512x/clock-commonclk.c b/arch/powerpc/platforms/512x/clock-commonclk.c --- a/arch/powerpc/platforms/512x/clock-commonclk.c +++ b/arch/powerpc/platforms/512x/clock-commonclk.c @@ -986,7 +986,7 @@ static void __init mpc5121_clk_provide_m #define NODE_PREP do { \ of_address_to_resource(np, 0, &res); \ - snprintf(devname, sizeof(devname), "%08x.%s", res.start, np->name); \ + snprintf(devname, sizeof(devname), "%pa.%s", &res.start, np->name); \ } while (0) #define NODE_CHK(clkname, clkitem, regnode, regflag) do { \ From patchwork Thu Feb 23 07:01:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60810 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp175327wrd; Wed, 22 Feb 2023 23:10:56 -0800 (PST) X-Google-Smtp-Source: AK7set9Gto2o2h+uSmwQZIDUsv9lbU37ttnXrJUMOPD8mL71pCuqbcB9PM+PkntE+O0xEFs7lCKd X-Received: by 2002:aa7:8110:0:b0:5dc:6dec:da46 with SMTP id b16-20020aa78110000000b005dc6decda46mr1268906pfi.1.1677136255900; Wed, 22 Feb 2023 23:10:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677136255; cv=none; d=google.com; s=arc-20160816; b=VJAYokuRm3chCZsZJEo9sholXiz4QOs6sX9kF2tEclBCBZ9eCBW5fTnOKl/VCKmOOv MZY0D/V0vR5BN5G9CKTDBoREBFbmcRaiWrP/iUg3gHJUc5OMTN5hrlTW/uOlH8c5zqf/ JPObYSGIA+RbTVXLL3S/ZmSybEQz2ULSzvf7AbRIVfPR+t4VlaZIvsniKz0zYDcx/ATz WHXb6neF35nhWlODk4gf+30mw6FH8FFONzPvvTqKTbS+bTq5dnc9+NIaKpT9XME8RJ/M lGk2V5nxnbSCWSzaXBrgL060ODJEkVv6fhUEDd5y2oafAK2mhrGdY+JPUtEM/6sK6FPJ XSPA== 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=RvTZWKKLUKmH7kChhctBVFCNZXalhVpIiuRG6cu695g=; b=VKKICO1eV7hsTqFT6R1saJPAmQp6ruUoN8pG7HwvoJscQuFD0qw9vusLYqhwM0VHCH Yf/i5QxcLKjddxJ2LEz0w09jxcLNXUoImOOI4Zm5ZAhWNQ0k/3PpPNTvU1l1X2c7u20j KsrG0YRGEnJVmT4mfcPnhSGv9JpZQLnP20lnEcjz/FUmCZG1Rbl8e5S3fdnSIWmic/1I ny51Un4TzAu5Yz+dnLJ20ec/jQRFjzZz3j2ChTKswukjSlBWB/U2zgr27UvwBaXKUVOz IY+N0bZq7briRUTGePoUSYL3UBLZra6rmST1wpGo9RZp4dyhsRFvqz/jcAuuhg7xC9AR rxdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="eAa/AbRr"; 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 t18-20020a056a0021d200b0058de6e19a35si13941359pfj.279.2023.02.22.23.10.42; Wed, 22 Feb 2023 23:10:55 -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="eAa/AbRr"; 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 S233473AbjBWHBZ (ORCPT + 99 others); Thu, 23 Feb 2023 02:01:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233193AbjBWHBX (ORCPT ); Thu, 23 Feb 2023 02:01:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DEC749890 for ; Wed, 22 Feb 2023 23:01:20 -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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=RvTZWKKLUKmH7kChhctBVFCNZXalhVpIiuRG6cu695g=; b=eAa/AbRr9OPxEuPgPTZYHiarGI 4qM+4bn6VEo//HbDovWuJ6uM+xBT2IjD12xaYw6W2X7nfA3RVb11/wPR5pOEI/iQ+xEnIHU6XvByF ofGJpRGRY3gZFwPeL2mnv1FF+lJRZoD+Dxky+z2SOEjd2h1E7XQ5wT+jHxRwGmLqp6Wq8SYm8kco8 bNg3TNb4aDdg9yj8yUi9e3JdXU0v1PRqBg9CioH+AY1ahJFXnwrmPcAFN0KFk1YkoathJ7KCNJID6 hJDRjfjuIroAFEOt744Mq3kn8NSWduDzaTvXQppXEhgfNdOlJ48mfrpP4Q15bkDyHMdH1McyqyApq DiHJw91A==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV5bT-00FMG2-CG; Thu, 23 Feb 2023 07:01:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Albert Herranz , Segher Boessenkool , Grant Likely , Benjamin Herrenschmidt , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 2/4] powerpc: wii: fix resource printk format warnings Date: Wed, 22 Feb 2023 23:01:14 -0800 Message-Id: <20230223070116.660-3-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223070116.660-1-rdunlap@infradead.org> References: <20230223070116.660-1-rdunlap@infradead.org> 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?1758604826421078058?= X-GMAIL-MSGID: =?utf-8?q?1758604826421078058?= Use "%pa" format specifier for resource_size_t to avoid compiler printk format warnings. ../arch/powerpc/platforms/embedded6xx/flipper-pic.c: In function 'flipper_pic_init': ../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] ../arch/powerpc/platforms/embedded6xx/flipper-pic.c:148:9: note: in expansion of macro 'pr_info' 148 | pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base); | ^~~~~~~ ../arch/powerpc/platforms/embedded6xx/hlwd-pic.c: In function 'hlwd_pic_init': ../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] ../arch/powerpc/platforms/embedded6xx/hlwd-pic.c:174:9: note: in expansion of macro 'pr_info' 174 | pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base); | ^~~~~~~ ../arch/powerpc/platforms/embedded6xx/wii.c: In function 'wii_ioremap_hw_regs': ../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] ../arch/powerpc/platforms/embedded6xx/wii.c:77:17: note: in expansion of macro 'pr_info' 77 | pr_info("%s at 0x%08x mapped to 0x%p\n", name, | ^~~~~~~ Fixes: 028ee972f032 ("powerpc: gamecube/wii: flipper interrupt controller support") Fixes: 9c21025c7845 ("powerpc: wii: hollywood interrupt controller support") Fixes: 5a7ee3198dfa ("powerpc: wii: platform support") Signed-off-by: Randy Dunlap Cc: Albert Herranz Cc: Segher Boessenkool Cc: Grant Likely Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/platforms/embedded6xx/flipper-pic.c | 2 +- arch/powerpc/platforms/embedded6xx/hlwd-pic.c | 2 +- arch/powerpc/platforms/embedded6xx/wii.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff -- a/arch/powerpc/platforms/embedded6xx/flipper-pic.c b/arch/powerpc/platforms/embedded6xx/flipper-pic.c --- a/arch/powerpc/platforms/embedded6xx/flipper-pic.c +++ b/arch/powerpc/platforms/embedded6xx/flipper-pic.c @@ -145,7 +145,7 @@ static struct irq_domain * __init flippe } io_base = ioremap(res.start, resource_size(&res)); - pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base); + pr_info("controller at 0x%pa mapped to 0x%p\n", &res.start, io_base); __flipper_quiesce(io_base); diff -- a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c --- a/arch/powerpc/platforms/embedded6xx/wii.c +++ b/arch/powerpc/platforms/embedded6xx/wii.c @@ -74,8 +74,8 @@ static void __iomem *__init wii_ioremap_ hw_regs = ioremap(res.start, resource_size(&res)); if (hw_regs) { - pr_info("%s at 0x%08x mapped to 0x%p\n", name, - res.start, hw_regs); + pr_info("%s at 0x%pa mapped to 0x%p\n", name, + &res.start, hw_regs); } out_put: diff -- a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c --- a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c +++ b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c @@ -171,7 +171,7 @@ static struct irq_domain *__init hlwd_pi return NULL; } - pr_info("controller at 0x%08x mapped to 0x%p\n", res.start, io_base); + pr_info("controller at 0x%pa mapped to 0x%p\n", &res.start, io_base); __hlwd_quiesce(io_base); From patchwork Thu Feb 23 07:01:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp175442wrd; Wed, 22 Feb 2023 23:11:20 -0800 (PST) X-Google-Smtp-Source: AK7set8E0WqtTWt4NrNBN72iA/JFC+48onVSh5jtV2MDiq1vUqJA2k+NRW17F4lvfb1mrIm7bWsl X-Received: by 2002:a05:6402:35d0:b0:4ad:6f56:a362 with SMTP id z16-20020a05640235d000b004ad6f56a362mr12631377edc.4.1677136279911; Wed, 22 Feb 2023 23:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677136279; cv=none; d=google.com; s=arc-20160816; b=yb5BCVFAOcYghZf7ouIUwapG1qiRWe81tPkq6zqOb6zUw80DjnvSLl1/rrK8A+RBkb OL8OAURuxZ6EbTBRVAG6RTSxYtGugXVUqWn5tBd4DsowQVRoi0+GLcatp33psWJoqvxY 7JTwtY39vswO+kDt0y8jtqOg9qDZTlQ9KM28SICDhZzpDTSMr59r7pUmdUAnbSQGhJrA utFeZztAl5TpclwDVk2JuyDgNCoF35cBqf2trAEIGFCW8nJ8pUkM66iKLpgfUsYW936Q QYc6j/tXSfLZ0v/TW+whp6sueFZtimavTBRyA6whxe3DjH8e3zc3gY3B9QXp0ly+TXk9 NCwg== 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=6eyKcKxeMsYYmm98/NS8k7jDKjha+yov5mDRD5bGFDU=; b=IxBLq0nkZlgq/3f65qxhnvSmjG6C92niTjm6G1fykz+eAFYqyN5WxkhTad9bmYVISu OqTBRzAuwSbCHPR9DoSWiLjXtJGGUbEcNnQRztTFyJ2+T+nEgWTNPq4sqtH+xXMCLA2b JrCM9gjkdrCeM5BoXTtH4QHWu9m5spehqalZKhHhPBJZzUF1ZtLnhfdBgQK47w1UNMVY d2ERCQvoHUsdSLGFoC5Uvh3miyv6epGW+jxeqzgYkWFxASZ6NxaEGKBjClkZ9/08Fa97 CTB0eHIlVXYzVvzK3RBC0t6LQTPy4mOdsOW/MQuzbw7fVzuNaAI/E2X4Cn6824cmFaHD BybA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=cxY5zSb4; 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 i5-20020a50fc05000000b004acc030698dsi6071441edr.513.2023.02.22.23.10.56; Wed, 22 Feb 2023 23:11:19 -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=cxY5zSb4; 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 S233480AbjBWHB2 (ORCPT + 99 others); Thu, 23 Feb 2023 02:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbjBWHBX (ORCPT ); Thu, 23 Feb 2023 02:01:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36CE84A1CE for ; Wed, 22 Feb 2023 23:01:20 -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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=6eyKcKxeMsYYmm98/NS8k7jDKjha+yov5mDRD5bGFDU=; b=cxY5zSb4hUqUbspjYybU6JKQmb WTdtv8C1po4tIfjgCCs0LbsZDScsTx4CnpPlToHW3PPJmcje/wc47WZqD56/urWAJ43oAVZQEW4eE ZVafpPBbR44MKIfyTicylpB+Yu2Mn76CCkf7guxG7rQSX7plYsCGWrY4ans2nXoUG7obCFxnKRXVf grymJooQjDMyZr2FIZ8WXS3SPdZ74khjJJEhCy9E3sQES0ayZWmZKFs9ZZjhgCAaHYozVW0xAw/1M nqpPKpCY+nc1/spw/cDDBjn+00yspZkSMT6N9RCwCSx6X6kn0m/9Utraaa3WEqeeatzCv5QgEOFWy 0Gnn31HQ==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV5bT-00FMG2-OI; Thu, 23 Feb 2023 07:01:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Nathan Lynch , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 3/4] powerpc/pseries: RTAS work area requires GENERIC_ALLOCATOR Date: Wed, 22 Feb 2023 23:01:15 -0800 Message-Id: <20230223070116.660-4-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223070116.660-1-rdunlap@infradead.org> References: <20230223070116.660-1-rdunlap@infradead.org> 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?1758604851573686635?= X-GMAIL-MSGID: =?utf-8?q?1758604851573686635?= The RTAS work area allocator uses code that is built by GENERIC_ALLOCATOR, so the PSERIES Kconfig should select the required Kconfig symbol to fix multiple build errors. powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o: in function `.rtas_work_area_allocator_init': rtas-work-area.c:(.init.text+0x288): undefined reference to `.gen_pool_create' powerpc64-linux-ld: rtas-work-area.c:(.init.text+0x2dc): undefined reference to `.gen_pool_set_algo' powerpc64-linux-ld: rtas-work-area.c:(.init.text+0x310): undefined reference to `.gen_pool_add_owner' powerpc64-linux-ld: rtas-work-area.c:(.init.text+0x43c): undefined reference to `.gen_pool_destroy' powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o:(.toc+0x0): undefined reference to `gen_pool_first_fit_order_align' powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o: in function `.__rtas_work_area_alloc': rtas-work-area.c:(.ref.text+0x14c): undefined reference to `.gen_pool_alloc_algo_owner' powerpc64-linux-ld: rtas-work-area.c:(.ref.text+0x238): undefined reference to `.gen_pool_alloc_algo_owner' powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o: in function `.rtas_work_area_free': rtas-work-area.c:(.ref.text+0x44c): undefined reference to `.gen_pool_free_owner' Fixes: 43033bc62d34 ("powerpc/pseries: add RTAS work area allocator") Signed-off-by: Randy Dunlap Cc: Nathan Lynch Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org Reviewed-by: Nathan Lynch --- arch/powerpc/platforms/pseries/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig --- a/arch/powerpc/platforms/pseries/Kconfig +++ b/arch/powerpc/platforms/pseries/Kconfig @@ -7,6 +7,7 @@ config PPC_PSERIES select OF_DYNAMIC select FORCE_PCI select PCI_MSI + select GENERIC_ALLOCATOR select PPC_XICS select PPC_XIVE_SPAPR select PPC_ICP_NATIVE From patchwork Thu Feb 23 07:01:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp175956wrd; Wed, 22 Feb 2023 23:12:52 -0800 (PST) X-Google-Smtp-Source: AK7set8Htqd6SH6wsteHoC1Rx05T6VY9Xm/CgT46EA8HM9ZtBpTsBWZkMmZYBJbGYk9qx50CrEO5 X-Received: by 2002:a17:902:d48d:b0:19a:a815:2853 with SMTP id c13-20020a170902d48d00b0019aa8152853mr12087694plg.1.1677136372669; Wed, 22 Feb 2023 23:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677136372; cv=none; d=google.com; s=arc-20160816; b=gvF/LPjNEiFS9eot1Vlydf4hPH0lzFJtIAj8qohhRAz5V2OXxCc9/xhar6POPgPJma 7Vrr9dzoC8hgnMBxUAYhLhyhT20oNeFlpTa/s7CFKnOJNbURgaefilGCNZNySB8w/OZx C14G+p6DpcJZ6LD4MRnjQS9R8YkjOmnf4nrLrwBO8yLwwiQtl9GM6kv5tQL2Hr3Vbz7t IYiuJX0tPGqLvPWNS/XRKaWiq2IHgKr0A7Zukftd2NJI5dFMyKZi6P+w8MgDC9IUWI2b 25AOORSyxl2CJbGI6+7ceOIarnDevxnFGqpArhxvD9Cn/FpbsyYOrmLiZiX9fWBIBvei wD4Q== 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=gOBRECxsXsY6lxgL+yYcrF7OI+VSzF/GHUkcveTa3Y4=; b=BwRM/P4A01/cpCNSa6eLwZwrP2peDPeGR12bjVoNaHYGjAsNSLSwG6InrF04aSEQzP KSRrlGFzj/ldp+BjN5HpBOba+rFcerxiOrLROPSgRycZoUKSjF4aMH4o574fJZvaSm2f LuMQLQIjZFpt/T2XQMoKoVMBOaEhdKhBSVsARJMrc7w3TGPTDIWb4rV7EE6fifvFXuXp E1RWLEucVVOgAlZcfjW/q82u7HVcc5oO5aK7TfqRMRlXcN+Exqe3FmUhCSAuZagYIbT3 BKqAAxRyvjS+VZ1VHYoxcFzjcZ9VnPLnHpXXHnH0lJkhpmU5gb1SrO84l6JtJ5LTDZT8 QAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E0B4Od0+; 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 jh19-20020a170903329300b0019c9dec67d9si5452689plb.432.2023.02.22.23.12.39; Wed, 22 Feb 2023 23:12: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=E0B4Od0+; 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 S233308AbjBWHBj (ORCPT + 99 others); Thu, 23 Feb 2023 02:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbjBWHBX (ORCPT ); Thu, 23 Feb 2023 02:01:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977D24A1D2 for ; Wed, 22 Feb 2023 23:01:20 -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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=gOBRECxsXsY6lxgL+yYcrF7OI+VSzF/GHUkcveTa3Y4=; b=E0B4Od0+YUf0HMfrRW98qlx/Pm bb0bbRFi23gnlkWdNNS2iWUUGZDCUJmZihFuZAgTskDBIJs4+pbqICdR6W7CuIejiUX4LpfBs8ntm hnOQpJXi12b86slXUf3V4N6UpnD09KoKmzvmUYgN782NjTfa9wICrkCje6gA+Mwl+RCrJEPR3tcc0 oJkqTZxrilBCEj5gVaoYksy2v8eBTJsWptkjvwAdrvUAvKZQXQOqQCsm3bLVrrC7qdhYS2l8iS8TC on0CPSFOJRJnB0jbO/oQ7+pnbX1nn1juZLlrhLV1Fw09wtcqBVzSmHn0Ihjxd7pDWcZDWdmMXvxr9 47fFimUw==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV5bU-00FMG2-5G; Thu, 23 Feb 2023 07:01:20 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Roy Zang , Paul Mackerras , Alexandre Bounine , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 4/4] POWERPC: sysdev/tsi108: fix resource printk format warnings Date: Wed, 22 Feb 2023 23:01:16 -0800 Message-Id: <20230223070116.660-5-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223070116.660-1-rdunlap@infradead.org> References: <20230223070116.660-1-rdunlap@infradead.org> 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?1758604949058011481?= X-GMAIL-MSGID: =?utf-8?q?1758604949058011481?= Use "%pa" format specifier for resource_size_t to avoid a compiler printk format warning. ../arch/powerpc/sysdev/tsi108_pci.c: In function 'tsi108_setup_pci': ../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] Fixes: c4342ff92bed ("[POWERPC] Update mpc7448hpc2 board irq support using device tree") Fixes: 2b9d7467a6db ("[POWERPC] Add tsi108 pci and platform device data register function") Signed-off-by: Randy Dunlap Cc: Roy Zang Cc: Paul Mackerras Cc: Alexandre Bounine Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/sysdev/tsi108_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c --- a/arch/powerpc/sysdev/tsi108_pci.c +++ b/arch/powerpc/sysdev/tsi108_pci.c @@ -217,9 +217,9 @@ int __init tsi108_setup_pci(struct devic (hose)->ops = &tsi108_direct_pci_ops; - printk(KERN_INFO "Found tsi108 PCI host bridge at 0x%08x. " + printk(KERN_INFO "Found tsi108 PCI host bridge at 0x%pa. " "Firmware bus number: %d->%d\n", - rsrc.start, hose->first_busno, hose->last_busno); + &rsrc.start, hose->first_busno, hose->last_busno); /* Interpret the "ranges" property */ /* This also maps the I/O region and sets isa_io/mem_base */