[Drbd-dev] drbd sparse warnings

Philipp Reisner philipp.reisner at linbit.com
Fri May 28 10:07:11 CEST 2010


Am Donnerstag, 27. Mai 2010, um 04:04:03 schrieb Randy Dunlap:
> Hi,
> 
> When I build a Linux kernel with "make C=1" to invoke sparse,
> I see 135 sparse warnings like (shorter list):
> 
> 
> linux-2.6.34-git11/drivers/block/drbd/drbd_int.h:931:39: error: attribute 'require_context': unknown attribute
> linux-2.6.34-git11/drivers/block/drbd/drbd_int.h:1212:69: error: attribute 'require_context': unknown attribute
[...]

We have a patched sparse here. 

I tried to get those improvements into sparse upstream, but
at that time the sparse maintainer was not very active...

http://marc.info/?l=linux-sparse&m=120696665813430&w=4

> 
> What is the meaning and usage of require_context in drbd_int.h?
> 

I guess I will remove that stuff from DRBD in Linux mainline.

Or someone steps up, and helps to get those sparse improvements 
into sparse ;)

Best,
 Phil
-- 
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.


More information about the drbd-dev mailing list