From patchwork Sat Nov 25 05:08:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 841203 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ykLgr39BNz9s7F for ; Sat, 25 Nov 2017 16:08:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id A5874C21E41; Sat, 25 Nov 2017 05:08:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 69582C21D76; Sat, 25 Nov 2017 05:08:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4F384C21D76; Sat, 25 Nov 2017 05:08:42 +0000 (UTC) Received: from wens.csie.org (mirror2.csie.ntu.edu.tw [140.112.30.76]) by lists.denx.de (Postfix) with ESMTPS id 3DD5CC21D64 for ; Sat, 25 Nov 2017 05:08:41 +0000 (UTC) Received: by wens.csie.org (Postfix, from userid 1000) id 888545FC7D; Sat, 25 Nov 2017 13:08:36 +0800 (CST) From: Chen-Yu Tsai To: u-boot@lists.denx.de Date: Sat, 25 Nov 2017 13:08:28 +0800 Message-Id: <20171125050832.11803-2-wens@csie.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171125050832.11803-1-wens@csie.org> References: <20171125050832.11803-1-wens@csie.org> Cc: Joe Hershberger , Maxime Ripard Subject: [U-Boot] [PATCH v2 1/5] bitfield: Include linux/bitops.h for ffs() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" bitfield_shift() uses the ffs() function, which is provided by bitops.h. Explicitly include this header. Signed-off-by: Chen-Yu Tsai Reviewed-by: Joe Hershberger --- include/bitfield.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/bitfield.h b/include/bitfield.h index a59f3c279aad..adfae49de580 100644 --- a/include/bitfield.h +++ b/include/bitfield.h @@ -37,6 +37,7 @@ * tables which describe all bitfields in all registers. */ +#include #include /* Produces a mask of set bits covering a range of a uint value */