From patchwork Wed Jul 23 08:50:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 34122 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E3A382061E for ; Wed, 23 Jul 2014 08:50:16 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id v1sf3269075yhn.4 for ; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Rwqv95ipugmYnMQ0rKJB9IqyOWE9997EMW5ezSSLPm0=; b=Qbxa4Aa9JIOI0zwbQsad4FQb2hATpZ7CpUI7fY5YovJsAGBibV/8DndWhy9mHHo/Av BuBYVXxJLx7SXeZrlNWZ27RkqfOJ36Znh0xTq60t6+wb/IsiUH5uhfj8Z00TdCRM2qPh Uco9z1mFaILQeX4Gies4R3Uo3qL67gHcMLE+grDC1IbnhS/8nVBgcUOgANQ5xKS5vdOX 4NIQjFgYw+lW/7A2fLEl96ftYIXuenM6BYtlq8FLH2RH/wfARrNkHsKU1Q4IKsZu8Bqp QswY57WmBOqqHAFTHn7KvEEbvVGjKwloGTpt8u8Eag6Vns9iLpEEX2T2JEG4KcVApIx5 dFng== X-Gm-Message-State: ALoCoQnEN3+LNSaoMA5iR5ziSHWpLYOz39UChMQOaRUwzcQ/4aSvrH99htPmzHmGMjBuTeTkQ6rd X-Received: by 10.224.127.6 with SMTP id e6mr18816369qas.3.1406105416606; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.1 with SMTP id p1ls233044qga.97.gmail; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) X-Received: by 10.52.117.209 with SMTP id kg17mr40734203vdb.28.1406105416472; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id rz5si1284597vdc.87.2014.07.23.01.50.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jul 2014 01:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so1578143vcb.18 for ; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr10575144vdb.27.1406105416408; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp261614vcb; Wed, 23 Jul 2014 01:50:16 -0700 (PDT) X-Received: by 10.68.222.136 with SMTP id qm8mr29888142pbc.92.1406105415678; Wed, 23 Jul 2014 01:50:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xy5si1782779pbc.57.2014.07.23.01.50.15 for ; Wed, 23 Jul 2014 01:50:15 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757015AbaGWIuO (ORCPT + 1 other); Wed, 23 Jul 2014 04:50:14 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:36402 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756986AbaGWIuN (ORCPT ); Wed, 23 Jul 2014 04:50:13 -0400 Received: by mail-wg0-f44.google.com with SMTP id m15so808081wgh.15 for ; Wed, 23 Jul 2014 01:50:11 -0700 (PDT) X-Received: by 10.194.2.132 with SMTP id 4mr42332939wju.49.1406105410687; Wed, 23 Jul 2014 01:50:10 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id rw4sm4311698wjb.44.2014.07.23.01.50.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jul 2014 01:50:09 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij , Abdoulaye Berthe Subject: [PATCH] gpio: drop retval check enforcing from gpiochip_remove() Date: Wed, 23 Jul 2014 10:50:04 +0200 Message-Id: <1406105404-20110-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As we start to decomission the return value from gpiochip_remove() the compilers emit warnings due to the function being tagged __must_check. So drop this until we remove the return value altogether. Cc: Abdoulaye Berthe Suggested-by: Stephen Rothwell Signed-off-by: Linus Walleij --- include/linux/gpio/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 573e4f3243d0..ca3024554a2d 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -141,7 +141,7 @@ extern const char *gpiochip_is_requested(struct gpio_chip *chip, /* add/remove chips */ extern int gpiochip_add(struct gpio_chip *chip); -extern int __must_check gpiochip_remove(struct gpio_chip *chip); +extern int gpiochip_remove(struct gpio_chip *chip); extern struct gpio_chip *gpiochip_find(void *data, int (*match)(struct gpio_chip *chip, void *data));