From patchwork Thu Nov 5 14:45:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320631 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp509632ilc; Thu, 5 Nov 2020 06:52:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZE80CPOXUdskHTtoeChUC8tvTT3CJONvi6WTWcGQZ7x+BYOFpcaXhdEJF7Vwdvra0d6HM X-Received: by 2002:a17:90a:7c43:: with SMTP id e3mr2910310pjl.124.1604587956488; Thu, 05 Nov 2020 06:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604587956; cv=none; d=google.com; s=arc-20160816; b=yotngT8R2VKlFS60OVb+dyFYqPIzAw+R6jE2e4dbQqNv2VHzWMWSpBDlZKx0cK5jzI HSZwzGcXG9OKoVmisAYHYG/ysDzHmET/CPbZaWgckNd9JJIvDPcqeS45btWrGIsERtt7 WtQOqlnEDDYWClHyHuFbqbNBVk/N/D56+PIRXHI/4t5gCputcu6YsWyOrg/DsCDcCyhj iwmuuN3B7gRUYIt8Sp0MpR6unqQCstX0qJh78mujcU0obeFb9WV2Y/SAV38tlGcCdolC wu2YSSPeMWx59x0v0B8QNbK9CMg5k5lFXeHnG36eirJH/9UeFRsTSD6zYO/ufgnAEPPG gg0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=vMhS3JRdn1721VIYpvG54ypPbmTTDbVmPscLn2sAJJc=; b=RupLVeUyQl025HzQYEnhMCoDOUOqM75ipnM0Ac7Vh0JZuAo7y3dojsocX9z+RTSmvS WMppwu5qNDy9+PJlpLHibm3NEpAmZaNmvSQQJ0Bwez0FsJXebJX/4fSe3S2+U4ww3XCu Yty962F+A2wUjRNPFdtJfYSKuG+AzLB5SV2nsam08PwD4ELGBRfSjLtrZtrDSAvoDxlP /9eygNIaw9nw8ehEbTkW2M5PVvYlyEJfnnFBZT1nroapKRI7JcTSg0Hu4/rb0AfJ4j2Z Df8z+TiBS1n2FVDMIoD3hRrdbSANTF5oh66uj8Adq9Qf2Sfh1H2KfOryqgGYzI1x+A48 DEsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QpushnzW; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s9si1800300pjq.55.2020.11.05.06.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QpushnzW; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=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 0C03C6ED9D; Thu, 5 Nov 2020 14:52:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 26C0C6ED94 for ; Thu, 5 Nov 2020 14:52:27 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id d142so1867761wmd.4 for ; Thu, 05 Nov 2020 06:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CpDMS+RHHV1rRQnMHYAjcZzCg3wY/F0STHOFtNum/rU=; b=QpushnzWopYXqm5YWwBvN6+FQaZHUZjNp1tHAUM5Ag2u5db4kXa+UJ3Z4yl/TOmdD1 7T39shHAWcJiQRYKkCkciEbSRLy+kOmviXG4DtQVSWEgKSXKv6NFk9JKADhbaGGEZJAA gOR7hTYFkaC0n1XYj/O1NWU4cb3MOSx4JPotMGNGBBBgUy9K2NK2k9ZFVySebV+iywE1 ekymQgI26V3+xOhGpSd0IXPly/an+QOpGzOAbVFqI8PeMMkoBWPrSIQ4gtFJRQR3c7NR DL62I58XDWWnnY0xsrxuDBjVmUGHkMYUoJYEyhvi3yBjSU1fQmaNCGo139n4SjKDzreO iqyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CpDMS+RHHV1rRQnMHYAjcZzCg3wY/F0STHOFtNum/rU=; b=dHvcm0iuGBGUEWrA1zmVlXQfJoM9PVoZdewbijQCmet3i2qGmR8q2NRF5w/uAa1Jdz ny0jy1mfgMvcDlJoj1i5o3eSswgO36FtnewszAvEaDITBpujRCxtmDnwQQxY6eUTzBpb UdMqNMarGlF8QOBitryydicn7J8gCo77qr6BjQm5Vg/NVsc6wCDV+dRynLcyoLmKgqo/ QYRL/Db+Re6OdJTcZeAabykn3Pz6Sgop/yKuaBRtrZJsCjqMolaTKWWdNv0WPMDzXgId ZzKtBu12cjlm10gP+Hi+pB7zZXNllNsV0rhecRN97sRRJzBGfojAkvi5LQDFP1KdDk9X NyGg== X-Gm-Message-State: AOAM5318wpfzTe8Y50eCwYPonbttSjuwfpqyj4WtJgsMQsFGXKbj60BJ N1t+FKFEaKDr06yoyGw3oiiUHQ== X-Received: by 2002:a05:600c:22d3:: with SMTP id 19mr3311106wmg.161.1604587945893; Thu, 05 Nov 2020 06:52:25 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id f5sm2631243wmh.16.2020.11.05.06.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:25 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 09/19] gpu: drm: selftests: test-drm_framebuffer: Remove set but unused variable 'fb' Date: Thu, 5 Nov 2020 14:45:07 +0000 Message-Id: <20201105144517.1826692-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201105144517.1826692-1-lee.jones@linaro.org> References: <20201105144517.1826692-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/selftests/test-drm_framebuffer.c: In function ‘execute_drm_mode_fb_cmd2’: drivers/gpu/drm/selftests/test-drm_framebuffer.c:333:26: warning: variable ‘fb’ set but not used [-Wunused-but-set-variable] Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/selftests/test-drm_framebuffer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/selftests/test-drm_framebuffer.c b/drivers/gpu/drm/selftests/test-drm_framebuffer.c index 2d29ea6f92e2a..789f22773dbc9 100644 --- a/drivers/gpu/drm/selftests/test-drm_framebuffer.c +++ b/drivers/gpu/drm/selftests/test-drm_framebuffer.c @@ -330,10 +330,9 @@ static struct drm_device mock_drm_device = { static int execute_drm_mode_fb_cmd2(struct drm_mode_fb_cmd2 *r) { int buffer_created = 0; - struct drm_framebuffer *fb; mock_drm_device.dev_private = &buffer_created; - fb = drm_internal_framebuffer_create(&mock_drm_device, r, NULL); + drm_internal_framebuffer_create(&mock_drm_device, r, NULL); return buffer_created; }