Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp270045rwb; Fri, 4 Aug 2023 12:24:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVf8GQ6QYfWQk7P8XmGR7rc2vwQPcaadAFc+1NvqeGXSog33PU79PiD16SNfunA+Q3qVFw X-Received: by 2002:a05:6a20:258c:b0:13f:9232:fd39 with SMTP id k12-20020a056a20258c00b0013f9232fd39mr3440934pzd.53.1691177056703; Fri, 04 Aug 2023 12:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691177056; cv=none; d=google.com; s=arc-20160816; b=L/grrDjsdbXC1gbKlRev08MJvswo6+dMxmdfVv9IejnspJv5DzqL7i5nZBGXoRt5Pl GdWu5/E2XtPEGy5ztKYRQaMs2uvWjv/SXK7nFflboahByOv/hjLzN3+tjhiIpWeHtNx5 Q+A5mkLuUicEyuldcd4udZSXpssa54zuyfQ/Wg2CYEFbgVXI7d0Hf6jsmH9QYVHKugIg QnAxfFRYoDCBv1oAtTkPOyVX7G1j/bPdZXXSSIjnHhoqH8lq6uqiM2NyY58v3FNlUbMB zQfDGz4jDGxpbonPiz2dIKXrpqQVYhBFcadIXApLC2LUmDGxNZhfUe3W5Mye2+HdZ7JC OFog== 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=crKKG1C3QmRap3OzuN+sLUd7SP7e6vs8VVohPy92jHU=; fh=/hTupdUKt4+nIgE+dahEEm2L/x4QY98giY01TGCNbXg=; b=ECFPctK+ajsOL3RzmF2bQXwg7JLTzF4xhrU04dbyktXGPEuoIydlr9YkiPaVwi4m9a S92SNlwtapF3snZ/GCOLK3cgNs8odvjPPI7XOgxHsKpKnt6o1HlH8i6t2mrM8vUOQL16 5329LtrZaVG8ejqsaZs1hHXurJPIxGISVgG9jrpP18Uj9GjjgVG3BZj3+Zb1DceT+Gfn SYenvs0mT9Liboauti72+/tz5qe9Ysh67509fMkxyFgEY21Lb0Zx3vrKNCu/wVf5ZLqW N0jtsg6BdLU7WzcXKwtJvZb/EoanKaTT+w7mh4vDdF2abN+JjEC+e8Db7u5SfFwWAi9a 52Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hEKhRv+L; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a63e011000000b005533750837csi2011727pgh.681.2023.08.04.12.24.03; Fri, 04 Aug 2023 12:24:16 -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=@kernel.org header.s=k20201202 header.b=hEKhRv+L; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230311AbjHDSLC (ORCPT + 99 others); Fri, 4 Aug 2023 14:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjHDSK7 (ORCPT ); Fri, 4 Aug 2023 14:10:59 -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 CB6894C18 for ; Fri, 4 Aug 2023 11:10:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BDE2D620ED for ; Fri, 4 Aug 2023 18:10:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DF4AC433C7; Fri, 4 Aug 2023 18:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691172626; bh=7bRcPqBw1AJb6bBB+EAT619vN7OlXAeurQV5Wi2lxnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hEKhRv+LufzZUV9H/g7aFDOMF5dmneT1c5025LnuiW0JszqsGUtDEG59bizYL/ugq m4kElPK/LERNS8e6puLCSRA0u/3mP2KMszLsxDzxz79TYd2S/M/s3r2rk4ogSompQQ M76ROqVWhtRjaCeuZ+5t5NkQGE3FunJtLjbFD+56C56ipyafaTAaQjxz5297/XPRph NfG1C5imHqNW9UVU288dJAa3ep6rc6jcboSm3Lefk1RjR4XG+AueKysayiWG7NTBLr dfbjXdVXhC6NvxoVJogXx/WzwywxJ72ZWg4O60hPOFcsK5SWutzJPc+xJlwsZJ4BM2 GGTHUgdy5WVQA== From: Will Deacon To: ryan.roberts@arm.com, joey.gouly@arm.com, catalin.marinas@arm.com, bhe@redhat.com, kristina.martsenko@arm.com, ardb@kernel.org, thunder.leizhen@huawei.com, mark.rutland@arm.com, Zhang Jianhua , yajun.deng@linux.dev, anshuman.khandual@arm.com Cc: kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH -next v4] arm64: fix build warning for ARM64_MEMSTART_SHIFT Date: Fri, 4 Aug 2023 19:10:13 +0100 Message-Id: <169116598480.145836.10755378062074393749.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230804075615.3334756-1-chris.zjh@huawei.com> References: <20230804075615.3334756-1-chris.zjh@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Fri, 4 Aug 2023 15:56:15 +0800, Zhang Jianhua wrote: > When building with W=1, the following warning occurs. > > arch/arm64/include/asm/kernel-pgtable.h:129:41: error: "PUD_SHIFT" is not defined, evaluates to 0 [-Werror=undef] > 129 | #define ARM64_MEMSTART_SHIFT PUD_SHIFT > | ^~~~~~~~~ > arch/arm64/include/asm/kernel-pgtable.h:142:5: note: in expansion of macro ‘ARM64_MEMSTART_SHIFT’ > 142 | #if ARM64_MEMSTART_SHIFT < SECTION_SIZE_BITS > | ^~~~~~~~~~~~~~~~~~~~ > > [...] Applied to arm64 (for-next/mm), thanks! [1/1] arm64: fix build warning for ARM64_MEMSTART_SHIFT https://git.kernel.org/arm64/c/4e0bacd65e72 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev