From patchwork Wed Jan 13 14:49:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362128 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598208jap; Wed, 13 Jan 2021 06:50:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJXsJxWPTScdgs+I9PtQXP7uYg1DbTZH0NCNALOjNL4wTsZVmx35xx1NJgtDb3AcE/1RE+ X-Received: by 2002:a63:1261:: with SMTP id 33mr2345741pgs.213.1610549452733; Wed, 13 Jan 2021 06:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549452; cv=none; d=google.com; s=arc-20160816; b=fgJZdYTLz8kA1A3ONOXOIDLbrBoF/vG+PWMHW1l17PIFHcQnvYZG9hcPANPqHuQu+Y H9gTYXxdCtcTb6g1e2oesIHs0uoWLcjZHwxKDEOdjCMQXOJuXy5fRXVwcbMZWcuHFEo+ gubzyGKhxYJ6FpDirsfZu3MsB8sAlWcL1LoRcYraOj8of1ETe9AnjsDjsRV2nL6jzRoL L8tPR793d7xjD8debK+yvqUAF8D0HYKtH0KsrB9rjYaaxwN5wP44advaugVCrRHIsYc2 O249V25jhWbEPzxKaC+xrADOiJilsQBHqajs89RMOA7tf0mm3TFshxn6HZJyyefKpwYU vhUg== 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=BH2hp+Y8ef4FQhDixHj8iUBNrwP8dMsbqM6CbLJ1GGU=; b=OLT35MskMEF/rS3YK8DrUnH9ur7wDdHBqIpIBBtSM8QjZ1wtpPiWFoevBx/tQ5qQod 7SM+W2KORjqzKkN73IK+uwC5vs697vuCTGzB/S37EXzLGYjJir1WIoovzLmiHneFTIXJ ltmF917K6vVI0GAxO/PUtsQzmq3x75vcE/wKdxwN/VVtv4uqo3afAAl6lUuwd8ppRqhw bMOPePyKHRsKKMxfL2KHQKQs0bYmJLp6GGkvFqUbMaCS4T3DQk6xoqiKGf9W6tdG59cG 6ctGb3e/uI4owExpAkOPrsx4NF1R/TMhwmbGc8vMqQwyJd2WA8f1T2YNo3saWBpaTxSa ddXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vlfUbYCa; 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 sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id i6si2691630pju.133.2021.01.13.06.50.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:52 -0800 (PST) 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 header.s=google header.b=vlfUbYCa; 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 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 520D56EA67; Wed, 13 Jan 2021 14:50:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 586206EA5F for ; Wed, 13 Jan 2021 14:50:42 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id d26so2386070wrb.12 for ; Wed, 13 Jan 2021 06:50:42 -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=K8LGsHawy1FykMfSNgFdlsHpkSijq6aQuT4rYUHFPB4=; b=vlfUbYCaI8nbSGsNOrvP4jNkRNNQft4Td7Q/qK7df3eMXHJiNDMJ7WqrL+lctbGzof irvEGx52lUUHqOlSxdne5KYtvcv637NvMYUh46CWn0hYxBYGrnYgpxsFeL+hxHB7aXZz nKEugO/vNXJaQpOyOYQD1cz7XxScABklnzNnXh+KI5q1rPET24SGQL0t9lgX19e+C7fR eFsxphGPTVhjYYo/VvE2TbVEkj/Dq8F69zcFARqN+rtlR6zQXNuUSLhFlkcsV/wpyhQh 1eMd62z5eauJMxNi8y0gGmRjshelxQz5tkvi3VyP8GGcTFLF5ZpE7yXf3E7Hveu5aQgK 93FA== 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=K8LGsHawy1FykMfSNgFdlsHpkSijq6aQuT4rYUHFPB4=; b=YaCeUaJYoqxSG7G7snDPyD4tT1c4x4NVjoCcQ1IkHWjOD/dV3RENwRBcwTD3G7ur+N s/+Zsu4S8hNh84QmgIKUFEm720DxYpTNbRTty0dWff72N7oLqy3d+XF8OHKlwY9GGWgb byWRp+fjjTMsybkjY2q6XZrQkoy8WzODMNYJEV414CxA5KjSuXVdCX5/PH4veVitoI60 F+l3ASSmZVR8eFTSrX+sAZcVGjxjJplAv0u7gP/DJOYggO4KWh43D9dEKexU4l862K2s wJ1Q8SVMJsWouOZDN+1KJHbC3B7fNH74t3hE3O1ZwGDxp2ptooq7BEgEnk+cm6rjXLJ+ 0hFg== X-Gm-Message-State: AOAM533glzDVvIoBiFywsWlBW/8AtSVDeQFayqkFhzCthVRb45L61Fq0 hJb0TTGGUYRiMC4SS96Qhrq0s7nxa8PNADq0 X-Received: by 2002:adf:f18a:: with SMTP id h10mr3188792wro.244.1610549441019; Wed, 13 Jan 2021 06:50:41 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/31] video: fbdev: neofb: Remove unused variable 'CursorMem' Date: Wed, 13 Jan 2021 14:49:56 +0000 Message-Id: <20210113145009.1272040-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-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: linux-fbdev@vger.kernel.org, "Thomas J. Moore" , Evgeny Novikov , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Oliver Kropp , Mike Rapoport Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/neofb.c: In function ‘neo_init_hw’: drivers/video/fbdev/neofb.c:1846:6: warning: variable ‘CursorMem’ set but not used [-Wunused-but-set-variable] Cc: Evgeny Novikov Cc: Mike Rapoport Cc: Oliver Kropp Cc: "Thomas J. Moore" Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/video/fbdev/neofb.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/fbdev/neofb.c b/drivers/video/fbdev/neofb.c index 09a20d4ab35f2..bec199a34037e 100644 --- a/drivers/video/fbdev/neofb.c +++ b/drivers/video/fbdev/neofb.c @@ -1843,7 +1843,6 @@ static int neo_init_hw(struct fb_info *info) struct neofb_par *par = info->par; int videoRam = 896; int maxClock = 65000; - int CursorMem = 1024; int CursorOff = 0x100; DBG("neo_init_hw"); @@ -1895,26 +1894,22 @@ static int neo_init_hw(struct fb_info *info) case FB_ACCEL_NEOMAGIC_NM2070: case FB_ACCEL_NEOMAGIC_NM2090: case FB_ACCEL_NEOMAGIC_NM2093: - CursorMem = 2048; CursorOff = 0x100; break; case FB_ACCEL_NEOMAGIC_NM2097: case FB_ACCEL_NEOMAGIC_NM2160: - CursorMem = 1024; CursorOff = 0x100; break; case FB_ACCEL_NEOMAGIC_NM2200: case FB_ACCEL_NEOMAGIC_NM2230: case FB_ACCEL_NEOMAGIC_NM2360: case FB_ACCEL_NEOMAGIC_NM2380: - CursorMem = 1024; CursorOff = 0x1000; par->neo2200 = (Neo2200 __iomem *) par->mmio_vbase; break; } /* - info->sprite.size = CursorMem; info->sprite.scan_align = 1; info->sprite.buf_align = 1; info->sprite.flags = FB_PIXMAP_IO;