Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ipa: eliminate unneeded struct declarations

As definitions in headers have been moved around, some of the
struct and enum declarations found in header files have become
no longer necessary and can be removed. Remove these unneeded
declarations.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Alex Elder and committed by
Paolo Abeni
11606196 81186959

+3 -15
-2
drivers/net/ipa/gsi.h
··· 21 21 #define GSI_TLV_MAX 64 22 22 23 23 struct device; 24 - struct scatterlist; 25 24 struct platform_device; 26 25 27 26 struct gsi; 28 27 struct gsi_trans; 29 - struct gsi_channel_data; 30 28 struct ipa_gsi_endpoint_data; 31 29 32 30 struct gsi_ring {
+1 -2
drivers/net/ipa/gsi_trans.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 - * Copyright (C) 2019-2022 Linaro Ltd. 4 + * Copyright (C) 2019-2024 Linaro Ltd. 5 5 */ 6 6 #ifndef _GSI_TRANS_H_ 7 7 #define _GSI_TRANS_H_ ··· 19 19 struct sk_buff; 20 20 21 21 struct gsi; 22 - struct gsi_trans; 23 22 struct gsi_trans_pool; 24 23 25 24 /* Maximum number of TREs in an IPA immediate command transaction */
-2
drivers/net/ipa/ipa.h
··· 15 15 #include "ipa_qmi.h" 16 16 #include "ipa_endpoint.h" 17 17 18 - struct clk; 19 - struct icc_path; 20 18 struct net_device; 21 19 22 20 struct ipa_power;
-3
drivers/net/ipa/ipa_cmd.h
··· 8 8 9 9 #include <linux/types.h> 10 10 11 - struct sk_buff; 12 - struct scatterlist; 13 - 14 11 struct ipa; 15 12 struct ipa_mem; 16 13 struct gsi_trans;
-1
drivers/net/ipa/ipa_power.h
··· 12 12 13 13 struct ipa; 14 14 struct ipa_power_data; 15 - enum ipa_irq_id; 16 15 17 16 /* IPA device power management function block */ 18 17 extern const struct dev_pm_ops ipa_pm_ops;
+1 -3
drivers/net/ipa/ipa_sysfs.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 - * Copyright (C) 2019-2022 Linaro Ltd. 4 + * Copyright (C) 2019-2024 Linaro Ltd. 5 5 */ 6 6 #ifndef _IPA_SYSFS_H_ 7 7 #define _IPA_SYSFS_H_ 8 - 9 - struct attribute_group; 10 8 11 9 extern const struct attribute_group ipa_attribute_group; 12 10 extern const struct attribute_group ipa_feature_attribute_group;
+1 -2
drivers/net/ipa/ipa_uc.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 - * Copyright (C) 2019-2022 Linaro Ltd. 4 + * Copyright (C) 2019-2024 Linaro Ltd. 5 5 */ 6 6 #ifndef _IPA_UC_H_ 7 7 #define _IPA_UC_H_ 8 8 9 9 struct ipa; 10 - enum ipa_irq_id; 11 10 12 11 /** 13 12 * ipa_uc_interrupt_handler() - Handler for microcontroller IPA interrupts