Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp287200imw; Thu, 14 Jul 2022 01:33:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tWQaTvgKJMBcgeC3NknPM1qf1peZitR4197wr0U9Qwu1HFbufYDwzJxhYzoKjEXAjCA2Rc X-Received: by 2002:a05:6402:4490:b0:43a:8f5a:d273 with SMTP id er16-20020a056402449000b0043a8f5ad273mr10613738edb.6.1657787628685; Thu, 14 Jul 2022 01:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657787628; cv=none; d=google.com; s=arc-20160816; b=Z+sKG92U52kCgq4CCSO1lYOuID8o4Ul1CFgB1ks+OayPcM3SheRI4HsH/UunQIftP3 ZW2Oa/URdgLHzBICNcqZl71PHcNQ4jy0xG6SHF7ATClofzbq4HS7PZ63fr5jFbAlZISy Z9Omgf4aezE0P8MM1QM7CBYyhi1ull2Q+98r45bwzYVOM2h5ggMVVYYxADCJPb84oXw6 3J9TSiqnlqwt5s+snw8mQmekdf1ZVM42n7B/VHZAg0anl/dm2Jbr5c4rNniYRm4ffAU/ 8NXABtqOTDZWWewPDzGy4yGThLR2TqQyqSJg0JV5XU4va0v867NE4iGHPU4RlxNjIeyi RUiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=L6JE09RbuckhWRecqFSfIyvZxxpmkcjgolJnFtp/s/g=; b=tFjRfE1DPDPJndo82caSeWEBuraivTZJilVtEcQ/8PmkQUsTIR1oz3tvgf7zxApFNE 42F3bpnB44CEIk61a1Ok8Nz5DsNJOlRSnOjZQqdUHdFQd/Adafg4VOlTtsZTT48Pfnu0 aIUN3m+p/CkutGkd+AWvGpj/e44GE3vIGPDClTrTCpaVWLKWu6s94dbEyPRlcY7nM8LT FQVzUrcjL+AhPs7EtNWSLoe92EUNuL0T0vfGK808r3H7gOSKkwZupFprM+Oy0GlQWacI E79Z+iNcaUX6trPj6xjy25UohsAqE+DzfpJFbIoci0nFRPE2JkGh+exMJ3mJnrt3NBDg BarA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170906144d00b0072b147e5cc4si1150983ejc.254.2022.07.14.01.33.22; Thu, 14 Jul 2022 01:33:48 -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; 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 S234293AbiGNIZM (ORCPT + 99 others); Thu, 14 Jul 2022 04:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234314AbiGNIZK (ORCPT ); Thu, 14 Jul 2022 04:25:10 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B873AE40 for ; Thu, 14 Jul 2022 01:25:08 -0700 (PDT) Received: from mail-yw1-f173.google.com ([209.85.128.173]) by mrelayeu.kundenserver.de (mreue012 [213.165.67.97]) with ESMTPSA (Nemesis) id 1Md76B-1nbk7k05pL-00aHEC for ; Thu, 14 Jul 2022 10:25:07 +0200 Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-3137316bb69so9469627b3.10 for ; Thu, 14 Jul 2022 01:25:06 -0700 (PDT) X-Gm-Message-State: AJIora+cBCM2/Um/q4pEP1VTDRafKT3IATWfiihJiP9TCrdS/s62Smwt QUi06BvOTEEXEqAidIGzRLeWrwuv+HsKEXIlcVg= X-Received: by 2002:a81:d93:0:b0:31c:d32d:4d76 with SMTP id 141-20020a810d93000000b0031cd32d4d76mr9102171ywn.135.1657787105766; Thu, 14 Jul 2022 01:25:05 -0700 (PDT) MIME-Version: 1.0 References: <20220714025901.359695-1-xianting.tian@linux.alibaba.com> <20220714025901.359695-3-xianting.tian@linux.alibaba.com> In-Reply-To: <20220714025901.359695-3-xianting.tian@linux.alibaba.com> From: Arnd Bergmann Date: Thu, 14 Jul 2022 10:24:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2 2/2] riscv: Add modules to virtual kernel memory layout dump To: Xianting Tian Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Guo Ren , Anup Patel , Nick Kossifidis , Mike Rapoport , Heiko Stuebner , linux-riscv , Linux Kernel Mailing List , huanyi.xj@alibaba-inc.com Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:Meby81FiNPBNulXbVWAnTvyAvt6U7M6RS2gfN2IYZ8hmtP8fjwW 3u3xSNODWk0PNrkgK4k8ONjJYlCMa/7f+2qxrKOSfytiFUov0S60vOiwfILh41QRwv46BvC 8lxLGmxou09XWKziRIuAWAWPzG8+BlJPAmE3B5duC6HVm+wyiDqknVxA0+mUJ1nRCIk3bp8 obtS0UIKMFJRcU1O5IktQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:94Kw0jlsFTA=:f8xaTEd4KXV3py8SxWBb6w 2vTmwMCGcGlaa9TmHIsS3wsRPdPX4AB9VQMd8kgb8bgMRGZO9cs/cD+2OD9cmerxIysE2Db7S LVPkLXGQAwg15FEHCaXieZnx+6HbOOlsUfb7DJhuwRqIm25J73ZFXLUGMlHZr/hsJWUu7u6Gh l6UApB9oY4tgv4LbCxYhZ8qVkUlFdCJ+NAW43Pd4E4YUa+DPyLsEKfALt8eFTGr/U034VUoPu Ws0S/6XJb3gaXkd05VlM27HRxyJotcOKhAvCunK8TveZuhqBdZsQSf6gx4mUM8R9Q7YUkodGp y6cN6X2eGvj0l+QnMdA9U8ri/9vu4tqATQATRhQsbXL8ZjpmDTfav1f1DaPP/VszYm/8BzptE XVMYEk+s5VWPEG+biyw4EH/yHSwyD9raAogRXgZjwbtS4c51Fny4Q2yVd/0DE3jwwZy7PumGZ HlICjRGhaOmpSMhN82BYi2gB/Kd54QyP1csUridQfqjIrwn/yG72NyowdRsv1QRdZO6TkjChm Sp7I/O+uaV6mIX3Ml5w/FsHHxRRN6a5P5E6f+LLwv12Q0OJKIHaZ5rbana+PYYyCR+Pju2oDH yabiNIcQn242NrDf1JtBidBqsBByqZItocoRFp2mnqUNA/2DhG52NQMMIL9pUtTsluk46xLC6 oqydCAgUjLwpPHPDPd6Z96N0SsSJS64RHBvIqknCHPSbDJGy3nLP58aFa0yGyMipmQ0Zufsj/ fO27+TliBSd1P09TZ0vWP6q2CGivfQd5nM9he120MLfwfvcItPj+AMhlCvOzqP7ZR8/bFDh24 AXTLuOLAiiM90gDiz0SlbJhw9/7TB5j6oxzOzmfBvdou3EmoiygN1os4ZB5s7p/IajeAJQfo3 d+squEe7JvlGUtyuJwLQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 Thu, Jul 14, 2022 at 4:59 AM Xianting Tian wrote: > > As MODULES is only defined for CONFIG_64BIT, so we dump it when > CONFIG_64BIT. Doesn't this cause a compile-time error on 32-bit? > (unsigned long)VMEMMAP_END); > print_ml("vmalloc", (unsigned long)VMALLOC_START, > (unsigned long)VMALLOC_END); > + if (IS_ENABLED(CONFIG_64BIT)) > + print_ml("modules", (unsigned long)MODULES_VADDR, > + (unsigned long)MODULES_END); The IS_ENABLED() check prevents the line from getting executed, but unlike an #ifdef it still relies on it to be parsable. Arnd