Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp707745pxb; Tue, 5 Apr 2022 19:41:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZoWQCypYK0gEJzdzjfU2++eYJS2ttnooQh9o9rhgwKEH4qA3zzL/qzhHvMAY4dL1wczgg X-Received: by 2002:a17:907:eab:b0:6dd:e8fe:3dc with SMTP id ho43-20020a1709070eab00b006dde8fe03dcmr6035229ejc.165.1649212860710; Tue, 05 Apr 2022 19:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212860; cv=none; d=google.com; s=arc-20160816; b=0sbjW5EGVeQeTDzthA/Bg5hhYxf03xCGr42tU9I+uhEvLBZeycLgx7VHbTzJY6HBYs B1AC3nihVBkue9gEr2lTcg5+3QdSZnNRQYUqxkg3wVwDjbAW4AQMF9uy6CwjXfrq4c0e ESZFe9tpeDlNIjxscGejZ83qfB2KzZKroKycjM24sZLBL0fGuJEBate0B3+z3TvrtNaP 0UlbhjKduRyDNsdfQcOo1OGiHoIAQ1Mg7FsccendxPP+QZNq9veu+vO0BPwleDP+eFAo 5Tksaqiyoli/QlrYY+A+OqjZhb71kypiZM/dcKybNg1HD2O+jrnw9yWF6P9fWDJzmb+R EHvQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8sidFpt5U/MwbFSG+ev6y1kjwwCmGclRZoyAMgyluhw=; b=WMlO5yC5GvsUB4gncvpT+SOc0SxFcZEyeR2CxptfiP44UVMWkI6HkA88loa8GY5rUE 0znaCniNnGR94Hxa2qEUtcsYDR8CmXFKWczPrLTH14220c+ya8+B7gbRLdbGcrJSNZjN W7CnKDnE0foOJ/MHvfZ1aopblTg1pUdeuuA0QrklWnDiOux9wbRPvogw3fHDUeKsfWiz /EHXnU43wZta9dpSMer/bt5PRDoOGt2ZWVaCDpkTGWR+EK2zyeM8z3Hy1ZVG/RmPo364 axTAjwSgmIulLIfTzvw1YF8S3Atet/PKQHQ/IR7osueRRveVpom8XADkIlTvc5pDuN6h 9tqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hOACTtOC; 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 lz17-20020a170906fb1100b006e005895e01si9862132ejb.986.2022.04.05.19.40.33; Tue, 05 Apr 2022 19:41:00 -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=hOACTtOC; 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 S1354935AbiDEOCX (ORCPT + 99 others); Tue, 5 Apr 2022 10:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233741AbiDEJae (ORCPT ); Tue, 5 Apr 2022 05:30:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E71E388F; Tue, 5 Apr 2022 02:17:18 -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 45B2B615E5; Tue, 5 Apr 2022 09:17:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50E94C385A2; Tue, 5 Apr 2022 09:17:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150237; bh=+meF9PkKtpTanUbYRtKk8E3df2KpV2NIkMy3Tats4EA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hOACTtOCuXWmV+9lgCkEjgULsO57D8N8qx6GeSi7pYsGnpxNmapBQnm4qcOz06BjV s+K9mcr7/UBMML0zYxT1sw9900tu0NXvipiWeV2kfYMfCE5ncVTTFwECTEX26YwE2m 5QrNyGrBy1QKpmHf3LAn7YqttwkHqz9qXJyEeTJU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Will Deacon Subject: [PATCH 5.16 0965/1017] arm64: mm: Drop const from conditional arm64_dma_phys_limit definition Date: Tue, 5 Apr 2022 09:31:18 +0200 Message-Id: <20220405070422.850997943@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Will Deacon commit 770093459b9b333380aa71f2c31c60b14895c1df upstream. Commit 031495635b46 ("arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones") introduced different definitions for 'arm64_dma_phys_limit' depending on CONFIG_ZONE_DMA{,32} based on a late suggestion from Pasha. Sadly, this results in a build error when passing W=1: | arch/arm64/mm/init.c:90:19: error: conflicting type qualifiers for 'arm64_dma_phys_limit' Drop the 'const' for now and use '__ro_after_init' consistently. Link: https://lore.kernel.org/r/202203090241.aj7paWeX-lkp@intel.com Link: https://lore.kernel.org/r/CA+CK2bDbbx=8R=UthkMesWOST8eJMtOGJdfMRTFSwVmo0Vn0EA@mail.gmail.com Fixes: 031495635b46 ("arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones") Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -87,7 +87,7 @@ EXPORT_SYMBOL(memstart_addr); #if IS_ENABLED(CONFIG_ZONE_DMA) || IS_ENABLED(CONFIG_ZONE_DMA32) phys_addr_t __ro_after_init arm64_dma_phys_limit; #else -const phys_addr_t arm64_dma_phys_limit = PHYS_MASK + 1; +phys_addr_t __ro_after_init arm64_dma_phys_limit = PHYS_MASK + 1; #endif #ifdef CONFIG_KEXEC_CORE