Commit ff39eefd authored by Alex Elder's avatar Alex Elder Committed by Paolo Abeni

net: ipa: include some standard header files

Some IPA header files use types defined in <linux/types.h>, but do
not include that file:
  - In "ipa_mem.h", the ipa_mem structure has u16 and u32 fields
  - In "ipa_power.h", ipa_power_retention() takes a bool argument,
    and ipa_core_clock_rate() returns u32
  - In "ipa_version.h", ipa_version_supported() returns bool
Include it in these files to satisfy their dependencies.

The ipa_qmi structure (defined in "ipa_qmi.h") contains a work
structure, so include <linux/workqueue.h> in there.

All of the data and register definition files, as well as "reg.h",
use the ARRAY_SIZE() macro.  Include <linux/array_size.h> everywhere
it's used.

Similarly, all register definition files (and a few others) use the
GENMASK() macro, so include <linux/bits.h> to ensure it's defined
where used.  BIT() becomes available by including this file also.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 5cb431dc
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2021 Linaro Ltd. * Copyright (C) 2019-2024 Linaro Ltd.
*/ */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2021 Linaro Ltd. * Copyright (C) 2019-2024 Linaro Ltd.
*/ */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2021 Linaro Ltd. */ /* Copyright (C) 2021-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2019-2021 Linaro Ltd. */ /* Copyright (C) 2019-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2021 Linaro Ltd. */ /* Copyright (C) 2021-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2021 Linaro Ltd. */ /* Copyright (C) 2021-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/log2.h> #include <linux/log2.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/log2.h> #include <linux/log2.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2023 Linaro Ltd. * Copyright (C) 2019-2024 Linaro Ltd.
*/ */
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/slab.h> #include <linux/slab.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2023 Linaro Ltd. * Copyright (C) 2019-2024 Linaro Ltd.
*/ */
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/slab.h> #include <linux/slab.h>
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2023 Linaro Ltd. * Copyright (C) 2019-2024 Linaro Ltd.
*/ */
#ifndef _IPA_MEM_H_ #ifndef _IPA_MEM_H_
#define _IPA_MEM_H_ #define _IPA_MEM_H_
#include <linux/types.h>
struct platform_device; struct platform_device;
struct ipa; struct ipa;
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2018-2022 Linaro Ltd. * Copyright (C) 2018-2024 Linaro Ltd.
*/ */
#ifndef _IPA_POWER_H_ #ifndef _IPA_POWER_H_
#define _IPA_POWER_H_ #define _IPA_POWER_H_
#include <linux/types.h>
struct device; struct device;
struct ipa; struct ipa;
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2018-2022 Linaro Ltd. * Copyright (C) 2018-2024 Linaro Ltd.
*/ */
#ifndef _IPA_QMI_H_ #ifndef _IPA_QMI_H_
#define _IPA_QMI_H_ #define _IPA_QMI_H_
#include <linux/types.h> #include <linux/types.h>
#include <linux/workqueue.h>
#include <linux/soc/qcom/qmi.h> #include <linux/soc/qcom/qmi.h>
struct ipa; struct ipa;
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
* Copyright (C) 2019-2022 Linaro Ltd. * Copyright (C) 2019-2024 Linaro Ltd.
*/ */
#ifndef _IPA_VERSION_H_ #ifndef _IPA_VERSION_H_
#define _IPA_VERSION_H_ #define _IPA_VERSION_H_
#include <linux/types.h>
/** /**
* enum ipa_version * enum ipa_version
* @IPA_VERSION_3_0: IPA version 3.0/GSI version 1.0 * @IPA_VERSION_3_0: IPA version 3.0/GSI version 1.0
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* *Copyright (C) 2022-2023 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#ifndef _REG_H_ #ifndef _REG_H_
#define _REG_H_ #define _REG_H_
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/log2.h> #include <linux/log2.h>
#include <linux/bug.h> #include <linux/bug.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../gsi.h" #include "../gsi.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2022 Linaro Ltd. */ /* Copyright (C) 2022-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/types.h> #include <linux/types.h>
#include "../ipa.h" #include "../ipa.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023 Linaro Ltd. */ /* Copyright (C) 2023-2024 Linaro Ltd. */
#include <linux/array_size.h>
#include <linux/bits.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/bits.h> #include <linux/bits.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment