NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/47114: it's too easy to misspell `mutex_owned' as `mutex_owner'



The following reply was made to PR kern/47114; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/47114: it's too easy to misspell `mutex_owned' as
 `mutex_owner'
Date: Sun, 20 Nov 2016 22:30:52 +0000

 On Sun, Nov 20, 2016 at 08:40:01PM +0000, coypu%SDF.ORG@localhost wrote:
  >  Aside from renaming, another option may be to add it to linting, although
  >  I'm not sure how to do it myself/ if it's easy to do it.
  >  mutex owner.... == something would be valid,
  >  mutex_owned .... == invalid.
  >  
  >  mutex_owner sans == invalid,etc.
 
 mutex_owner() == anything_besides_curlwp isn't valid either, so
 mutex_owner should probably just go away.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index