From patchwork Fri May 17 15:02:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 797472 Delivered-To: patch@linaro.org Received: by 2002:adf:e68e:0:b0:351:d90a:5487 with SMTP id r14csp814940wrm; Fri, 17 May 2024 08:03:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXFs/BJVYhuykJGH19bhln0w60CmRr4PqVi/sL45nfblVRlURX/ubfaIqV3ddufsqKJ5Bkc+ZLMBIvf8iTbaKaC X-Google-Smtp-Source: AGHT+IEsVRjprnWtKCuLL3nzlLRSkuElv88c6F4KKxDLs1hCwN58Djfparyg4ye5Zkvg+g1ftHQH X-Received: by 2002:a5b:d4b:0:b0:df4:4345:260b with SMTP id 3f1490d57ef6-df4434527d3mr7086215276.36.1715958223201; Fri, 17 May 2024 08:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715958223; cv=none; d=google.com; s=arc-20160816; b=bLRc7GB9Ywn83Kao0kGcaXy6EPizG7zkN64wrcsFujblEvVZBKbPllj1x+d8fSrlHw Lw3twon2dg6TXW1RGpZX551aC+MvJQfH4glO5UPTThgJ9ZO6+Ai3wz+GNl6s+fy9sfUz EzFO3srWr3pNqonROfvw+qEHxhce1C00qFJjrt7EQ/DMH2mG+DlD4qaJP/MGyKSg8JGt YJv53x1/kWIysD7O/DU5rYXWTufXeFp0MkS4TfpefEgwhiZz9F2d6PzcUcezmESp8uOa zOT+rWxrclMUzBJFkFuGcTE7uIHLzByFgArOqUNcay//6ivcFp2Nh6OCSOYo2eqCHGgX vF/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+EqzMl8MHvvQIdbxxo0G9Us5dJc+dAGwQg0EfUlU33w=; fh=vPGgBKjG5M2Hhj91wBlzR/1e05e648xqCqV96evKOss=; b=MYIvI3y9XosNuJ3iZ12qiyfR7E1d6mX3GkMvYpDimU/k67yqQHYlXX3PzNmcKPHYhn Dk1ql/eQ1h2tIKsHE8MviKxCFIFB0wjScuAbcpoYpp59pxMwBBmiQGyBUulLf4V9d9j6 +1/40/0r+wYxx02fGv+e4338ONiJv26+d7d2ZGRhoFXlppWSaSX9rbtbZtxiGP0bIX5v OeceafGgIOzuyb04H8l0EXbGbQaGbc/QnEVhJ85EJR+tzkfu5VmzZvHPOhmWYB1A7YFc Aw6/N78CG7pcOjiFO+AxDQ+O9Mo7rkboy0imxRcd/spq46MUKXwIEBnCrJzUVudv9EW8 gvEQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aR6yVKyi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 3f1490d57ef6-debd3869f07si8621029276.436.2024.05.17.08.03.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2024 08:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aR6yVKyi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7z6l-0004wx-TO; Fri, 17 May 2024 11:02:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7z6V-0004uO-Sn for qemu-devel@nongnu.org; Fri, 17 May 2024 11:02:48 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7z6S-0005Nk-PJ for qemu-devel@nongnu.org; Fri, 17 May 2024 11:02:39 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-56e6affdd21so1969720a12.3 for ; Fri, 17 May 2024 08:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715958154; x=1716562954; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+EqzMl8MHvvQIdbxxo0G9Us5dJc+dAGwQg0EfUlU33w=; b=aR6yVKyi1k01OxaYReXTHpXIn9A9R9e5pjG4y9MK41YmPKP4iLokXbH54nbYlu/GOj ff1xWzqsAapOsEm4nG8+9St0vqsde6ym96idQXL1iG3qHTz6RlFw5frnPNb99/PqTh+Y VvoCJih1c782juIuOOxT67X+XpUz08Q73OWGYnvmjXCL/xCuN6FlImulMbh21lRfTxTr zOwRRQul5/DwQjmF7MLEgUEqi3QxOm10ERaDyIsOjG+aqyh87aMFHxyGWUdX/MN3Dgr2 vMc/YOoKCiXi2zq0lZM5MDN4fPsdSOy2cPNpfn32qXbJHQ17UBz0EXg03yCRGkDJ+kSV IJyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715958154; x=1716562954; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+EqzMl8MHvvQIdbxxo0G9Us5dJc+dAGwQg0EfUlU33w=; b=ki//4EKyVEltU5+NjkgUlgaX+Fm/GUMOIqcjCufHzGUktkLx25fkMCzXx2kekUFb08 C8yP29ayTHGUwLChKZAEvPqmtifnUaOrL1fsbyfrC/I8mF+rru8JkWehJhGN+TVsiou5 rJHFZwtD+8bcqhfz/vky2ivO4EYTy4ZwUS43Zn2V8GY3sytm+99MRi9vQjzyGvAGFgRB aQoiI9dj8X1lX7p0n//mbloF5GzwVrWUNL+cizc3Z35BHFu4PqfIb+XroqXg3JjxsCYK BUvG/oxrKBMQC3jpCH8SjQjmnyejeV15iJNxRNpid2CAe6f/1XmMVrFFp+2rfFdp93va 5JJA== X-Gm-Message-State: AOJu0YyhIIpXyygeLyB6yMe9GlGFsHySVSmsw1/ZJk1MKL5ykQuq1DDo aagGT3Yba51aCLTjJ+5kAr+EuYChtnHBzxQYAnTM9/oSS7lfbT0mPPNF9c/4gnhzYwpY1R+fpgr 5 X-Received: by 2002:a50:8757:0:b0:572:47be:831d with SMTP id 4fb4d7f45d1cf-5734d5ce595mr20099116a12.20.1715958154717; Fri, 17 May 2024 08:02:34 -0700 (PDT) Received: from localhost.localdomain ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733bea66f9sm11957369a12.15.2024.05.17.08.02.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 17 May 2024 08:02:34 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Dongwon Kim , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 1/5] ui/console: Only declare variable fence_fd when CONFIG_GBM is defined Date: Fri, 17 May 2024 17:02:23 +0200 Message-ID: <20240517150227.32205-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240517150227.32205-1-philmd@linaro.org> References: <20240517150227.32205-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=philmd@linaro.org; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Cédric Le Goater This to avoid a build breakage : ../ui/gtk-egl.c: In function ‘gd_egl_draw’: ../ui/gtk-egl.c:73:9: error: unused variable ‘fence_fd’ [-Werror=unused-variable] 73 | int fence_fd; | ^~~~~~~~ Fixes: fa6426805b12 ("ui/console: Use qemu_dmabuf_set_..() helpers instead") Cc: Dongwon Kim Cc: Marc-André Lureau Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240515100520.574383-1-clg@redhat.com> Signed-off-by: Philippe Mathieu-Daudé Acked-by: Dongwon Kim --- ui/gtk-egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c index 0473f689c9..9831c10e1b 100644 --- a/ui/gtk-egl.c +++ b/ui/gtk-egl.c @@ -68,9 +68,9 @@ void gd_egl_draw(VirtualConsole *vc) GdkWindow *window; #ifdef CONFIG_GBM QemuDmaBuf *dmabuf = vc->gfx.guest_fb.dmabuf; + int fence_fd; #endif int ww, wh, ws; - int fence_fd; if (!vc->gfx.gls) { return;