Re: [PATCH 0/7] Use spinlock_t instead of struct spinlock

From: 'Sebastian Andrzej Siewior'
Date: Thu Jul 04 2019 - 11:46:04 EST

On 2019-07-04 15:39:41 [+0000], David Laight wrote:
> I thought it was policy to avoid typedefs?
> Probably because you can only define them once.

We don't have many of them but we have them and should stick to them.

|$ git grep -A4 "spinlock de" scripts/
|scripts/ check for struct spinlock declarations
|scripts/ if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) {
|scripts/ WARN("USE_SPINLOCK_T",
|scripts/ "struct spinlock should be spinlock_t\n" . $herecurr);
|scripts/ }

> David