From patchwork Fri Oct 21 17:12:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 9389747 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 45633607D0 for ; Fri, 21 Oct 2016 17:31:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37D332A202 for ; Fri, 21 Oct 2016 17:31:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CA2E2A207; Fri, 21 Oct 2016 17:31:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F93E2A202 for ; Fri, 21 Oct 2016 17:31:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B57F26ED99; Fri, 21 Oct 2016 17:31:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 1EF9D6ED99 for ; Fri, 21 Oct 2016 17:31:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 904F92C9C06F; Fri, 21 Oct 2016 10:12:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZuxlopSRbRyU; Fri, 21 Oct 2016 10:12:40 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id B091F2C9C06D; Fri, 21 Oct 2016 10:12:40 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 59DA92E6AE0; Fri, 21 Oct 2016 10:12:40 -0700 (PDT) From: Eric Anholt To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 2/2] Silence runtime complaints on platform devices Date: Fri, 21 Oct 2016 10:12:40 -0700 Message-Id: <20161021171240.6972-2-eric@anholt.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161021171240.6972-1-eric@anholt.net> References: <20161021171240.6972-1-eric@anholt.net> Cc: linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP glxgears was spamming this 12 times at startup because of Mesa's probing of the DRM device code, which doesn't support platform devices. Signed-off-by: Eric Anholt Reviewed-by: Alex Deucher --- xf86drm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 9b52889e4cef..52add5e441d7 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -3149,7 +3149,6 @@ int drmGetDevice(int fd, drmDevicePtr *device) break; default: - fprintf(stderr, "The subsystem type is not supported yet\n"); continue; } @@ -3259,7 +3258,6 @@ int drmGetDevices(drmDevicePtr devices[], int max_devices) break; default: - fprintf(stderr, "The subsystem type is not supported yet\n"); continue; }