Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp169669lqg; Fri, 26 Apr 2024 11:49:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBhiBUVZteuTyJ7Sh8SrgbaQ5aT8IojrmroSaM6iDeNRTLSg6LIp1RgKB5dWl/2LlbmZru99Z2fKskqKJTcUZuV3H54VDBEd3wuCY54A== X-Google-Smtp-Source: AGHT+IEr1eG3bQi/Jwll1m+15iIHu0x41bD0MaPjMNhAsDyLP5vqdTyq88mBGVU9ZacY+yRHc3KR X-Received: by 2002:a17:90b:4a88:b0:2a5:be1a:6831 with SMTP id lp8-20020a17090b4a8800b002a5be1a6831mr716914pjb.19.1714157353717; Fri, 26 Apr 2024 11:49:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714157353; cv=pass; d=google.com; s=arc-20160816; b=fnZ8JNlGW/q6YEbO8vDjc+BN30tPHDqaVF7kFopYPF1HWeWviIGkJuWX/wCX3mYv9U StlNK0aosl7EGDDxi36TVQw81jmsZXVlK6sPYsUAVIif1AOlsZgeQaEJUyXyWf2SFKWc nnT3u4y+M7Om1ImT/KI2sdLIHOIl33M2mSgme5RnWHix0+GWHPcpGDkrE8WRAzu3eiOT If6AWOdQqBHLfd7mWxChPTbW5jL56SJtlMpbO4BkC2TZR8XqrymcG9lfe/eJhShABNIZ jDDmwAXFZgfDrL3R2hl0MSyJq365B1brKiaruI42rcWO6hperPGMNF1tGrrfrthnSvT2 Yd9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Hyt9cSwCpY4B/TYQfJ50zYLktchyWIPJ9BFUEyet93w=; fh=ZnIpCYp+a6dGyhgpure6DYRb5sXV5Y2n4z0i35c2P6I=; b=zlqmMrGO5odfCfTKjCyTqmfbgWk3tDNGll4hFo+LIBCV4UQOxAZuyCfjLMuibHetmV 5jP7qKZsVve6KipOZx2JzdhXsW0ylAg38oQJSCduva9cnWHh0o7Qg3fMS8DW3PO88Lg0 5I4mLweqzNNZPjZZ92Rgix2V4C+gvaXzhvt7qcx6h+wBvSl1Mp6SVyINTqi1NG8wokfh j8vslSRou6uX8Qrit98Lo34m2XGk+iW5XiEUypPy/kUxiDUl5s5TtDh9ySE7V+XQVL+m IGuz1a8LxVDJjNQao11wsZpbxE8XZ/JD8U035sZ7gDnJjQ2dSXEqAI5baDOo0l/2d73U E2EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UCdWi+S2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q9-20020a656a89000000b005feabc95aa9si10078674pgu.403.2024.04.26.11.49.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 11:49:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UCdWi+S2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id ADCC2B223A3 for ; Fri, 26 Apr 2024 18:48:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7FD2BE4A; Fri, 26 Apr 2024 18:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UCdWi+S2" 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 CFAEF63AE; Fri, 26 Apr 2024 18:48:39 +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=1714157320; cv=none; b=tI0LubcI0g/Ae1K+9ugRS3nnb4qSmoqgSJgiqrpsYhDPtxhNfJlWCQn1Kfn56AD4ZYmGvoPKZ9kFd42bRZsszuOGCwrD5qL84ftO6H5ex0WMOogeuQTzrA5wIXWblVHz1+O/B+j8m2bUH9Hvb4y3fiQP8bkbxwRK+/gG3h9XFJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714157320; c=relaxed/simple; bh=Hyt9cSwCpY4B/TYQfJ50zYLktchyWIPJ9BFUEyet93w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nJcebsZxWVr8K7ta/VbuGHtPUXpRxGvenjB2r9w3EKHIH1GDq1r49YxDv23ty+B185fpvlm5HDJTEIXrGu52n2PRcMfrbpuJPdkWcQo2gqdgO8kR0kDOpJ3g6tw2XBy4JwCtMQu+b+6/SFrCM45ZNRif2ZpiIDDnXcvLzi1+254= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UCdWi+S2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D6D6C4AF10; Fri, 26 Apr 2024 18:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714157319; bh=Hyt9cSwCpY4B/TYQfJ50zYLktchyWIPJ9BFUEyet93w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UCdWi+S2pz+UNVq1UKkb2l5BfKfb5BypBiEVk51zsbIHtMvVVJ6/yA6V7Bl+PvruT MUIaV5kDBsPksqcke7WXM/mD1R8LEaQgeOpZGf+GmPvEj9GU0ZnleoQHnc1z6GsIlC DrULKUJwT2OWGr082giBlHvwsDI5RBS/+rBFyWr58WyGAXPy+8lOymRKtaK/5a+E08 jbCK/GZQRQbODrzMbFro9BCoYgolHM35YKMj4uR+mH5yUUMDG2NcPMcDOQfM3PPheh /dyTAguZ624xQvQMOhxbqqo7Rvtsw2WPg1Dr0mWCymf54PDXWxPWKDqFwOHtADYzE9 oh6AguA0ZVPyw== Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-51ac5923ef6so2255731e87.0; Fri, 26 Apr 2024 11:48:38 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXImITJOXRKljlXrPdcHPI48Jk9jvUyjxvIM6YCbSZ5oclDngazwhJuZYj9wH15g8G557lgBSv3YnZr2oWG3gr/KOftfdw0sh9B0ue8XaAxrR52btSX4wQZ8ktOEgDXv9DrNNIR8eK0E8dwoY77x/XwL7G+1rqVqCFR8LRhjsH1AwG0ZJ1tn9c2x7Rv91M3qyCgF+yTowEVL9HLfHhb9gIg2/T50AQ4KOy9UwRhn+rfc4QQe+anv8s50kgBiuH26iqvyA03BPoRj284c/zV4w7PT8R64ay0ssfAyVR1zN8uxy+QjRI/6zU7fooC2fXuFT75lzhApzClrsgy+n0crEjnTBKGC6Us6BIWU3iMLJYPSxTf/HleDaDCY30P8zNW9edLhnQBMkq7WM6jRNs= X-Gm-Message-State: AOJu0Yxi2F8SPIJ9xQmKwDoJAtM0z+5BDJF4X7bb83BgRz2mbJh3FpPy n+Bb4Vmcf0O/L3EFi1phxLKLBNXAPvM1YaAXMvEhTIemqjGR2oJvkeRJ7erG+Cj/4pOvW3Rqma1 bjGEBnCqt0BiSyotrUolQAzSgy2A= X-Received: by 2002:a05:6512:5cb:b0:51a:cc71:b91d with SMTP id o11-20020a05651205cb00b0051acc71b91dmr149470lfo.19.1714157316791; Fri, 26 Apr 2024 11:48:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240426082854.7355-1-rppt@kernel.org> <20240426082854.7355-6-rppt@kernel.org> In-Reply-To: <20240426082854.7355-6-rppt@kernel.org> From: Song Liu Date: Fri, 26 Apr 2024 11:48:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 05/16] module: make module_memory_{alloc,free} more self-contained To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, Alexandre Ghiti , Andrew Morton , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Donald Dutile , Eric Chanudet , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , Rick Edgecombe , Russell King , Sam Ravnborg , Steven Rostedt , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2024 at 1:30=E2=80=AFAM Mike Rapoport wro= te: > > From: "Mike Rapoport (IBM)" > > Move the logic related to the memory allocation and freeing into > module_memory_alloc() and module_memory_free(). > > Signed-off-by: Mike Rapoport (IBM) Acked-by: Song Liu