On Sat, Jul 01, 2017 at 03:21:36PM -0700, Christopher Li wrote: > On Sat, Jul 1, 2017 at 2:24 AM, Luc Van Oostenryck > <luc.vanoostenryck@xxxxxxxxx> wrote: > > > > Sure it make some sense. > > > > But how often it happen and when it happen how much developers > > are impacted and for how long? > > It actually happen right now with the kernel using require_context > which is not supported by sparse. Sparse should report error > on the sparse related syntax which it does not support. Gcc is > no going to report error on those sparse related attributes because > gcc never see them. "should report error" ... What error exactly? Is there something that doesn't work on sparse or on GCC's side regarding this 'require_context'? What need to be fixed exactly? > Because we have noway to tell an unknown attribute is belong > to sparse or gcc. That's *exactly* why sparse should *not* report. You have no way to tell if what you're reporting is legitimate or not. And in most cases it's legitimate on GCC's side but you still want to report it. > Sparse checker should report it. It is very bad > silence on those sparse specific error and developer have no way > to know it. It is very bad to report about all those false warnings. It make sparse less usefull, not more. > As for the distro version of sparse is too old. > I think the right thing to do is just get into the habit of release > more often. Yes, it makes the problem worse, but even doing a release every week won't change the problem when you take in account the lifetime of distros. If you want sparse to be usefull, you need to seek forward compatibility and not blindly reporting lots of false warnings for some very rare true ones. But well ... let's agree we disagree. -- Luc -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html