From patchwork Fri May 8 18:21:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Squyres X-Patchwork-Id: 6366791 X-Patchwork-Delegate: dledford@redhat.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F247F9F32E for ; Fri, 8 May 2015 18:31:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4046A2025B for ; Fri, 8 May 2015 18:31:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F2A62008F for ; Fri, 8 May 2015 18:31:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932430AbbEHSbj (ORCPT ); Fri, 8 May 2015 14:31:39 -0400 Received: from rcdn-iport-2.cisco.com ([173.37.86.73]:35237 "EHLO rcdn-iport-2.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932223AbbEHSbd (ORCPT ); Fri, 8 May 2015 14:31:33 -0400 X-Greylist: delayed 572 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 May 2015 14:31:33 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=878; q=dns/txt; s=iport; t=1431109893; x=1432319493; h=from:to:cc:subject:date:message-id; bh=1sp9rmOYyge34ohMm5gMjp++S8qKnj7E3gp8asxou8w=; b=fq42QClk7+f36ugx6SGz86hsOwmIYKAjSZQ9xvmA7EOQMsC1Z2BTVsQq m3zlXsOKHUrXWQ3E0w6sVbjtiajZW8usjuko77zn4468yfk67lifM5lUO lnbpJ0qJYP+MOTtZQxfYACf1ze/ofrGiSaEo6GC3pqaQ/rPp5RLs3WlYB 0=; X-IronPort-AV: E=Sophos;i="5.13,391,1427760000"; d="scan'208";a="418573628" Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-2.cisco.com with ESMTP; 08 May 2015 18:22:01 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-7.cisco.com (8.14.5/8.14.5) with ESMTP id t48IM1wL024604; Fri, 8 May 2015 18:22:01 GMT Received: by cisco.com (Postfix, from userid 182726) id 1AA9A3FAAC59; Fri, 8 May 2015 11:22:01 -0700 (PDT) From: Jeff Squyres To: linux-rdma@vger.kernel.org Cc: Jeff Squyres Subject: [PATCH] libibverbs init.c: remove stderr warnings if no userspace driver found Date: Fri, 8 May 2015 11:21:54 -0700 Message-Id: <1431109314-31662-1-git-send-email-jsquyres@cisco.com> X-Mailer: git-send-email 2.2.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jeff Squyres --- src/init.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/init.c b/src/init.c index d0e4b1c..9c21768 100644 --- a/src/init.c +++ b/src/init.c @@ -557,19 +557,5 @@ HIDDEN int ibverbs_init(struct ibv_device ***list) } out: - for (sysfs_dev = sysfs_dev_list, - next_dev = sysfs_dev ? sysfs_dev->next : NULL; - sysfs_dev; - sysfs_dev = next_dev, next_dev = sysfs_dev ? sysfs_dev->next : NULL) { - if (!sysfs_dev->have_driver) { - fprintf(stderr, PFX "Warning: no userspace device-specific " - "driver found for %s\n", sysfs_dev->sysfs_path); - if (statically_linked) - fprintf(stderr, " When linking libibverbs statically, " - "driver must be statically linked too.\n"); - } - free(sysfs_dev); - } - return num_devices; }