1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-28 00:11:32 +00:00

test: Remove <common.h> and add needed includes

Remove <common.h> from all "test/" files and when needed add
missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2024-04-27 08:10:58 -06:00
parent 702841b56e
commit 752ed08675
203 changed files with 24 additions and 196 deletions

View file

@ -7,6 +7,8 @@
#ifndef _ADC_H_
#define _ADC_H_
#include <stdbool.h>
/* ADC_CHANNEL() - ADC channel bit mask, to select only required channels */
#define ADC_CHANNEL(x) (1 << x)

View file

@ -7,6 +7,8 @@
#ifndef __AUDIO_CODEC_H__
#define __AUDIO_CODEC_H__
#include <linux/types.h>
struct udevice;
/*

View file

@ -7,6 +7,8 @@
#ifndef _AXI_H_
#define _AXI_H_
#include <linux/types.h>
struct udevice;
/**

View file

@ -7,6 +7,8 @@
#ifndef __bootmeth_h
#define __bootmeth_h
#include <linux/bitops.h>
struct blk_desc;
struct bootflow;
struct bootflow_iter;

View file

@ -10,6 +10,8 @@
#define __bootstd_h
#include <dm/ofnode_decl.h>
#include <linux/list.h>
#include <linux/types.h>
struct udevice;

View file

@ -7,12 +7,15 @@
#ifndef __CEDIT_H
#define __CEDIT_H
#include <stdbool.h>
#include <dm/ofnode_decl.h>
#include <linux/types.h>
struct abuf;
struct expo;
struct scene;
struct video_priv;
struct udevice;
enum {
/* size increment for writing FDT */

View file

@ -6,6 +6,8 @@
#ifndef __DM_TEST_H
#define __DM_TEST_H
#include <linux/types.h>
struct udevice;
/**

View file

@ -3,7 +3,6 @@
* Copyright (c) 2018, Google Inc. All rights reserved.
*/
#include <common.h>
#include <bloblist.h>
#include <log.h>
#include <mapmem.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootstd.h>
#include <dm.h>
#include <bootdev.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootdev.h>
#include <bootflow.h>
#include <bootmeth.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootmeth.h>
#include <bootstd.h>
#include <dm.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootdev.h>
#include <bootstd.h>
#include <dm.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <cedit.h>
#include <env.h>
#include <expo.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <expo.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <image.h>
#include <test/suites.h>
#include <test/ut.h>

View file

@ -6,7 +6,6 @@
* Written by Eddie James <eajames@linux.ibm.com>
*/
#include <common.h>
#include <bootm.h>
#include <malloc.h>
#include <test/suites.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm/ofnode.h>
#include <linux/libfdt.h>
#include <test/test.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootmeth.h>
#include <dm.h>
#include <image.h>

View file

@ -5,7 +5,6 @@
* Copyright 2020 Google LLC
*/
#include <common.h>
#include <bootm.h>
#include <asm/global_data.h>
#include <test/suites.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
*/
#include <common.h>
#include <console.h>
#include <test/suites.h>
#include <test/ut.h>

View file

@ -8,7 +8,6 @@
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
#include <common.h>
#include <string.h>
#include <asm/sandbox_arm_ffa.h>
#include <dm/test.h>

View file

@ -5,7 +5,6 @@
* Copyright 2023 Marek Vasut <marek.vasut+renesas@mailbox.org>
*/
#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <asm/global_data.h>

View file

@ -5,7 +5,6 @@
* Copyright 2022 Marek Vasut <marex@denx.de>
*/
#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <asm/global_data.h>

View file

@ -5,7 +5,6 @@
* Copyright 2022 Google LLC
*/
#include <common.h>
#include <console.h>
#include <fdt_support.h>
#include <mapmem.h>

View file

@ -5,7 +5,6 @@
* Copyright 2022 Google LLC
*/
#include <common.h>
#include <console.h>
#include <dm.h>
#include <video_console.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <cli.h>
#include <command.h>
#include <test/lib.h>

View file

@ -9,7 +9,6 @@
* Rui Miguel Silva <rui.silva@linaro.org>
*/
#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <asm/global_data.h>

View file

@ -5,7 +5,6 @@
* Copyright 2020 Google LLC
*/
#include <common.h>
#include <command.h>
#include <test/suites.h>
#include <test/test.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <dm/test.h>

View file

@ -7,7 +7,6 @@
* Written by Stephen Carlson <stcarlso@linux.microsoft.com>
*/
#include <common.h>
#include <console.h>
#include <test/suites.h>
#include <test/ut.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2021, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/test.h>

View file

@ -3,7 +3,6 @@
* Tests for read and write commands
*/
#include <common.h>
#include <dm/test.h>
#include <mapmem.h>
#include <part.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2021 Linus Walleij <linus.walleij@linaro.org>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <test/suites.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <console.h>
#include <mapmem.h>
#include <dm/test.h>

