From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5AF5BC433FE for ; Fri, 18 Nov 2022 19:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ImmxXjdIc2Z+nyCjqnGV8nWVMwqBDc4w1ZInji9yGh4=; b=FW1mrhZFcWUE3B tLHU6Wef9pDSgACwCMO1fJwFw/QLjVP92geqFl/FRAHni0qepeINDa0bfZU1H5PkxF7um3motIFCP yVsyDhqwsrVSGK0+GOXaT0MRmbkZ//rl/tv5ymCXl8eOKzEoeU2fYwS5W9QGnuhfwFqwRIfpvcMyR vC+3X0nLep2sytsMbA2XYvaBwGXn6M1XaaDBStb1qB+NR1sq8U/fN7j7tIaSWNF8fUNF7l0xA/j4O qJdajUmDdHXuq1/lKaniRyBpl2d2R707E3ecP/+5oxltJkTYxohaSkT6kn/s+T/8l76+PBfQUsO4Y yb1j7AlceRhVX+FIykJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ow7Ed-007dv0-1w; Fri, 18 Nov 2022 19:41:11 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ow7EQ-007dn2-6X for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2022 19:40:59 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id D921BB82507; Fri, 18 Nov 2022 19:40:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0821EC433B5; Fri, 18 Nov 2022 19:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668800455; bh=ao7w8PGY6CvyH02T0fXtKub8Tk+v9jD93VP1ZNrkqgs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NylGndkcK8YJtHRgU20W6RmSYGDXrl/E8KySgSyxkW/RF07lwN1DYTJQcZe/z/3uU Rbj5iYOpPBdFFDt642TOmR5i7BT7BUmc/r1LvfY1DqLDpeLQxjboP/L1+sYAOCzLvN pOXSsrOioltTxM1scu6Gpe/ZuMg32cK2O465EHZHTGAGdXtTE7MUt5oKxdaqx6mVn7 xoiBXoq1XQVr2NiWwVA7F5IPLtEiC4f51n/EQ/N8yZ7pmMedk0GJQ7+Qeai52foay1 PmeAlwL7rxjIeF1CU7VUuSY+70UPZl2qcLsgpSb9oHcZ0j7HHg3YdZffY62hwMsC/a l31FOkfKCIzhA== From: Will Deacon To: Anshuman Khandual , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Mark Rutland , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64/mm: Drop redundant BUG_ON(!pgtable_alloc) Date: Fri, 18 Nov 2022 19:40:38 +0000 Message-Id: <166878064180.1782449.376709845468504621.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221118053102.500216-1-anshuman.khandual@arm.com> References: <20221118053102.500216-1-anshuman.khandual@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221118_114058_396902_0DB3CFB5 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 18 Nov 2022 11:01:02 +0530, Anshuman Khandual wrote: > __create_pgd_mapping_locked() expects a page allocator used while mapping a > virtual range. This page allocator function propagates down the call chain, > while building intermediate levels in the page table. Passed page allocator > is a necessary ingredient required to build the page table but its presence > can be asserted just once in the very beginning rather than in all the down > stream functions. This consolidates BUG_ON(!pgtable_alloc) checks just in a > single place i.e __create_pgd_mapping_locked(). > > [...] Applied to arm64 (for-next/trivial), thanks! [1/1] arm64/mm: Drop redundant BUG_ON(!pgtable_alloc) https://git.kernel.org/arm64/c/9ed2b4616d4e Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel