From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753831AbcHRBHP (ORCPT ); Wed, 17 Aug 2016 21:07:15 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:39302 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753788AbcHRBHO (ORCPT ); Wed, 17 Aug 2016 21:07:14 -0400 Date: Thu, 18 Aug 2016 00:59:14 +0100 From: Al Viro To: zijun_hu Cc: Stephen Rothwell , Andrew Morton , "linux-kernel@vger.kernel.org" Subject: Re: [RESEND PATCH 1/1] bitops.h: move out get_count_order[_long]() from __KERNEL__ scope Message-ID: <20160817235914.GJ2356@ZenIV.linux.org.uk> References: <57B2B238.3030709@zoho.com> <57B2C4CE.80303@zoho.com> <20160817172056.GE2356@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"...