View file

@ -5,7 +5,6 @@
* Copyright (C) 2022 Sartura Ltd.
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <dm/test.h>

View file

@ -5,7 +5,6 @@
* Copyright 2020, Heinrich Schuchadt <xypron.glpk@gmx.de>
*/
#include <common.h>
#include <command.h>
#include <asm/global_data.h>
#include <display_options.h>

View file

@ -5,7 +5,6 @@
* Copyright 2022, Samuel Dionne-Riel <samuel@dionne-riel.com>
*/
#include <common.h>
#include <asm/global_data.h>
#include <test/lib.h>
#include <test/ut.h>

View file

@ -6,7 +6,6 @@
* Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <env.h>

View file

@ -4,9 +4,9 @@
* Joe Hershberger, National Instruments, joe.hershberger@ni.com
*/
#include <common.h>
#include <command.h>
#include <console.h>
#include <vsprintf.h>
#include <test/suites.h>
#include <test/test.h>
#include <test/ut.h>

View file

@ -5,7 +5,6 @@
#define DEBUG
#include <common.h>
#include <command.h>
#include <env.h>
#include <log.h>

View file

@ -6,7 +6,6 @@
* Unit tests for common functions
*/
#include <common.h>
#include <command.h>
#include <test/common.h>
#include <test/suites.h>

View file

@ -3,8 +3,8 @@
* Copyright 2023 Google LLC
*/
#include <common.h>
#include <cli.h>
#include <time.h>
#include <test/common.h>
#include <test/test.h>
#include <test/ut.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2022 Stefan Roese <sr@denx.de>
*/
#include <common.h>
#include <cyclic.h>
#include <dm.h>
#include <test/common.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <event.h>
#include <test/common.h>

View file

@ -6,7 +6,6 @@
*/
#include <autoboot.h>
#include <common.h>
#include <test/common.h>
#include <test/test.h>
#include <test/ut.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2013, The Chromium Authors
*/
#include <common.h>
#include <abuf.h>
#include <bootm.h>
#include <command.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <console.h>
#include <dm.h>
#include <malloc.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <uuid.h>
#include <acpi/acpigen.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <irq.h>
#include <malloc.h>

View file

@ -6,7 +6,6 @@
* Przemyslaw Marczak <p.marczak@samsung.com>
*/
#include <common.h>
#include <adc.h>
#include <dm.h>
#include <dm/root.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <audio_codec.h>
#include <dm.h>
#include <dm/test.h>

View file

@ -4,7 +4,6 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
#include <common.h>
#include <axi.h>
#include <dm.h>
#include <log.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015 Google, Inc
*/
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <part.h>

View file

@ -4,7 +4,6 @@
* Author: Tobias Waldekranz <tobias@waldekranz.com>
*/
#include <common.h>
#include <blk.h>
#include <blkmap.h>
#include <dm.h>

View file

@ -3,7 +3,6 @@
* (C) 2018 Theobroma Systems Design und Consulting GmbH
*/
#include <common.h>
#include <dm.h>
#include <bootcount.h>
#include <log.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2014 Google, Inc
*/
#include <common.h>
#ifdef CONFIG_SANDBOX
#include <log.h>
#include <os.h>

View file

@ -5,7 +5,6 @@
* Based on led.c
*/
#include <common.h>
#include <dm.h>
#include <adc.h>
#include <button.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2019 Intel Corporation <www.intel.com>
*/
#include <common.h>
#include <dm.h>
#include <dm/test.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015 Google, Inc
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>

View file

@ -4,7 +4,6 @@
* Lukasz Majewski, DENX Software Engineering, lukma@denx.de
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <asm/clk.h>

View file

@ -5,7 +5,6 @@
* Copyright (c) 2013 Google, Inc
*/
#include <common.h>
#include <errno.h>
#include <dm.h>
#include <fdtdec.h>

View file

@ -4,7 +4,6 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/test.h>

View file

@ -3,7 +3,6 @@
* Copyright 2021 Google LLC
*/
#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <asm/test.h>

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <cros_ec.h>
#include <dm.h>
#include <pwm.h>

View file

@ -5,7 +5,6 @@
* Copyright 2019 Google LLC
*/
#include <common.h>
#include <errno.h>
#include <dm.h>
#include <log.h>

View file

@ -6,7 +6,6 @@
* Grygorii Strashko <grygorii.strashko@ti.com>
*/
#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/test.h>

View file

@ -4,7 +4,6 @@
* Author(s): Yannick Fertre <yannick.fertre@st.com> for STMicroelectronics.
*/
#include <common.h>
#include <dm.h>
#include <dsi_host.h>
#include <asm/state.h>

