Re: [RESEND PATCH 1/1] bitops.h: move out get_count_order[_long]() from __KERNEL__ scope

From: Al Viro
Date: Wed Aug 17 2016 - 21:07:17 EST


On Thu, Aug 18, 2016 at 07:51:19AM +0800, zijun_hu wrote:
> > What the hell is anything without __KERNEL__ doing with linux/bitops.h in
> > the first place? IOW, why do we have those ifdefs at all?
> >
>
> __KERNEL__ is used to indicate the relevant sections within kernel
> headers can't be exported to or used by user space

ITYM "used to be used". These days it's "everything outside of */uapi/*.h
can't be exported"...