[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] domain: try to address Coverity pointing out a missing "break" in domain_teardown()
On 01.09.2021 10:49, Bertrand Marquis wrote: >> On 1 Sep 2021, at 09:45, Jan Beulich <jbeulich@xxxxxxxx> wrote: >> Commit 806448806264 ("xen/domain: Fix label position in >> domain_teardown()" has caused Coverity to report a _new_ supposedly >> un-annotated fall-through in a switch(). I find this (once again) >> puzzling; I'm having an increasingly hard time figuring what patterns >> the tool is actually after. I would have expected that the tool would >> either have spotted an issue also before this change, or not at all. Yet >> if it had spotted one before, the statistics report should have included >> an eliminated instance alongside the new one (because then the issue >> would simply have moved by a few lines). >> >> Hence the only thing I could guess is that the treatment of comments in >> macro expansions might be subtly different. Therefore try whether >> switching the comments to the still relatively new "fallthrough" pseudo >> keyword actually helps. >> >> Coverity-ID: 1490865 >> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> > > A grep inside Xen code show that we have occurence of: > /* fallthrough */ > /* Fallthrough */ > falltrough > > Should we actually fix all of them ? I don't think so, or at least don't view this as urgent. As described what I'm suspecting here is an issue with such comments living inside macros. I don't think we have too many instances of such. In case my guess is right (and hence in case the patch actually helps), we may want to change all in this much smaller set, but as you say ... > Anyway this can be in an other patch. ... in a separate patch (not the least because we still need to see whether the change helps in the first place). > Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx> Thanks. Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |