Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760723AbZD1Lil (ORCPT ); Tue, 28 Apr 2009 07:38:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757172AbZD1Lia (ORCPT ); Tue, 28 Apr 2009 07:38:30 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:33021 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755126AbZD1Li3 (ORCPT ); Tue, 28 Apr 2009 07:38:29 -0400 Date: Tue, 28 Apr 2009 04:38:23 -0700 (PDT) Message-Id: <20090428.043823.244762395.davem@davemloft.net> To: leoli@freescale.com Cc: michael@ellerman.id.au, akpm@linux-foundation.org, galak@kernel.crashing.org, mporter@kernel.crashing.org, linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] rio: warn_unused_result warnings fix From: David Miller In-Reply-To: <2a27d3730904280408j636d8e4tc1b6e1c827509379@mail.gmail.com> References: <1240913737-23773-5-git-send-email-leoli@freescale.com> <1240915882.15414.3.camel@localhost> <2a27d3730904280408j636d8e4tc1b6e1c827509379@mail.gmail.com> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 19 From: Li Yang Date: Tue, 28 Apr 2009 19:08:13 +0800 > IMHO, when device_add() fails the system is quite broken. So the > value is very limited for it to fail cleanly, which need some effort > to implement. I can add it if you insist. I disagree. For the cases where device_add() fails (duplicate name, for example) the device layer already is emitting warnings. You're just adding more log messages for the user to sift through, and likely not adding any new information. -- 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/