On Mon, Feb 12, 2007 at 07:48:18PM -0800, Linus Torvalds wrote: > > When call one of those functions, it can know that function will change > > context. That might be a way to solve the problem that some of the > > spinlock function is not a inline function at all. > > I thought we did that already. I'm fairly sure I had this working at some > point - exactly by having the calls just add up the (known) lock/unlock > offsets. > You are right. It is already there. I never see it before because my ctags get confused about the context annotation: void __lockfunc _spin_lock(spinlock_t *lock) __acquires(lock); It generate tags for "lock" instead of "_spin_lock". When I look up _spin_lock, it only shows the UP version. I never see the SMP version of the _spin_lock. Exactly why I want to have a ctags from sparse. Chris - 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