From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751049Ab1G2OSJ (ORCPT ); Fri, 29 Jul 2011 10:18:09 -0400 Received: from shards.monkeyblade.net ([198.137.202.13]:35842 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750840Ab1G2OSH (ORCPT ); Fri, 29 Jul 2011 10:18:07 -0400 Date: Fri, 29 Jul 2011 07:17:10 -0700 (PDT) Message-Id: <20110729.071710.1864654661956416171.davem@davemloft.net> To: jkosina@suse.cz Cc: James.Bottomley@HansenPartnership.com, vitalivanov@gmail.com, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: Re: sungem: fix compile failure caused by trivial #include consolidation From: David Miller In-Reply-To: References: <1311948524.8190.39.camel@mulgrave> X-Mailer: Mew version 6.3 on Emacs 23.2 / 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]); Fri, 29 Jul 2011 07:17:12 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Kosina Date: Fri, 29 Jul 2011 16:11:54 +0200 (CEST) > On Fri, 29 Jul 2011, James Bottomley wrote: > >> This patch: >> >> commit e44ba033c5654dbfda53461c9b1f7dd9bd1d198f >> Author: Vitaliy Ivanov >> Date: Mon Jun 20 16:08:07 2011 +0200 >> >> treewide: remove duplicate includes >> >> Causes this compile failure on parisc: >> >> CC [M] drivers/net/sungem.o >> drivers/net/sungem.c:49:22: error: asm/prom.h: No such file or directory >> make[2]: *** [drivers/net/sungem.o] Error 1 >> >> Only Sparc and PPC actually have the asm/prom.h include, so you can't >> consolidate it outside of the ifdefs. >> >> Signed-off-by: James Bottomley >> >> --- >> >> This really shouldn't be happening with a trivial patch, since it's an >> obviously non-trivial transformation ... I assume the duplicate include >> checker isn't taking #ifdefs into account? > > Ah, right. I am afraid this was simply overlooked. David, do you want me > to take this, or will you fix that up in your tree? (I am fine either > way). Take what, although James signed off he seemd to simply repost your patch again rather than a fix, unless I'm reading it wrong :-) But yeah once there is a fix please push it.