Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34979 )
Change subject: devicetree: Remove duplicate chip_ops declarations ......................................................................
devicetree: Remove duplicate chip_ops declarations
These are only referenced inside auto-generated static.c files, and util/sconfig also generates the declarations automatically from source file pathnames.
Change-Id: Id324790755095c36fbeb73a4d8f9d01cdf6409cb Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/cpu/intel/haswell/chip.h M src/ec/compal/ene932/chip.h M src/ec/google/chromeec/chip.h M src/ec/google/wilco/chip.h M src/ec/quanta/ene_kb3940q/chip.h M src/ec/quanta/it8518/chip.h M src/ec/roda/it8518/chip.h M src/northbridge/intel/haswell/chip.h M src/soc/intel/baytrail/chip.h M src/soc/intel/braswell/chip.h M src/soc/intel/broadwell/chip.h M src/soc/intel/denverton_ns/chip.h M src/soc/intel/fsp_baytrail/chip.h M src/soc/intel/fsp_broadwell_de/chip.h M src/soc/intel/quark/chip.h M src/soc/intel/skylake/chip.h 16 files changed, 0 insertions(+), 44 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/34979/1
diff --git a/src/cpu/intel/haswell/chip.h b/src/cpu/intel/haswell/chip.h index cd9ec5d..b2cb33b 100644 --- a/src/cpu/intel/haswell/chip.h +++ b/src/cpu/intel/haswell/chip.h @@ -13,8 +13,6 @@ * GNU General Public License for more details. */
-extern struct chip_operations cpu_intel_haswell_ops; - /* Magic value used to locate this chip in the device tree */ #define SPEEDSTEP_APIC_MAGIC 0xACAC
diff --git a/src/ec/compal/ene932/chip.h b/src/ec/compal/ene932/chip.h index c7e4f8d..94f9752 100644 --- a/src/ec/compal/ene932/chip.h +++ b/src/ec/compal/ene932/chip.h @@ -17,11 +17,6 @@ #ifndef _EC_COMPAL_ENE932_CHIP_H #define _EC_COMPAL_ENE932_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_compal_ene932_ops; - struct ec_compal_ene932_config { };
diff --git a/src/ec/google/chromeec/chip.h b/src/ec/google/chromeec/chip.h index 4eada16..1c9a7f5 100644 --- a/src/ec/google/chromeec/chip.h +++ b/src/ec/google/chromeec/chip.h @@ -16,9 +16,6 @@ #ifndef EC_GOOGLE_CHROMEEC_CHIP_H #define EC_GOOGLE_CHROMEEC_CHIP_H
-#include <device/device.h> - -extern struct chip_operations ec_google_chromeec_ops;
struct ec_google_chromeec_config { }; diff --git a/src/ec/google/wilco/chip.h b/src/ec/google/wilco/chip.h index 9b02ee3..06d889c 100644 --- a/src/ec/google/wilco/chip.h +++ b/src/ec/google/wilco/chip.h @@ -16,10 +16,6 @@ #ifndef EC_GOOGLE_WILCO_CHIP_H #define EC_GOOGLE_WILCO_CHIP_H
-#include <device/device.h> - -extern struct chip_operations ec_google_wilco_ops; - struct ec_google_wilco_config { };
diff --git a/src/ec/quanta/ene_kb3940q/chip.h b/src/ec/quanta/ene_kb3940q/chip.h index 8348cc0..b812a18 100644 --- a/src/ec/quanta/ene_kb3940q/chip.h +++ b/src/ec/quanta/ene_kb3940q/chip.h @@ -17,11 +17,6 @@ #ifndef _EC_QUANTA_ENE_KB3940Q_CHIP_H #define _EC_QUANTA_ENE_KB3940Q_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_quanta_ene_kb3940q_ops; - struct ec_quanta_ene_kb3940q_config { };
diff --git a/src/ec/quanta/it8518/chip.h b/src/ec/quanta/it8518/chip.h index ea9b4ac..5dd14f6 100644 --- a/src/ec/quanta/it8518/chip.h +++ b/src/ec/quanta/it8518/chip.h @@ -17,11 +17,6 @@ #ifndef _EC_QUANTA_IT8518_CHIP_H #define _EC_QUANTA_IT8518_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_quanta_it8518_ops; - struct ec_quanta_it8518_config { };
diff --git a/src/ec/roda/it8518/chip.h b/src/ec/roda/it8518/chip.h index 44891e8..8091525 100644 --- a/src/ec/roda/it8518/chip.h +++ b/src/ec/roda/it8518/chip.h @@ -16,11 +16,6 @@ #ifndef _EC_RODA_IT8518_CHIP_H #define _EC_RODA_IT8518_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_roda_it8518_ops; - struct ec_roda_it8518_config { u8 cpuhot_limit; /* temperature in °C which asserts PROCHOT# */ }; diff --git a/src/northbridge/intel/haswell/chip.h b/src/northbridge/intel/haswell/chip.h index fdabc3f..506aaa5 100644 --- a/src/northbridge/intel/haswell/chip.h +++ b/src/northbridge/intel/haswell/chip.h @@ -45,6 +45,4 @@ struct i915_gpu_controller_info gfx; };
-extern struct chip_operations northbridge_intel_haswell_ops; - #endif /* NORTHBRIDGE_INTEL_HASWELL_CHIP_H */ diff --git a/src/soc/intel/baytrail/chip.h b/src/soc/intel/baytrail/chip.h index 00e7fd6..f153913 100644 --- a/src/soc/intel/baytrail/chip.h +++ b/src/soc/intel/baytrail/chip.h @@ -87,5 +87,4 @@ int disable_ddr_2x_refresh_rate; };
-extern struct chip_operations soc_intel_baytrail_ops; #endif /* _BAYTRAIL_CHIP_H_ */ diff --git a/src/soc/intel/braswell/chip.h b/src/soc/intel/braswell/chip.h index 5a00328..747b941 100644 --- a/src/soc/intel/braswell/chip.h +++ b/src/soc/intel/braswell/chip.h @@ -171,6 +171,4 @@ UINT8 I2C6Frequency; };
-extern struct chip_operations soc_intel_braswell_ops; - #endif /* _SOC_CHIP_H_ */ diff --git a/src/soc/intel/broadwell/chip.h b/src/soc/intel/broadwell/chip.h index 0885c2d..456a435 100644 --- a/src/soc/intel/broadwell/chip.h +++ b/src/soc/intel/broadwell/chip.h @@ -164,6 +164,4 @@
typedef struct soc_intel_broadwell_config config_t;
-extern struct chip_operations soc_ops; - #endif diff --git a/src/soc/intel/denverton_ns/chip.h b/src/soc/intel/denverton_ns/chip.h index f2a67dd..53e86f9 100644 --- a/src/soc/intel/denverton_ns/chip.h +++ b/src/soc/intel/denverton_ns/chip.h @@ -72,8 +72,6 @@ uint32_t ipc3; };
-extern struct chip_operations soc_intel_denverton_ns_ops; - typedef struct soc_intel_denverton_ns_config config_t;
#endif /* SOC_INTEL_FSP_DENVERTON_NS_CHIP_H */ diff --git a/src/soc/intel/fsp_baytrail/chip.h b/src/soc/intel/fsp_baytrail/chip.h index 156a084..b73aa14 100644 --- a/src/soc/intel/fsp_baytrail/chip.h +++ b/src/soc/intel/fsp_baytrail/chip.h @@ -353,5 +353,4 @@
};
-extern struct chip_operations soc_intel_fsp_baytrail_ops; #endif /* _FSP_BAYTRAIL_CHIP_H_ */ diff --git a/src/soc/intel/fsp_broadwell_de/chip.h b/src/soc/intel/fsp_broadwell_de/chip.h index b7f59f7..bf28962 100644 --- a/src/soc/intel/fsp_broadwell_de/chip.h +++ b/src/soc/intel/fsp_broadwell_de/chip.h @@ -29,5 +29,4 @@
typedef struct soc_intel_fsp_broadwell_de_config config_t;
-extern struct chip_operations soc_intel_fsp_broadwell_de_ops; #endif /* _SOC_CHIP_H_ */ diff --git a/src/soc/intel/quark/chip.h b/src/soc/intel/quark/chip.h index 25d734a..4e57273 100644 --- a/src/soc/intel/quark/chip.h +++ b/src/soc/intel/quark/chip.h @@ -113,6 +113,4 @@ uint8_t SmmTsegSize; /* SMM size in MiB */ };
-extern struct chip_operations soc_ops; - #endif diff --git a/src/soc/intel/skylake/chip.h b/src/soc/intel/skylake/chip.h index 6c105ce..1313dc1 100644 --- a/src/soc/intel/skylake/chip.h +++ b/src/soc/intel/skylake/chip.h @@ -591,6 +591,4 @@
typedef struct soc_intel_skylake_config config_t;
-extern struct chip_operations soc_ops; - #endif
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34979 )
Change subject: devicetree: Remove duplicate chip_ops declarations ......................................................................
Patch Set 2: Code-Review+2
Kyösti Mälkki has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/34979 )
Change subject: devicetree: Remove duplicate chip_ops declarations ......................................................................
devicetree: Remove duplicate chip_ops declarations
These are only referenced inside auto-generated static.c files, and util/sconfig also generates the declarations automatically from source file pathnames.
Change-Id: Id324790755095c36fbeb73a4d8f9d01cdf6409cb Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/34979 Reviewed-by: Marshall Dawson marshalldawson3rd@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/cpu/intel/haswell/chip.h M src/ec/compal/ene932/chip.h M src/ec/google/chromeec/chip.h M src/ec/google/wilco/chip.h M src/ec/quanta/ene_kb3940q/chip.h M src/ec/quanta/it8518/chip.h M src/ec/roda/it8518/chip.h M src/northbridge/intel/haswell/chip.h M src/soc/intel/baytrail/chip.h M src/soc/intel/braswell/chip.h M src/soc/intel/broadwell/chip.h M src/soc/intel/denverton_ns/chip.h M src/soc/intel/fsp_baytrail/chip.h M src/soc/intel/fsp_broadwell_de/chip.h M src/soc/intel/quark/chip.h M src/soc/intel/skylake/chip.h 16 files changed, 0 insertions(+), 44 deletions(-)
Approvals: build bot (Jenkins): Verified Marshall Dawson: Looks good to me, approved
diff --git a/src/cpu/intel/haswell/chip.h b/src/cpu/intel/haswell/chip.h index cd9ec5d..b2cb33b 100644 --- a/src/cpu/intel/haswell/chip.h +++ b/src/cpu/intel/haswell/chip.h @@ -13,8 +13,6 @@ * GNU General Public License for more details. */
-extern struct chip_operations cpu_intel_haswell_ops; - /* Magic value used to locate this chip in the device tree */ #define SPEEDSTEP_APIC_MAGIC 0xACAC
diff --git a/src/ec/compal/ene932/chip.h b/src/ec/compal/ene932/chip.h index c7e4f8d..94f9752 100644 --- a/src/ec/compal/ene932/chip.h +++ b/src/ec/compal/ene932/chip.h @@ -17,11 +17,6 @@ #ifndef _EC_COMPAL_ENE932_CHIP_H #define _EC_COMPAL_ENE932_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_compal_ene932_ops; - struct ec_compal_ene932_config { };
diff --git a/src/ec/google/chromeec/chip.h b/src/ec/google/chromeec/chip.h index 4eada16..1c9a7f5 100644 --- a/src/ec/google/chromeec/chip.h +++ b/src/ec/google/chromeec/chip.h @@ -16,9 +16,6 @@ #ifndef EC_GOOGLE_CHROMEEC_CHIP_H #define EC_GOOGLE_CHROMEEC_CHIP_H
-#include <device/device.h> - -extern struct chip_operations ec_google_chromeec_ops;
struct ec_google_chromeec_config { }; diff --git a/src/ec/google/wilco/chip.h b/src/ec/google/wilco/chip.h index 9b02ee3..06d889c 100644 --- a/src/ec/google/wilco/chip.h +++ b/src/ec/google/wilco/chip.h @@ -16,10 +16,6 @@ #ifndef EC_GOOGLE_WILCO_CHIP_H #define EC_GOOGLE_WILCO_CHIP_H
-#include <device/device.h> - -extern struct chip_operations ec_google_wilco_ops; - struct ec_google_wilco_config { };
diff --git a/src/ec/quanta/ene_kb3940q/chip.h b/src/ec/quanta/ene_kb3940q/chip.h index 8348cc0..b812a18 100644 --- a/src/ec/quanta/ene_kb3940q/chip.h +++ b/src/ec/quanta/ene_kb3940q/chip.h @@ -17,11 +17,6 @@ #ifndef _EC_QUANTA_ENE_KB3940Q_CHIP_H #define _EC_QUANTA_ENE_KB3940Q_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_quanta_ene_kb3940q_ops; - struct ec_quanta_ene_kb3940q_config { };
diff --git a/src/ec/quanta/it8518/chip.h b/src/ec/quanta/it8518/chip.h index ea9b4ac..5dd14f6 100644 --- a/src/ec/quanta/it8518/chip.h +++ b/src/ec/quanta/it8518/chip.h @@ -17,11 +17,6 @@ #ifndef _EC_QUANTA_IT8518_CHIP_H #define _EC_QUANTA_IT8518_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_quanta_it8518_ops; - struct ec_quanta_it8518_config { };
diff --git a/src/ec/roda/it8518/chip.h b/src/ec/roda/it8518/chip.h index 44891e8..8091525 100644 --- a/src/ec/roda/it8518/chip.h +++ b/src/ec/roda/it8518/chip.h @@ -16,11 +16,6 @@ #ifndef _EC_RODA_IT8518_CHIP_H #define _EC_RODA_IT8518_CHIP_H
-#include <device/device.h> - -struct chip_operations; -extern struct chip_operations ec_roda_it8518_ops; - struct ec_roda_it8518_config { u8 cpuhot_limit; /* temperature in °C which asserts PROCHOT# */ }; diff --git a/src/northbridge/intel/haswell/chip.h b/src/northbridge/intel/haswell/chip.h index fdabc3f..506aaa5 100644 --- a/src/northbridge/intel/haswell/chip.h +++ b/src/northbridge/intel/haswell/chip.h @@ -45,6 +45,4 @@ struct i915_gpu_controller_info gfx; };
-extern struct chip_operations northbridge_intel_haswell_ops; - #endif /* NORTHBRIDGE_INTEL_HASWELL_CHIP_H */ diff --git a/src/soc/intel/baytrail/chip.h b/src/soc/intel/baytrail/chip.h index 00e7fd6..f153913 100644 --- a/src/soc/intel/baytrail/chip.h +++ b/src/soc/intel/baytrail/chip.h @@ -87,5 +87,4 @@ int disable_ddr_2x_refresh_rate; };
-extern struct chip_operations soc_intel_baytrail_ops; #endif /* _BAYTRAIL_CHIP_H_ */ diff --git a/src/soc/intel/braswell/chip.h b/src/soc/intel/braswell/chip.h index 5a00328..747b941 100644 --- a/src/soc/intel/braswell/chip.h +++ b/src/soc/intel/braswell/chip.h @@ -171,6 +171,4 @@ UINT8 I2C6Frequency; };
-extern struct chip_operations soc_intel_braswell_ops; - #endif /* _SOC_CHIP_H_ */ diff --git a/src/soc/intel/broadwell/chip.h b/src/soc/intel/broadwell/chip.h index 0885c2d..456a435 100644 --- a/src/soc/intel/broadwell/chip.h +++ b/src/soc/intel/broadwell/chip.h @@ -164,6 +164,4 @@
typedef struct soc_intel_broadwell_config config_t;
-extern struct chip_operations soc_ops; - #endif diff --git a/src/soc/intel/denverton_ns/chip.h b/src/soc/intel/denverton_ns/chip.h index f2a67dd..53e86f9 100644 --- a/src/soc/intel/denverton_ns/chip.h +++ b/src/soc/intel/denverton_ns/chip.h @@ -72,8 +72,6 @@ uint32_t ipc3; };
-extern struct chip_operations soc_intel_denverton_ns_ops; - typedef struct soc_intel_denverton_ns_config config_t;
#endif /* SOC_INTEL_FSP_DENVERTON_NS_CHIP_H */ diff --git a/src/soc/intel/fsp_baytrail/chip.h b/src/soc/intel/fsp_baytrail/chip.h index 156a084..b73aa14 100644 --- a/src/soc/intel/fsp_baytrail/chip.h +++ b/src/soc/intel/fsp_baytrail/chip.h @@ -353,5 +353,4 @@
};
-extern struct chip_operations soc_intel_fsp_baytrail_ops; #endif /* _FSP_BAYTRAIL_CHIP_H_ */ diff --git a/src/soc/intel/fsp_broadwell_de/chip.h b/src/soc/intel/fsp_broadwell_de/chip.h index b7f59f7..bf28962 100644 --- a/src/soc/intel/fsp_broadwell_de/chip.h +++ b/src/soc/intel/fsp_broadwell_de/chip.h @@ -29,5 +29,4 @@
typedef struct soc_intel_fsp_broadwell_de_config config_t;
-extern struct chip_operations soc_intel_fsp_broadwell_de_ops; #endif /* _SOC_CHIP_H_ */ diff --git a/src/soc/intel/quark/chip.h b/src/soc/intel/quark/chip.h index 25d734a..4e57273 100644 --- a/src/soc/intel/quark/chip.h +++ b/src/soc/intel/quark/chip.h @@ -113,6 +113,4 @@ uint8_t SmmTsegSize; /* SMM size in MiB */ };
-extern struct chip_operations soc_ops; - #endif diff --git a/src/soc/intel/skylake/chip.h b/src/soc/intel/skylake/chip.h index 6c105ce..1313dc1 100644 --- a/src/soc/intel/skylake/chip.h +++ b/src/soc/intel/skylake/chip.h @@ -591,6 +591,4 @@
typedef struct soc_intel_skylake_config config_t;
-extern struct chip_operations soc_ops; - #endif