From patchwork Wed Sep 21 02:01:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 76645 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1783906qgf; Tue, 20 Sep 2016 19:01:20 -0700 (PDT) X-Received: by 10.28.109.156 with SMTP id b28mr761321wmi.68.1474423279943; Tue, 20 Sep 2016 19:01:19 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id l130si27257119wmb.28.2016.09.20.19.01.19; Tue, 20 Sep 2016 19:01:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DCF21A7579; Wed, 21 Sep 2016 04:00:53 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OvzEabV7ucYJ; Wed, 21 Sep 2016 04:00:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E9958B3813; Wed, 21 Sep 2016 04:00:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B24D7A7541 for ; Wed, 21 Sep 2016 04:00:18 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vX5oLVxKYy1D for ; Wed, 21 Sep 2016 04:00:18 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-09.nifty.com (conuserg-09.nifty.com [210.131.2.76]) by theia.denx.de (Postfix) with ESMTPS id 12050A7533 for ; Wed, 21 Sep 2016 04:00:12 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id u8L1xKJD021633; Wed, 21 Sep 2016 10:59:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u8L1xKJD021633 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1474423174; bh=ajjVwmWDtfdKU/csFEuHE88TidbHDIg/uMj82ImFWko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1ExgiKgLzon448/MbULPOQXjk6+S58Nue9RGDZFaPOAnYmNWYQZCQmlgIU2E8i9nJ fk5YCEEU1PwCvJ4pOiuiqA41V3gZV++5KI9cuoO9BaweflrkqmbcJTDdPS/oG/HtLU gT2UwNXspTzt00Y6sbc62T35MhkzVq6lop+2d5s1jyFP+cDgdNiEfP6iUdKHFBlS1J fsSsdPG75h9i27Ml1dkIAThUu/6pkRKWEOh/cQzDZve1vJn0RQ3bz6wI+epk/qJFYX ocvB3lzKuP3cew1vzQBRduzUGJmTp7KTWJIg3n/nHgWwMOs7u8c73nsl/jDQUA72dD 7UgcwkZSye6tw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 21 Sep 2016 11:01:09 +0900 Message-Id: <1474423285-14403-6-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474423285-14403-1-git-send-email-yamada.masahiro@socionext.com> References: <1474423285-14403-1-git-send-email-yamada.masahiro@socionext.com> Cc: Marek Vasut , Tom Rini , Alexey Brodkin Subject: [U-Boot] [PATCH 5/8] Move ENOTSUPP defines to include/linux/errno.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Collect a couple of duplicated defines into a single place. Signed-off-by: Masahiro Yamada --- drivers/usb/gadget/rndis.c | 2 -- include/linux/compat.h | 2 -- include/linux/errno.h | 2 ++ include/usb/lin_gadget_compat.h | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index 42510a0..844a0c7 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c @@ -41,8 +41,6 @@ #define ETH_ZLEN 60 /* Min. octets in frame sans FCS */ #define ETH_DATA_LEN 1500 /* Max. octets in payload */ #define ETH_FRAME_LEN PKTSIZE_ALIGN /* Max. octets in frame sans FCS */ -#define ENOTSUPP 524 /* Operation is not supported */ - /* * The driver for your USB chip needs to support ep0 OUT to work with diff --git a/include/linux/compat.h b/include/linux/compat.h index 7236b8d..c7fd649 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -151,8 +151,6 @@ typedef unsigned long sector_t; typedef unsigned long blkcnt_t; #endif -#define ENOTSUPP 524 /* Operation is not supported */ - /* module */ #define THIS_MODULE 0 #define try_module_get(...) 1 diff --git a/include/linux/errno.h b/include/linux/errno.h index 1a7a0b9..f3461b4 100644 --- a/include/linux/errno.h +++ b/include/linux/errno.h @@ -128,4 +128,6 @@ #define ENOMEDIUM 123 /* No medium found */ #define EMEDIUMTYPE 124 /* Wrong medium type */ +#define ENOTSUPP 524 /* Operation is not supported */ + #endif diff --git a/include/usb/lin_gadget_compat.h b/include/usb/lin_gadget_compat.h index 29fb166..4a01585 100644 --- a/include/usb/lin_gadget_compat.h +++ b/include/usb/lin_gadget_compat.h @@ -13,8 +13,6 @@ #include /* common */ -#define ENOTSUPP 524 /* Operation is not supported */ - #define BITS_PER_BYTE 8 #define BITS_TO_LONGS(nr) \ DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))