Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751865AbWJMUP6 (ORCPT ); Fri, 13 Oct 2006 16:15:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751868AbWJMUP6 (ORCPT ); Fri, 13 Oct 2006 16:15:58 -0400 Received: from smtp.osdl.org ([65.172.181.4]:49347 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751865AbWJMUP5 (ORCPT ); Fri, 13 Oct 2006 16:15:57 -0400 Date: Fri, 13 Oct 2006 13:15:16 -0700 From: Andrew Morton To: Russell King Cc: Jeff Garzik , linux-serial@vger.kernel.org, LKML Subject: Re: [PATCH] serial: handle pci_enable_device() failure upon resume Message-Id: <20061013131516.227e99ee.akpm@osdl.org> In-Reply-To: <20061013075953.GC28654@flint.arm.linux.org.uk> References: <20061012014720.GA12935@havoc.gtf.org> <20061013075953.GC28654@flint.arm.linux.org.uk> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.6; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1345 Lines: 35 On Fri, 13 Oct 2006 08:59:53 +0100 Russell King wrote: > On Wed, Oct 11, 2006 at 09:47:20PM -0400, Jeff Garzik wrote: > > Signed-off-by: Jeff Garzik > > NAK. What happens to the ports if pci_enable_device() fails and someone > has them open? They're screwed either way. > It's far better to leave the must_check warning behind until it can be > _correctly_ solved, rather than papering over the problem with bogus > patches to return errors without taking an appropriate additional action. > > IOW, the warnings serve as a reminder that *proper* error handling needs > to be implemented. What would that error handling do? Until that has been implemented, it would be good if we could at least spit a printk telling people what failed, so when the machine later goes kaput we know why it happened. An appropriate place in which to perform that reporting is up in the high-level resume code, so Jeff's patch is appropriate. Right now, we get silent failure *and* a compile-time warning. It's hard to see how that situation could be made worse. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/