Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2342141yba; Thu, 25 Apr 2019 14:56:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyeZ4N03CaUOFGm5WqXn8GvG9S6ar7un/aHR3dmJjKr0+RzJ3eu7B1glqO2z/RZ2X+9/7W X-Received: by 2002:a63:c10d:: with SMTP id w13mr39350107pgf.311.1556229415792; Thu, 25 Apr 2019 14:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556229415; cv=none; d=google.com; s=arc-20160816; b=unUYjAJYKacYFCJVFI8Xhtw0zcDNQuxzaQHJTAy2HLCwbhU6Q9fYDvQuP1kMiagI9+ spSKOF0MW3M3J/4nbBeHZaaM0UgOxM2FHVKk9AXT+tQAaSaSIaEB64wxtOaKZj7QL+UW r364jT9NA/zj/Wyn/zf7EJIkk3KIGnRS3xrRdjd5Y8TPKrs66zwheRbXnxpl71dlgLOS 8rw74o6qJG2yUU1LaYyYiFKZYLevsV+yxXZCSr0TqKfQ0eqHo5E36kIahNXWgNk0oixL 2aJ4JKCna2wXXa1f+HJik7oiWcrABhh1KKkdIaDDJ0jSDVyDgd697jqpndgBoKXEvqEy APog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=lYPpgNkuYL/UXj4RzVEQzfR0g2A/fW/hCvtNkvFYhqw=; b=vio2mcvqJJzWmvZjyfs9GACJqjVW9ZmDKQ3x2btVXseA4q/DL64bohxS1P7dr7okbm oLW0QEa5T2yLjnJ8rUfuRNhba/tmInKAjdp3IlZQImVa8WNjP24NdvcIOb2fqfzqGgcI kSnllWzMYWph+JUAqE/fzO55lyBqBbiQG+18vl/vcIZgG8+5/ZB6rmTR6aBL7ufphFMb mQW3dC6UhGVj+qVFPzIE4aGjtL6vX/2bP4fn3MJb9XL+yBRTH7PT6maVZJnUqqGzN8MT F7FbwaofqPlFwOVeDEC1YnNDyPUlVRcfTGd7dg6BOtxRSFw8yWwkhh4nb59+YG8enpjl fhcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=J4W5YP5U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si21639082pgq.198.2019.04.25.14.56.39; Thu, 25 Apr 2019 14:56:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=J4W5YP5U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387685AbfDYUXv (ORCPT + 99 others); Thu, 25 Apr 2019 16:23:51 -0400 Received: from mail-vk1-f201.google.com ([209.85.221.201]:38147 "EHLO mail-vk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfDYUXv (ORCPT ); Thu, 25 Apr 2019 16:23:51 -0400 Received: by mail-vk1-f201.google.com with SMTP id u20so501768vku.5 for ; Thu, 25 Apr 2019 13:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=lYPpgNkuYL/UXj4RzVEQzfR0g2A/fW/hCvtNkvFYhqw=; b=J4W5YP5UnwpMpQ7LVf49jdjMSKa9+TuqygYeYA8m199Sy706j9bCaFoaW6REUEL60B tZuOIxsYM2/aCpfr2t5gMx7YhggQxwv2blHrirMWWiDu50yONbFztn48AtU2UODSPGVS vPbjNf4bJr8Cn0z79ZRoac5OP8wZ80a6udaUKfLKCChSr3LMAPeVRle3y29B6ZXK9Gr5 5J55EauRa13oECD0SgvdFqtAQtGvL1eLkeFN/0QZW2eHguVFV7NWNiM1WY9n5O/8fBaR D8iKa64i3vNymuRFQqGljC5MgakHoHvJJhRLo6HoNTBrT57fsT1LfiiLh44S/olVrCK8 /1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=lYPpgNkuYL/UXj4RzVEQzfR0g2A/fW/hCvtNkvFYhqw=; b=QFcn76BbGzAuuzVeZobMEyjc8oQwezJaBgT3C7Dz+NVHwcRuFQK1uuU0ON5QOC9OGQ zO7WpOXzhfgm3M/4EW2p2RI4KOS8g4HavvDH3JQ4S2tyA5dXYOEB0UpasghqemSuQqwd 2rpaznNtvOplaOKcharZ1qqMECZEKlGOYp/q9O36P3nIKCemQ7IfcLuFP5DgKhKGsheO iisH1S5DEaa3U4J8jkEWFZOiTGz2RXT57QAngj2NZ/+pkr7WPzaxT3YWpRo2iQ8gsxet IefmeKav2Tji3Loyeq8qMjoep+9KhxX6Iw5nnBDqkqRe5Sjwrq/GedWLz6ERpMBZNAqp swFw== X-Gm-Message-State: APjAAAVixTNnIqM5WGqINHXrTu4Px5u47l4lS49FCWSUgqnPkTFfVarT /2x2/H7/AQxURCQFoEDQj1dpitv4T5Nq X-Received: by 2002:a67:f30f:: with SMTP id p15mr22276944vsf.158.1556223830537; Thu, 25 Apr 2019 13:23:50 -0700 (PDT) Date: Thu, 25 Apr 2019 13:23:47 -0700 Message-Id: <20190425202347.83880-1-venture@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH] fixup! drivers/misc: Add Aspeed P2A control driver From: Patrick Venture To: venture@google.com, arnd@arndb.de, gregkh@linuxfoundation.org, joel@jms.id.au, andrew@aj.id.au Cc: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, arm@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixup compiler warnings: - 108 warning: ISO C90 forbids mixed declarations and code - 264 warning: unused variable 'value' - 335 warning: unused variable 'res' Signed-off-by: Patrick Venture --- drivers/misc/aspeed-p2a-ctrl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/aspeed-p2a-ctrl.c b/drivers/misc/aspeed-p2a-ctrl.c index c0521b2ffc6a..9736821972ef 100644 --- a/drivers/misc/aspeed-p2a-ctrl.c +++ b/drivers/misc/aspeed-p2a-ctrl.c @@ -99,13 +99,14 @@ static void aspeed_p2a_disable_bridge(struct aspeed_p2a_ctrl *p2a_ctrl) static int aspeed_p2a_mmap(struct file *file, struct vm_area_struct *vma) { + unsigned long vsize; struct aspeed_p2a_user *priv = file->private_data; struct aspeed_p2a_ctrl *ctrl = priv->parent; if (ctrl->mem_base == 0 && ctrl->mem_size == 0) return -EINVAL; - unsigned long vsize = vma->vm_end - vma->vm_start; + vsize = vma->vm_end - vma->vm_start; pgprot_t prot = vma->vm_page_prot; if (vma->vm_pgoff + vsize > ctrl->mem_base + ctrl->mem_size) @@ -261,7 +262,6 @@ static int aspeed_p2a_open(struct inode *inode, struct file *file) static int aspeed_p2a_release(struct inode *inode, struct file *file) { int i; - u32 value; u32 bits = 0; bool open_regions = false; struct aspeed_p2a_user *priv = file->private_data; @@ -332,7 +332,7 @@ static int aspeed_p2a_ctrl_probe(struct platform_device *pdev) { struct aspeed_p2a_ctrl *misc_ctrl; struct device *dev; - struct resource *res, resm; + struct resource resm; struct device_node *node; int rc = 0; -- 2.21.0.593.g511ec345e18-goog