View file

@ -5,7 +5,6 @@
* Copyright 2021 Google LLC
*/
#include <common.h>
#include <dm.h>
#include <asm/test.h>
#include <dm/test.h>

View file

@ -6,7 +6,6 @@
* Joe Hershberger <joe.hershberger@ni.com>
*/
#include <common.h>
#include <dm.h>
#include <env.h>
#include <fdtdec.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015 Google, Inc
*/
#include <common.h>
#include <dm.h>
#include <fastboot.h>
#include <fb_mmc.h>

View file

@ -3,7 +3,6 @@
* Copyright 2020 NXP
*/
#include <common.h>
#include <dm.h>
#include <asm/global_data.h>
#include <dm/of_extra.h>

View file

@ -8,7 +8,6 @@
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
#include <common.h>
#include <console.h>
#include <dm.h>
#include <asm/sandbox_arm_ffa.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2018 Xilinx, Inc.
*/
#include <common.h>
#include <dm.h>
#include <syscon.h>
#include <asm/test.h>

View file

@ -5,7 +5,6 @@
*/
#include <blk.h>
#include <common.h>
#include <dm.h>
#include <fwu.h>
#include <fwu_mdata.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2013 Google, Inc
*/
#include <common.h>
#include <fdtdec.h>
#include <dm.h>
#include <log.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <blk.h>
#include <dm.h>
#include <fs.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <dm.h>
#include <hwspinlock.h>
#include <asm/state.h>

View file

@ -5,7 +5,6 @@
* Note: Test coverage does not include 10-bit addressing
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <i2c.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <i2s.h>
#include <asm/test.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2021 Mark Kettenis <kettenis@openbsd.org>
*/
#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <dm/uclass-internal.h>

View file

@ -5,7 +5,6 @@
* Copyright 2019 Google LLC
*/
#include <common.h>
#include <dm.h>
#include <irq.h>
#include <acpi/acpi_device.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2020 Sean Anderson <seanga2@gmail.com>
*/
#include <common.h>
/* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */
#include <div64.h>
#include <dm/test.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015 Google, Inc
*/
#include <common.h>
#include <dm.h>
#include <led.h>
#include <asm/gpio.h>

View file

@ -3,7 +3,6 @@
* Copyright (c) 2016, NVIDIA CORPORATION.
*/
#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <dm/test.h>

View file

@ -4,7 +4,6 @@
* Alex Marginean, NXP
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <miiphy.h>

View file

@ -4,7 +4,6 @@
* Alex Marginean, NXP
*/
#include <common.h>
#include <dm.h>
#include <miiphy.h>
#include <misc.h>

View file

@ -4,7 +4,6 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <misc.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2015 Google, Inc
*/
#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <part.h>

View file

@ -3,7 +3,6 @@
* Copyright (C) 2020 Texas Instruments Inc.
* Pratyush Yadav <p.yadav@ti.com>
*/
#include <common.h>
#include <dm.h>
#include <mux.h>
#include <mux-internal.h>
@ -13,6 +12,7 @@
#include <test/ut.h>
#include <console.h>
#include <rand.h>
#include <time.h>
#define BUF_SIZE 256

View file

@ -3,7 +3,6 @@
* Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
* Pratyush Yadav <p.yadav@ti.com>
*/
#include <common.h>
#include <dm.h>
#include <mux.h>
#include <mux-internal.h>

View file

@ -4,7 +4,6 @@
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
#include <common.h>
#include <dm.h>
#include <mux.h>
#include <regmap.h>

View file

@ -6,7 +6,6 @@
* Jean-Jacques Hiblot <jjhiblot@ti.com>
*/
#include <common.h>
#include <dm.h>
#include <dm/ofnode.h>
#include <dm/lists.h>

View file

@ -8,7 +8,6 @@
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
*/
#include <common.h>
#include <blk.h>
#include <console.h>
#include <dm.h>

View file

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <dm/of_extra.h>
#include <dm/test.h>

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <dt-structs.h>

View file

@ -16,7 +16,6 @@
* behaviour of each ofnode function, since that is done by the normal ones.
*/
#include <common.h>
#include <abuf.h>
#include <dm.h>
#include <log.h>

View file

@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <dm.h>
#include <dm/test.h>
#include <test/ut.h>

View file

@ -4,7 +4,6 @@
* Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
*/
#include <common.h>
#include <display_options.h>
#include <dm.h>
#include <video_osd.h>

View file

@ -5,7 +5,6 @@
* Copyright 2019 Google LLC
*/
#include <common.h>
#include <dm.h>
#include <p2sb.h>
#include <asm/test.h>

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <backlight.h>
#include <dm.h>
#include <panel.h>

Some files were not shown because too many files have changed in this diff Show more