From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756704AbcHWHGQ (ORCPT ); Tue, 23 Aug 2016 03:06:16 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:48875 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752992AbcHWHFa (ORCPT ); Tue, 23 Aug 2016 03:05:30 -0400 Date: Tue, 23 Aug 2016 00:05:14 -0700 (PDT) Message-Id: <20160823.000514.536168139289568958.davem@davemloft.net> To: fransklaver@gmail.com Cc: mikko.rapeli@iki.fi, linux-kernel@vger.kernel.org, zhangshengju@cmss.chinamobile.com Subject: Re: [PATCH v05 27/72] linux/if.h linux/hdlc/ioctl.h: move IFNAMSIZ definition to hdlc/ioctl.h From: David Miller In-Reply-To: References: <1471890809-4383-28-git-send-email-mikko.rapeli@iki.fi> <20160822.163032.1005091075765531174.davem@davemloft.net> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-7 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 23 Aug 2016 00:05:15 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u7N76K37020950 From: Frans Klaver Date: Tue, 23 Aug 2016 09:03:20 +0200 > On Tue, Aug 23, 2016 at 1:30 AM, David Miller wrote: >> From: Mikko Rapeli >> Date: Mon, 22 Aug 2016 20:32:44 +0200 >> >>> Fixes userspace compiler error: >>> >>> error: ĦIFNAMSIZ˘ undeclared here (not in a function) >>> >>> Suggested by Frans Klaver on lkml message >>> <20150530195223.GA15645@bugger.home>. >>> >>> Signed-off-by: Mikko Rapeli >> >> IFNAMSIZ has to be in linux/if.h, you aren't explaining why you have >> to move it to the hdlc header instead of having the hdlc header >> include linux/if.h > > Circular references. linux/if.h includes hdlc/ioctl.h, and has to > define IFNAMSIZ before doing so. That's not acceptable. Use forward declarations or similar to avoid the circular dependency. IFNAMSIZ belongs in linux/if.h, please keep it there.