From patchwork Wed Sep 21 02:28:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 76650 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1793894qgf; Tue, 20 Sep 2016 19:29:34 -0700 (PDT) X-Received: by 10.28.87.212 with SMTP id l203mr725311wmb.71.1474424974008; Tue, 20 Sep 2016 19:29:34 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id g4si22679086wma.20.2016.09.20.19.29.33; Tue, 20 Sep 2016 19:29:34 -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 724C4B3832; Wed, 21 Sep 2016 04:28:33 +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 cI2ykc7TdTWu; Wed, 21 Sep 2016 04:28:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03920B3827; Wed, 21 Sep 2016 04:28:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 97F11B383D for ; Wed, 21 Sep 2016 04:28:11 +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 5JUpV-5cY3Rd for ; Wed, 21 Sep 2016 04:28:11 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 IN_IX_MANITU=4.35 (only DNSBL check requested) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by theia.denx.de (Postfix) with ESMTPS id 04AEAB385B for ; Wed, 21 Sep 2016 04:27:49 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id u8L2Qubb012826; Wed, 21 Sep 2016 11:27:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u8L2Qubb012826 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1474424831; bh=ajjVwmWDtfdKU/csFEuHE88TidbHDIg/uMj82ImFWko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a3jezoWb9U/rlf/Zi3P8vtp6Gi4zpGg3hRhxJuibnQp1+CEGe0cmMtiIoA4CPSaYV jAkfLtqHKOiUOr3TIoksWFVj9v6x5vez1xLA7BKrbldxDp+SgwVP/KHNQIxN7WvX1c j9v4fgldECbRbzbLeX/kjbr8amkwatZF2xz3CjAr07bL0id1B+8pfSasLAlSDlEqd0 knPFDmu1zN/BFpKQ29YLUtG1eVbQMk5qMSoAW96l5I4eIyeTIYfseiY7MrtdV8aRWh GbMdDzHxWGSrIMuD1J8iqqizFqoANw+DG0SsY1wFDttcALTRWxtdCsMm2NfrTUGMZc LrT12JXB5Hmhg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 21 Sep 2016 11:28:59 +0900 Message-Id: <1474424946-16085-8-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474424946-16085-1-git-send-email-yamada.masahiro@socionext.com> References: <1474424946-16085-1-git-send-email-yamada.masahiro@socionext.com> Cc: Marek Vasut , Tom Rini , Alexey Brodkin Subject: [U-Boot] [RESEND PATCH 07/10] 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))