From patchwork Thu Mar 31 07:14:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 64739 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp3008495lbc; Thu, 31 Mar 2016 00:14:21 -0700 (PDT) X-Received: by 10.66.66.46 with SMTP id c14mr19734007pat.79.1459408461357; Thu, 31 Mar 2016 00:14:21 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n79si12161740pfi.149.2016.03.31.00.14.21; Thu, 31 Mar 2016 00:14:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; 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 linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753471AbcCaHOU (ORCPT + 4 others); Thu, 31 Mar 2016 03:14:20 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:35127 "EHLO mail-lb0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751459AbcCaHOT (ORCPT ); Thu, 31 Mar 2016 03:14:19 -0400 Received: by mail-lb0-f169.google.com with SMTP id bc4so46602710lbc.2 for ; Thu, 31 Mar 2016 00:14:18 -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=kyQWIwASzgGDiB/v1VQvaTfp/ggl86ZO4QecnjrLdtY=; b=W2g3CJS6sZkvxT3vJczdqM0zbDc/fsw7ryoZ9vYkOK7ExdA2w8XKyH6TmWGIcuTdUB pZcceFfESl3GuxlIqavQ5gUs/Lo+m5WohKxYQMyKqtJN6Y8IyuPSOI+sAtMJx1xrWpAO Q0+JqI6bTqwhAqhlLwvE7f16q4Efds3+XobGU= 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=kyQWIwASzgGDiB/v1VQvaTfp/ggl86ZO4QecnjrLdtY=; b=ZJ5gm2nLtqu32h+wW/GxoQVko7SLznwbTJcdYC9pg6/d/As+QrWEfvFZnn/qCcrXE7 eFctyq6GcLnnkDCSwJ7B2IssgGWIPsIr2JRFWSPZTYXDfuHakPnuwJf55v4RmrfWfYvm BgOxfhbB210NTi0uR74SejtTu3uNP6Od3Fa3p+CXg7dSz9FVM2LvUxz6o8XFO9rCewPM CkWxJ4P+MoTqRxNjzI2PYRj9+BmRA+hMeJNYqbS0TFudNTqEiRgr+4xB2z+u45hDcAHF fqioiowkaKdKlFH5jAwU84jcZl/voObK8GGVTHk/lHalLUv7ZX2WZTS1VpdcebPVlbV1 Eyuw== X-Gm-Message-State: AD7BkJKtTJiO/I0O91d11SVycqxn0LItgrqUARVt0IRkeXF3hfkKFU4y8oHjYahvoDRX3i85 X-Received: by 10.112.26.145 with SMTP id l17mr6023077lbg.106.1459408458035; Thu, 31 Mar 2016 00:14:18 -0700 (PDT) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id e141sm1169472lfe.18.2016.03.31.00.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Mar 2016 00:14:17 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org, Alexandre Courbot Cc: Linus Walleij , Anatolij Gustschin , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc: ppc4xx: drop unused variable Date: Thu, 31 Mar 2016 09:14:12 +0200 Message-Id: <1459408452-3483-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org commit 0d36fe65f58391712e11a6621075f373216e5f00 "powerpc: ppc4xx: use gpiochip data pointer" made the mm_gc local variable in ppc4xx_gpio_set() redundant, and when GCC treats warnings as errors this happens: arch/powerpc/sysdev/ppc4xx_gpio.c: In function 'ppc4xx_gpio_set': arch/powerpc/sysdev/ppc4xx_gpio.c:93:26: error: unused variable 'mm_gc' [-Werror=unused-variable] struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); ^ cc1: all warnings being treated as errors Reported-by: kbuild test robot Cc: Anatolij Gustschin Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Linus Walleij --- I've applied this to the GPIO tree where the offending commit is now merged. --- arch/powerpc/sysdev/ppc4xx_gpio.c | 1 - 1 file changed, 1 deletion(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/powerpc/sysdev/ppc4xx_gpio.c b/arch/powerpc/sysdev/ppc4xx_gpio.c index 4ab83cd04785..5382d04dd872 100644 --- a/arch/powerpc/sysdev/ppc4xx_gpio.c +++ b/arch/powerpc/sysdev/ppc4xx_gpio.c @@ -90,7 +90,6 @@ __ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) static void ppc4xx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) { - struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); struct ppc4xx_gpio_chip *chip = gpiochip_get_data(gc); unsigned long flags;