HV: treewide: fix violations of coding guideline C-FN-09

The coding guideline gule C-FN-09 requires that 'the formal parameter name
of a function shall be consistent'. This patch fixes two places where the
formal parameters are named differently in declarations and
definitions. More specifically, the names in declarations are replaced with
those in definitions.

This patch has no semantic impact.

Tracked-On: #6776
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Junjie Mao 2021-10-29 10:45:45 +08:00 committed by wenlingz
parent fba343bd05
commit d5c137eac5
2 changed files with 5 additions and 5 deletions

View File

@ -25,13 +25,13 @@ struct acrn_vm;
* @brief Check if the GPA range is guest valid GPA or not * @brief Check if the GPA range is guest valid GPA or not
* *
* @param[in] vm the pointer that points to VM data structure * @param[in] vm the pointer that points to VM data structure
* @param[in] base The specified start guest physical address of guest * @param[in] mr_base_gpa The specified start guest physical address of guest
* physical memory region * physical memory region
* @param[in] size The size of guest physical memory region * @param[in] size The size of guest physical memory region
* *
* @retval true if the GPA range is guest valid GPA, false otherwise. * @retval true if the GPA range is guest valid GPA, false otherwise.
*/ */
bool ept_is_valid_mr(struct acrn_vm *vm, uint64_t base, uint64_t size); bool ept_is_valid_mr(struct acrn_vm *vm, uint64_t mr_base_gpa, uint64_t size);
/** /**
* @brief EPT page tables destroy * @brief EPT page tables destroy

View File

@ -54,7 +54,7 @@ struct hv_timer {
* @param[in] timer Pointer to timer. * @param[in] timer Pointer to timer.
* @param[in] func irq callback if time reached. * @param[in] func irq callback if time reached.
* @param[in] priv_data func private data. * @param[in] priv_data func private data.
* @param[in] fire_tsc tsc deadline to interrupt. * @param[in] timeout tsc deadline to interrupt.
* @param[in] period_in_cycle period of the periodic timer in unit of TSC cycles. * @param[in] period_in_cycle period of the periodic timer in unit of TSC cycles.
* *
* @remark Don't initialize a timer twice if it has been added to the timer list * @remark Don't initialize a timer twice if it has been added to the timer list
@ -64,7 +64,7 @@ struct hv_timer {
*/ */
void initialize_timer(struct hv_timer *timer, void initialize_timer(struct hv_timer *timer,
timer_handle_t func, void *priv_data, timer_handle_t func, void *priv_data,
uint64_t fire_tsc, uint64_t period_in_cycle); uint64_t timeout, uint64_t period_in_cycle);
/** /**
* @brief Check a timer whether expired. * @brief Check a timer whether expired.