[lkml]   [2006]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectsparse errors in srcu.h

When running sparse checks on a file that ends up including srcu.h, we
get the following warnings:

include/linux/srcu.h:52:44: error: undefined identifier 'sp'
include/linux/srcu.h:52:44: error: bad constant expression
include/linux/srcu.h:53:56: error: undefined identifier 'sp'
include/linux/srcu.h:53:56: error: bad constant expression

It seems to be caused by the following lines:

int srcu_read_lock(struct srcu_struct *sp) __acquires(sp);
void srcu_read_unlock(struct srcu_struct *sp, int idx) __releases(sp);

which come from the following commit.

commit 621934ee7ed5b073c7fd638b347e632c53572761
Author: Paul E. McKenney <>
Date: Wed Oct 4 02:17:02 2006 -0700

[PATCH] srcu-3: RCU variant permitting read-side blocking

I was wondering if there is a way to fix those errors...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-12-06 10:53    [W:0.038 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site