From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753560AbcHRA2Q (ORCPT ); Wed, 17 Aug 2016 20:28:16 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:38878 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435AbcHRA2P (ORCPT ); Wed, 17 Aug 2016 20:28:15 -0400 Date: Thu, 18 Aug 2016 01:28:08 +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: <20160818002808.GK2356@ZenIV.linux.org.uk> References: <57B2B238.3030709@zoho.com> <57B2C4CE.80303@zoho.com> <20160817172056.GE2356@ZenIV.linux.org.uk> <20160817235914.GJ2356@ZenIV.linux.org.uk> <0ba55ab9-eae7-d50f-1b45-c6714e094b03@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0ba55ab9-eae7-d50f-1b45-c6714e094b03@zoho.com> 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 08:10:19AM +0800, zijun_hu wrote: > Documentation/kbuild/makefiles.txt: > The kernel includes a set of headers that is exported to userspace. > Many headers can be exported as-is but other headers require a > minimal pre-processing before they are ready for user-space. > The pre-processing does: > - drop kernel-specific annotations > - drop include of compiler.h > - drop all sections that are kernel internal (guarded by ifdef __KERNEL__) > > scripts/Makefile.headersinst: > # ========================================================================== > # Installing headers > # > # header-y - list files to be installed. They are preprocessed > # to remove __KERNEL__ section of the file > # genhdr-y - Same as header-y but in a generated/ directory Quite. Now, could you show me where bitops.h is mentioned in any header-y assignments? Stuff outside of */uapi/* is not exported at all.