Received: by 10.213.65.68 with SMTP id h4csp1015312imn; Fri, 6 Apr 2018 12:57:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx497NMoaU1TxKTS/5IHOKNaLx29f+mQY5wI/nLO4ikZEYbBSH1LH6LyoR4INPXPzku+/3go2 X-Received: by 10.99.182.73 with SMTP id v9mr18429843pgt.158.1523044637340; Fri, 06 Apr 2018 12:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523044637; cv=none; d=google.com; s=arc-20160816; b=S4H7/m7fGpYPVyHpUNRsZY0fdjoTF6TPBDZJVhxLhTVo7DTWJkZAU9ubDZje8Rt1wK pRIbNL1l/MuVdQJAH97BmG0FGqwDWMAxtO4iSJEcTpN6tcyjvhZzdn6zUGHq3lJP/2wO hRTciZq7wtdobuG5ia9HIJTIznY0U656j7FQmFVc4Bcvje/xTxTD8FSWdgaIgSmcLlhQ NmGnOQMm48oxIg8lGlnuVf1rDEdtxSurFpgO6ixphUepn88gP5xK20Nclcy2t5LkjHUu VlkNh+DgtTRY+PWsOKy/NLg5+p43xKmpmTjwCeut2v28t2zRtgxSAEGI1Vs5G4NqSBxO 3Mlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=/3bCYl25bMMVvhlvy6qYNyPGdHHKHcFObQUMmV4Yroo=; b=UGv4jOxexTXcv3viK5nMRv9qxL8T8T8osAHM4RpoRaHfdtf/kSmu3WdauW3F/r+t1W 1Dmu4rw29JK4tuwnSpWHeJrYxPeCAK/fle9+RGKC7McRrVNzWKoJm0ha3xqwpekLecdG vURsrYTDhwAYPueesjZvZdxHB7ijSvRJ2e+NBq+cOnbclZubIRy+y2fqzvn8/aDjZG/z XLmmPPB0Bryw5p1zzpAZ8C++2/+t4M+CSk7xfq/2oHCvBUJ3dgehqoWETJKRMJkzTE7I zvLv3IeHRPkz3pefTb/pAXEC6BfZuKHPXxZIHNOGyf9Fs+3LjvDOIuq/yQDShdOzpkDg ZW9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lFlo6m/i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6-v6si11588562pln.257.2018.04.06.12.56.40; Fri, 06 Apr 2018 12:57:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lFlo6m/i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751678AbeDFTwz (ORCPT + 99 others); Fri, 6 Apr 2018 15:52:55 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:39487 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbeDFTwx (ORCPT ); Fri, 6 Apr 2018 15:52:53 -0400 Received: by mail-wr0-f193.google.com with SMTP id c24so2762356wrc.6; Fri, 06 Apr 2018 12:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=/3bCYl25bMMVvhlvy6qYNyPGdHHKHcFObQUMmV4Yroo=; b=lFlo6m/iPoBUbAuVYLsntR22VOfwuOvmm7M/QFz7jhZBtnysKMc6LEuaHlbP4DzHSw eeoAWzw0iCMXKEess+qO36h3tb63QpLy5JIJutnfVcqYOPibR8qNZWuHK06TwZm53eKV RT/qHd1vFw4t25VRfrNw/EcEI+nhCX0Fn75xaT0Wzi7VYCQ58hUh3EoMyIHEUEgDPmax 6xwQPwjzCQr1mEByu5xy4WGFh8El1rZQET/uYxfpp7XwazwmbpgdhiF4ajMvvpYUZLQW ESiYSZcbexmkVp8GtGQn6u9BuISL6Vo6psp7GV8mFNWpsDdBBC5dR7uMH+XQ0EzDnSkn rYkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=/3bCYl25bMMVvhlvy6qYNyPGdHHKHcFObQUMmV4Yroo=; b=ma0//Km1Zqgmm7TIdUpA2dk8YqraF5oi0yWiAca5T4RP7gu2Ykh87wz36+7ERy/fi+ IenoA+zCyDo6xe5Ac253Rwr6La/DSsu9j0CA+KLQ4dJU3X/7bGSTdHmzSyU6zzPcC4h9 zyp5cGHPo9IJooLA7fQ6xDRqjunIgv7fR53cYFr9kCCr4ZDBl1vO0RjrtOkDrRlN2zFr r2JAddAnTzAy9SGxEM7Js1xE+MV6H5uwYWbslkD3lqWXtjtAW7QEeD2CISvZHgijdypv dKiUCf++0lt1gPUycy19xdEPNNjL54QpAdTJy62sU/DHxDdTfQms5VrC0qcpyYjxzb33 XPmQ== X-Gm-Message-State: AElRT7GG4iJviUDm7jd2am9j9svrrcfdzgpbb4N4G0jUTZlGTMNQtOk/ yAD9Mtp5GySuKBGFlhng4D8= X-Received: by 10.223.159.9 with SMTP id l9mr18642825wrf.185.1523044371440; Fri, 06 Apr 2018 12:52:51 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id e8sm23089459wmf.15.2018.04.06.12.52.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Apr 2018 12:52:50 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 4679A10C0679; Fri, 6 Apr 2018 21:52:49 +0200 (CEST) From: Mathieu Malaterre To: tytso@mit.edu Cc: Milan Kupcevic , Ben Hutchings , Mathieu Malaterre , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers Date: Fri, 6 Apr 2018 21:52:31 +0200 Message-Id: <20180406195231.14868-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This helps initramfs builders and other tools to find the full dependencies of a module. Debian on powerpc (ppc32) still uses yaboot as default boot loader. Using a default installation (debian-installer) 64bit and metadata_csum feature are not setup in ext4. This is discussed in more details at: https://bugs.debian.org/825110#81 and implemented here: https://anonscm.debian.org/cgit/d-i/partman-ext3.git/patch/?id=f87dc92157262de1ad8dd3f2343436f08271b4dc This means that building the kernel as default debian package: make ARCH=powerpc XYZ_defconfig make -j8 ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- bindeb-pkg Will lead to the following boot failure (initramfs prompt): /dev/sda3: clean, 127679/305216 files, 11128559/1220703 blocks done. [ 5.592819] EXT4-fs (sda3): Cannot load crc32c driver. mount: mounting /dev/sda3 on /root failed: No such file or directory Link: https://bugs.debian.org/819725 Link: https://salsa.debian.org/kernel-team/linux/blob/master/debian/patches/bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch Suggested-by: Ben Hutchings Cc: Milan Kupcevic Signed-off-by: Mathieu Malaterre --- fs/ext4/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 185f7e61f4cf..10bda040e78f 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5886,5 +5886,6 @@ static void __exit ext4_exit_fs(void) MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others"); MODULE_DESCRIPTION("Fourth Extended Filesystem"); MODULE_LICENSE("GPL"); +MODULE_SOFTDEP("pre: crypto-crc32c"); module_init(ext4_init_fs) module_exit(ext4_exit_fs) -- 2.11.0