From patchwork Tue Jul 23 08:32:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youling Tang X-Patchwork-Id: 13739718 Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (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 5397DDDDC; Tue, 23 Jul 2024 08:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721723573; cv=none; b=TGz8smsPo2CL0HeVsk1cowV+baaUWOXypW4SYaXwT+k+p0S7bjpWo7aqrz229Lv9sxon6SOYVdH6aQZsLAnU4NLYdo/KQbbSTLeCFZ9A5dz6J3wjI94nvQTs2EAN4gIb7/od4+Qw04lCIKMXfwEY/cFwY34rtFd2ujH5k6KnHhs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721723573; c=relaxed/simple; bh=T2ln2v55uns+llIQM4U17fqCNMBXKDJLn87nozV/4b0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=cN/lb1EqmIdDOEXcKZ+14DxQXielwe8HmoEbHWHrgSAy5gcufB1yOV1B3fWesnmMhNoES0zaLFYHgvt450P2yppG2v8J97uI65Tsy2l0AeAQcbzyHJykIu0QtNgt+Jpp+ERh+4slEC/BOfCnCLbC5lSOE0c9SYCyxOUFKggAIF8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=qCSTaiPG; arc=none smtp.client-ip=91.218.175.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qCSTaiPG" X-Envelope-To: arnd@arndb.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1721723569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XEWUV4v7u+8zDSLwsokAOxmgvkvK5NCQfI7UWQX3ezY=; b=qCSTaiPGYAibGkdZEU+4+DySxYSc6vM6QXszKhbvEh5FkXBkc2A2b86cHsugVAALnS3utO wptLiOYtmzG2BDocz7A073mRfyWenfw9V2KK6c3rtcliew6QgINJ1CsRcnUpGOkJv6a+iM 4fYxMowegjFFk2jQzoZcr8wdA2geKP8= X-Envelope-To: mcgrof@kernel.org X-Envelope-To: clm@fb.com X-Envelope-To: josef@toxicpanda.com X-Envelope-To: dsterba@suse.com X-Envelope-To: tytso@mit.edu X-Envelope-To: adilger.kernel@dilger.ca X-Envelope-To: jaegeuk@kernel.org X-Envelope-To: chao@kernel.org X-Envelope-To: hch@infradead.org X-Envelope-To: linux-arch@vger.kernel.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: linux-modules@vger.kernel.org X-Envelope-To: linux-btrfs@vger.kernel.org X-Envelope-To: linux-ext4@vger.kernel.org X-Envelope-To: linux-f2fs-devel@lists.sourceforge.net X-Envelope-To: youling.tang@linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Youling Tang To: Arnd Bergmann , Luis Chamberlain , Chris Mason , Josef Bacik , David Sterba , tytso@mit.edu, Andreas Dilger , Jaegeuk Kim , Chao Yu , Christoph Hellwig Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, youling.tang@linux.dev Subject: [PATCH 0/4] Add module_subinit{_noexit} and module_subeixt helper macros Date: Tue, 23 Jul 2024 16:32:35 +0800 Message-Id: <20240723083239.41533-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT This series provides the module_subinit{_noexit} and module_subeixt helper macros and applies to btrfs, ext4 and f2fs. See link [1] for the previous discussion process. [1]: https://lore.kernel.org/all/20240711074859.366088-1-youling.tang@linux.dev/ Youling Tang (4): module: Add module_subinit{_noexit} and module_subeixt helper macros btrfs: Use module_subinit{_noexit} and module_subeixt helper macros ext4: Use module_{subinit, subexit} helper macros f2fs: Use module_{subinit, subeixt} helper macros fs/btrfs/super.c | 123 +++++--------------------- fs/ext4/super.c | 115 +++++++----------------- fs/f2fs/debug.c | 3 +- fs/f2fs/f2fs.h | 4 +- fs/f2fs/super.c | 139 +++++++----------------------- include/asm-generic/vmlinux.lds.h | 5 ++ include/linux/init.h | 62 ++++++++++++- include/linux/module.h | 22 +++++ 8 files changed, 180 insertions(+), 293 deletions(-)