https://elixir.bootlin.com/linux/latest/source/include/linux...
https://elixir.bootlin.com/linux/latest/source/include/linux...
Call it device_class ffs
https://lwn.net/ml/linux-api/20180905165436.GA25206@kroah.co...
And that's for a userspace header.
#define class Class
#include <some_linux_header.h>
#undef class
/s"In the dark old days, in the time that most of you hadn't even heard of the word "Linux", the kernel was once modified to be compiled under g++. That lasted for a few revisions. People complained about the performance drop. It turned out that compiling a piece of C code with g++ would give you worse code. It shouldn't have made a difference, but it did. Been there, done that."
If there is a difference (either way) I'd expect it to be something you can measure, but not something you would notice in the real world on one computer. (though at google scale it probably shows up)
at least in general - if it's something that can't handled by a c shim then you might have an issue.