All of lore.kernel.org
 help / color / mirror / Atom feed
* comparison of safe pointers
@ 2007-05-25 13:07 Al Viro
  2007-05-25 15:29 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2007-05-25 13:07 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-sparse

	Why do we generate a warning when we compare two pointers
declared as safe?  I understand why we do that when such beast gets
used as condition (i.e. implicitly compare with NULL), but what's
wrong with

int foo(void __safe *p, void __safe *q)
{
	return p == q;
}

What did you want that check in evaluate_compare() to catch?  Is that
about warning on explicit comparison with NULL?

Al, crawling through evaluate.c and fixing odd cases in typechecking...

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

end of thread, other threads:[~2007-05-25 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 13:07 comparison of safe pointers Al Viro
2007-05-25 15:29 ` Linus Torvalds
2007-05-25 15:44   ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.