From: Vignesh R Date: Fri, 3 Jul 2015 16:46:11 +0530 Subject: [U-Boot] [PATCH 09/11] dma: ti-edma3: Add BIT(x) macro definition In-Reply-To: <1435922173-6531-1-git-send-email-vigneshr@ti.com> References: <1435922173-6531-1-git-send-email-vigneshr@ti.com> Message-ID: <1435922173-6531-10-git-send-email-vigneshr@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add BIT(x) macro definition to edma3 driver file. Fixes following compiler warning when CONFIG_TI_EDMA3 is enabled for am437x and dra7x: drivers/dma/ti-edma3.c: In function ?edma3_set_dest?: drivers/dma/ti-edma3.c:92:10: warning: implicit declaration of function ?BIT? [-Wimplicit-function-declaration] Signed-off-by: Vignesh R --- drivers/dma/ti-edma3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/ti-edma3.c b/drivers/dma/ti-edma3.c index 8184ded9fa81..638cf525a278 100644 --- a/drivers/dma/ti-edma3.c +++ b/drivers/dma/ti-edma3.c @@ -13,6 +13,8 @@ #include #include +#define BIT(x) (1 << (x)) + #define EDMA3_SL_BASE(slot) (0x4000 + ((slot) << 5)) #define EDMA3_SL_MAX_NUM 512 #define EDMA3_SLOPT_FIFO_WIDTH_MASK (0x7 << 8) -- 2.4.5