From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939425AbdEXQBu (ORCPT ); Wed, 24 May 2017 12:01:50 -0400 Received: from smtp65.ord1c.emailsrvr.com ([108.166.43.65]:48427 "EHLO smtp65.ord1c.emailsrvr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761339AbdEXQBm (ORCPT ); Wed, 24 May 2017 12:01:42 -0400 X-Auth-ID: siepeng@mev.co.uk X-Sender-Id: siepeng@mev.co.uk Subject: Re: [PATCH 1/1] bug: fix problem including from linux/kernel.h To: Rasmus Villemoes References: <20170524132107.6919-1-abbotti@mev.co.uk> <20170524132107.6919-2-abbotti@mev.co.uk> Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Arnd Bergmann , Andrew Morton , Michal Nazarewicz , Hidehiro Kawai , Borislav Petkov , Johannes Berg , Peter Zijlstra , Alexander Potapenko From: Ian Abbott Message-ID: <82f67357-541d-8e08-3380-e485ea3e8764@mev.co.uk> Date: Wed, 24 May 2017 16:55:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/05/17 14:37, Rasmus Villemoes wrote: > On 24 May 2017 at 15:21, Ian Abbott wrote: >> If "include/linux/kernel.h" includes , a circular >> dependency is introduced > > Then don't. Can't we just create linux/build_bug.h and have that > contain the BUILD_BUG related macros - they're really completely > unrelated to all the asm-cruft bug.h needs to know about. build_bug.h > can then include compiler.h and not much else to figure out how it may > implement its macros. Then kernel.h can include build_bug.h, and we > don't force each and every translation unit to include bug.h and > everything that then pulls in. We just got rid of a lot of header > bloat, let's try to keep it that way. Thanks, I'll take a look at that. In the meantime, I noticed the title line of this patch contains a nasty typo, so I'll send a v2 patch to fix that. -- -=( Ian Abbott @ MEV Ltd. E-mail: )=- -=( Web: http://www.mev.co.uk/ )=-