From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Rusty Russell To: Lucas De Marchi , "Matwey V. Kornilov" Cc: Gustavo Sverzut Barbieri , linux-modules Subject: Re: [PATCH] Fix recursion loop in mod_count_all_dependencies() In-Reply-To: <20140502141357.GA24741@politreco> References: <53484327.5Nr2aWdyWz5+36kD%matwey.kornilov@gmail.com> <20140502141357.GA24741@politreco> Date: Mon, 05 May 2014 11:15:00 +0930 Message-ID: <87a9axc82r.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain List-ID: Lucas De Marchi writes: > [ CC'ing Rusty ] > > Rusty, when facing module loops, shouldn't we let depmod fail? kmod and > module-init-tools since always just warned about them, but it's really a > bug in the module if they exist. See below. Yes. Soft dependencies can loop, but hard dependencies should barf. Note that in the case where two modules could satisfy a dependencies, it may not be a real loop? Cheers, Rusty.