From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1478683053.4155.8.camel@suse.com> Subject: Re: [PATCH v1 2/2] depmod: ignore related modules in depmod_report_cycles From: Mian Yousaf Kaukab To: Yauheni Kaliuta , linux-modules Cc: bjorn.andersson@linaro.org, afaerber@suse.de, lucas.de.marchi@gmail.com Date: Wed, 09 Nov 2016 10:17:33 +0100 In-Reply-To: References: <1478623550-18716-1-git-send-email-yousaf.kaukab@suse.com> <1478623550-18716-2-git-send-email-yousaf.kaukab@suse.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-ID: On Wed, 2016-11-09 at 04:59 +0200, Yauheni Kaliuta wrote: > Hi! > > It may require more serious refactoring, since there is a problem > with the > approach of path recording. I can get wrong output, for example, for > the > following graph: > > /* >   mod6 -> mod7 -> mod8 -> mod9 >    ^               |       | >     ---------------        | >    |                       | >     ----------------------- > */ > > depmod: ERROR: Cycle detected: mod7 -> mod8 -> mod9 -> mod6 -> mod7 > depmod: ERROR: Cycle detected: mod6 -> mod6 > depmod: ERROR: Found 5 modules in dependency cycles! > > > The problem is that the path is recorded "globally", not per vertex, > and > "wrong" mod6 is compared in "loop == m". I agree and in the other thread Bjorn is mentioning kind of the same. BR, Yousaf