From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161878Ab2CPAyC (ORCPT ); Thu, 15 Mar 2012 20:54:02 -0400 Received: from shards.monkeyblade.net ([198.137.202.13]:60908 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750Ab2CPAx6 (ORCPT ); Thu, 15 Mar 2012 20:53:58 -0400 Date: Thu, 15 Mar 2012 20:51:39 -0400 (EDT) Message-Id: <20120315.205139.858349725408037483.davem@davemloft.net> To: tony@bakeyournoodle.com Cc: robert.w.love@intel.com, JBottomley@parallels.com, devel@open-fcoe.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Replace IS_ENABLED(CONFIG_FCOE) in linux/netdevice.h From: David Miller In-Reply-To: <1331857815-2333-1-git-send-email-tony@bakeyournoodle.com> References: <1331857815-2333-1-git-send-email-tony@bakeyournoodle.com> X-Mailer: Mew version 6.4 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (shards.monkeyblade.net [198.137.202.13]); Thu, 15 Mar 2012 17:51:42 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tony Breeds Date: Fri, 16 Mar 2012 11:30:15 +1100 > On platforms that (or configs that do not have PCI support building any > code that includes linux/netdevice.h we see the following warnings: > > include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE" is not defined [-Wundef] > include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE_MODULE" is not defined [-Wundef] > > In the case of this file we can trivially fallback to the old school > #if defined(...) syntax. > > Signed-off-by: Tony Breeds Fix IS_ENABLED to handle cases like this so we don't need special cases like this scattered around the tree.