WSL2-Linux-Kernel/include/linux/byteorder
Michal Schmidt ee7b9e3706 Fix compilation of drivers with -O0
It is sometimes useful to compile individual drivers with optimization
disabled for easier debugging.  Currently drivers which use htonl() and
similar functions don't compile with -O0.  This patch fixes it.  It also
removes obsolete and misleading comments.  This header is not for
userspace, so we don't have to care about strange programs these comments
mention.

(akpm: -O0 probably isn't a good idea, but this code looks pretty crufty and
unuseful)

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:00 -07:00
..
Kbuild [PATCH] cleanup linux/byteorder/swabb.h 2007-02-11 10:51:34 -08:00
big_endian.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
generic.h Fix compilation of drivers with -O0 2007-05-08 11:15:00 -07:00
little_endian.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
swab.h Fix constant folding and poor optimization in byte swapping code 2007-05-08 11:14:59 -07:00
swabb.h [PATCH] cleanup linux/byteorder/swabb.h 2007-02-11 10:51:34 -08:00