From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: Re: [PATCH v4 3/4] dtc/libfdt: introduce fdt types for annotation by endian checkers Date: Sun, 06 Jan 2013 15:52:36 -0600 Message-ID: References: <1352941199-19393-1-git-send-email-kim.phillips@freescale.com> <1352941199-19393-3-git-send-email-kim.phillips@freescale.com> <20121115044340.GI32290@truffula.fritz.box> <20121114231204.8f19082c7acc1cea2a2d794f@freescale.com> <20121119023039.GK5735@truffula.fritz.box> <20121128173301.2b52b22a39fe6c3ce5a088fb@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20121128173301.2b52b22a39fe6c3ce5a088fb-KZfg59tc24xl57MIdRCFDg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Kim Phillips Cc: u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Jerry Van Baren List-Id: devicetree@vger.kernel.org > Projects such as linux and u-boot run sparse on libfdt. libfdt > contains the notion of endianness via usage of endian conversion > functions such as fdt32_to_cpu. As such, in order to pass endian > checks, libfdt has to annotate its fdt variables such that sparse > can warn when mixing bitwise and regular integers. This patch adds > these new fdtXX_t types and, ifdef __CHECKER__ (a symbol sparse > defines), includes the bitwise annotation. > > Signed-off-by: Kim Phillips Applied. Thanks, jdl