Merge branch 'task/buildv2_hygiene_and_dep_declarations_v6.1' into 'release/v6.1'

fix(components): generic dep-declaration and scope-leakage hygiene exposed by cmakev2 (v6.1)

See merge request espressif/esp-idf!48904
This commit is contained in:
Jiang Jiang Jian
2026-07-03 17:47:24 +08:00
24 changed files with 54 additions and 34 deletions
+6 -4
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -50,10 +50,12 @@ esp_err_t spi_hal_cal_clock_conf(const spi_hal_timing_param_t *timing_param, spi
spi_hal_cal_timing(timing_param->clk_src_hz, eff_clk_n, timing_param->use_gpio, timing_param->input_delay_ns, &dummy, &miso_delay);
#if SPI_LL_SUPPORT_TIME_TUNING
const int freq_limit = spi_hal_get_freq_limit(timing_param->use_gpio, timing_param->input_delay_ns);
if (!(timing_param->half_duplex || dummy == 0 || timing_param->no_compensate)) {
// This only a short log used as a "key" of the idf hint system, see `hints.yml`
// Short log used as a "key" by the idf hint system (see `hints.yml`).
// freq_limit is consumed only by HAL_EARLY_LOGE; mark unused so
// -Wunused-variable stays quiet when the macro expands to empty.
const int freq_limit __attribute__((unused)) =
spi_hal_get_freq_limit(timing_param->use_gpio, timing_param->input_delay_ns);
HAL_EARLY_LOGE(SPI_HAL_TAG, "The clock_speed_hz should less than %d", freq_limit);
return ESP_ERR_NOT_SUPPORTED;
}