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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C132C00A5A for ; Thu, 19 Jan 2023 05:35:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbjASFfz (ORCPT ); Thu, 19 Jan 2023 00:35:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjASFfu (ORCPT ); Thu, 19 Jan 2023 00:35:50 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBB38E9; Wed, 18 Jan 2023 21:35:49 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 208ED67373; Thu, 19 Jan 2023 06:35:46 +0100 (CET) Date: Thu, 19 Jan 2023 06:35:45 +0100 From: Christoph Hellwig To: Song Liu Cc: Christoph Hellwig , Thomas Gleixner , Luis Chamberlain , Christophe Leroy , songliubraving@fb.com, Peter Zijlstra , linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH/RFC] module: replace module_layout with module_memory Message-ID: <20230119053545.GA16775@lst.de> References: <20230106220959.3398792-1-song@kernel.org> <20230118074047.GA27385@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 18, 2023 at 01:52:51PM -0800, Song Liu wrote: > In this way we can use the array in the for loops, and use mod->core_text, > etc. when we only need to access one of them. Just use the array please instead of making it too ugly. If that is the only sensible way to iterate we have a good argument for the array and can live with it.