From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 17 Dec 2015 12:07:12 -0500 From: Matthew Wilcox Subject: Re: -next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()" Message-ID: <20151217170712.GE2457@linux.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Dan Williams Cc: Russell King , Stephen Rothwell , tomeu.vizoso@collabora.com, "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , m.szyprowski@samsung.com List-ID: On Thu, Dec 17, 2015 at 08:48:09AM -0800, Dan Williams wrote: > On Thu, Dec 17, 2015 at 7:51 AM, Dan Williams wrote: > How about just checking for EPROBE_DEFER, every other non-zero value is success. How about using IS_ERR_VALUE()? If it's good enough for IS_ERR(), it's good enough for this case. From mboxrd@z Thu Jan 1 00:00:00 1970 From: willy@linux.intel.com (Matthew Wilcox) Date: Thu, 17 Dec 2015 12:07:12 -0500 Subject: -next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()" In-Reply-To: References: Message-ID: <20151217170712.GE2457@linux.intel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Dec 17, 2015 at 08:48:09AM -0800, Dan Williams wrote: > On Thu, Dec 17, 2015 at 7:51 AM, Dan Williams wrote: > How about just checking for EPROBE_DEFER, every other non-zero value is success. How about using IS_ERR_VALUE()? If it's good enough for IS_ERR(), it's good enough for this case. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751219AbbLQRHQ (ORCPT ); Thu, 17 Dec 2015 12:07:16 -0500 Received: from mga11.intel.com ([192.55.52.93]:25566 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbbLQRHO (ORCPT ); Thu, 17 Dec 2015 12:07:14 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,442,1444719600"; d="scan'208";a="863122214" Date: Thu, 17 Dec 2015 12:07:12 -0500 From: Matthew Wilcox To: Dan Williams Cc: Russell King , Stephen Rothwell , tomeu.vizoso@collabora.com, "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , m.szyprowski@samsung.com Subject: Re: -next regression: "driver cohandle -EPROBE_DEFER from bus_type.match()" Message-ID: <20151217170712.GE2457@linux.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2015 at 08:48:09AM -0800, Dan Williams wrote: > On Thu, Dec 17, 2015 at 7:51 AM, Dan Williams wrote: > How about just checking for EPROBE_DEFER, every other non-zero value is success. How about using IS_ERR_VALUE()? If it's good enough for IS_ERR(), it's good enough for this case.