linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* intended use of "safe"?
@ 2011-08-11 17:14 Ben Pfaff
  2011-08-12 17:47 ` Christopher Li
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Pfaff @ 2011-08-11 17:14 UTC (permalink / raw)
  To: linux-sparse

It looks like the sparse "safe" attribute warns about use of
"safe" values as conditional expressions.  It's not obvious to me
when I would find that useful.

What is the intended use of the sparse "safe" attribute?  I do
not see any uses of it in Linux (although there is a __safe macro
for it).  I don't see any documentation for it either.

Thanks,

Ben.
-- 
Ben Pfaff 
http://benpfaff.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-12 17:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 17:14 intended use of "safe"? Ben Pfaff
2011-08-12 17:47 ` Christopher Li
2011-08-12 17:58   ` Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).