r8169: Spatch the driver
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 31 Oct 2017 19:36:39 +0000 (15:36 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:46:57 +0000 (10:46 -0500)
commitc0cc7b6b0cc3546f5528cf41fdee6f0a9271fe31
treed55be6c36fe38217fee6f0f1134530864841b6f1
parent924fc855a2851cf7611def2a1afc064acb1ce880
r8169: Spatch the driver

Ran the scripts/spatch/linux/*.cocci files.  I had to do the u64s and
{read,write}{b/l/w} manually, due to errors like:

 try to delete an expanded token: writeb

It has something to do with weird usages of macros.

Did a bunch of other spatches separately as I changed the coccis, such as
pci_dev->dev => pci_dev->device.

A bunch of u32, u16, and u8s also failed silently.  Some worked, some
didn't.

Same with BUG_ON.

And a couple of struct net_device.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/r8169.c