From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AB2933F390 for ; Sun, 8 Feb 2026 20:10:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770581452; cv=none; b=i6uNSTXvCt9LHvLIqnUw79voUGwla49ltqxNXBMRxFltl0P9tRo+yP62ldeiAXY5xRyEyCx+UD48QlqNQ2OsS+xbsDiGEYdxN4cKBJGUofffm7P+44I6+EmZ8ON09ogtc9gwGHEjZlBwFGjsGHSYsbxEi1YZCO4zkIZHeyKW92s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770581452; c=relaxed/simple; bh=DFG7MTacCxxa3rwiJNM3woJ5ozn3NWsjEekdd4Rw5s0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j8ENcQPNalq4S0WHotPNUhdMcAWv81snfGDgKP6pjeulBJYXyN18dVuPNq1En+VBQF5WdN7nU8Wgnzcw8kBX967uOeIDpsZYTZIXNrqtHrNvoE+SELi0NK8YeQwLLlKkwkH7chBOBBgXVt/7T/9KTEROtsqmAbDwT8om64MXrlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JvgnHRju; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JvgnHRju" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A8E6C4CEF7; Sun, 8 Feb 2026 20:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770581451; bh=DFG7MTacCxxa3rwiJNM3woJ5ozn3NWsjEekdd4Rw5s0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JvgnHRjuSjpDFg+Dm/lrxtD9HyHYHfIcIMIHGAKZnf2R7XPJx1+XJNzPfA2O3odbh YWUmzgYG6qcGd5vTsv/EcTM0EnSDf/bN43365x+sVotl2CkT//x18ZATuQwG98H5Kh +YqJmXsiDMNSuqMQDs3SAStISC93UOVHmHonCFDYPVYnyY1TgxHA7KLvTt9TEsgI0J 26wVEE/BlmRYt5vqGYIe1VVHErSdChLWj1Nu+s4/TVAYEJMncVTr2aNtEbJ+6yKPxO wSVDOhM30Jsab9AwKulRKChXl79awII/30pW4XEujUmuAFwgO7mAULVAuIQtdpYZXO 6CoeeAqez0Emg== From: SeongJae Park To: Alejandro Colomar Cc: SeongJae Park , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Kees Cook , Christopher Bazley , Rasmus Villemoes , Marco Elver , Michal Hocko , Linus Torvalds , Al Viro , Alexander Potapenko , Dmitry Vyukov , Jann Horn , Andrew Morton , "Maciej W. Rozycki" Subject: Re: [PATCH v6 4/4] mm: Use ARRAY_END() instead of open-coding it Date: Sun, 8 Feb 2026 12:10:46 -0800 Message-ID: <20260208201047.104667-1-sj@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <2335917d123891fec074ab1b3acfb517cf14b5a7.1765449750.git.alx@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Thu, 11 Dec 2025 11:44:04 +0100 Alejandro Colomar wrote: > There aren't any bugs in this code; it's purely cosmetic. > > By using ARRAY_END(), we prevent future issues, in case the code is > modified; it has less moving parts. Also, it should be more readable > (and perhaps more importantly, greppable), as there are several ways of > writing an expression that gets the end of an array, which are unified > by this API name. > > Cc: Kees Cook > Cc: Linus Torvalds > Signed-off-by: Alejandro Colomar Reviewed-by: SeongJae Park Thanks, SJ [...]