From patchwork Mon Apr 11 14:50:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dechesne X-Patchwork-Id: 65527 Delivered-To: patch@linaro.org Received: by 10.112.43.237 with SMTP id z13csp1518911lbl; Mon, 11 Apr 2016 07:51:03 -0700 (PDT) X-Received: by 10.66.157.194 with SMTP id wo2mr33889320pab.128.1460386263189; Mon, 11 Apr 2016 07:51:03 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTP id h74si3877713pfd.163.2016.04.11.07.51.02; Mon, 11 Apr 2016 07:51:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 98D276E582; Mon, 11 Apr 2016 14:51:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id A5BF76E169 for ; Mon, 11 Apr 2016 14:50:58 +0000 (UTC) Received: by mail-wm0-x229.google.com with SMTP id n3so108196633wmn.0 for ; Mon, 11 Apr 2016 07:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=nddUybKsCAuVspBrSR2jIaHpiIQlDCNJkbltYuvS1Ds=; b=TBs4n63eeYp1tFbsApL9WEtjSV7yte8vOKqz78x99gOoPwEi4kBoqZv51EeEG4p6Zm qUGTb8eh8zK5blhc/WTYQaQM34aQbXQ4U8iB6NV6zuyfIVIHcb9VRp95W+T+sUFHpFCQ szqyZ+1bv/bydYuPE20G4K3tGW6lytk3elmPY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nddUybKsCAuVspBrSR2jIaHpiIQlDCNJkbltYuvS1Ds=; b=I/ap+MaC95hmoYXXmoCgZ24h5MpBAr7DXtXMpe64/e+7NkqpwySoyygHgejcUHuSYS cucZS7qKLWJUvh+Ymr+Kytl/ztKmnbu5TzUcvFJglQUQzpZ2l7SkV+ntmun79veWVLPU 17mXkhTXXvJ2HD/8MfQEczJVTYg2630MdnuMOblbBmpyoSOsbQxsheDDwun0bqTGwO62 WRtoBxuSQfibsMjoN8t7dL7p5Lt3k1Duku/HthpQnra3sUmBAtn02ZChsLMLlwGAAmfT eX8F2XE0Gby1J2LMrVwMKVS83VEuCzol2hTikr5UGmuGRn+qwjhC6T8RPn8PTNyG18oc FJiA== X-Gm-Message-State: AD7BkJJuDpYU92OazSxTK9d69LW+q67LcPNKgzYZdFwYw1EYHsGlaKZ23qHcklJb4t1fKvb5 X-Received: by 10.194.103.198 with SMTP id fy6mr27436946wjb.48.1460386257220; Mon, 11 Apr 2016 07:50:57 -0700 (PDT) Received: from localhost.localdomain (cag06-1-82-234-133-133.fbx.proxad.net. [82.234.133.133]) by smtp.gmail.com with ESMTPSA id c144sm17825898wmd.0.2016.04.11.07.50.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Apr 2016 07:50:56 -0700 (PDT) From: Nicolas Dechesne To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] freedreno: add dummy fd_bo_from_fbdev implementation when KGSL is disabled Date: Mon, 11 Apr 2016 16:50:23 +0200 Message-Id: <1460386223-29988-1-git-send-email-nicolas.dechesne@linaro.org> X-Mailer: git-send-email 2.8.0.rc3 Cc: freedreno@lists.freedesktop.org, Khem Raj 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" Make sure that this function is defined (even empty/dummy) when KGSL support is disabled, since it's part of the driver i/f and it was reported to cause symbols issues when building against musl libc implementation. Reported-by: Khem Raj Signed-off-by: Nicolas Dechesne --- freedreno/freedreno_bo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c index a23c65d..82c1f15 100644 --- a/freedreno/freedreno_bo.c +++ b/freedreno/freedreno_bo.c @@ -431,3 +431,10 @@ void fd_bo_cpu_fini(struct fd_bo *bo) { bo->funcs->cpu_fini(bo); } + +#ifndef HAVE_FREEDRENO_KGSL +struct fd_bo * fd_bo_from_fbdev(struct fd_pipe *pipe, int fbfd, uint32_t size) +{ + return NULL; +} +#endif