diff options
author | Chenghao Duan <duanchenghao@kylinos.cn> | 2025-08-05 19:00:18 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-08-05 19:00:18 +0800 |
commit | ed1a1fe6ec5e73b23b310b434ace07d1e5060657 (patch) | |
tree | a83cf1bcc945db261fd800f0fef3030afa8f4338 /drivers/pwm/pwm-stm32.c | |
parent | 6ab55e0a9eac638ca390bfaef6408c10c127e623 (diff) |
LoongArch: BPF: Rename and refactor validate_code()
1. Rename the existing validate_code() to validate_ctx()
2. Factor out the code validation handling into a new helper
validate_code()
Then:
* validate_code() is used to check the validity of code.
* validate_ctx() is used to check both code validity and table entry
correctness.
The new validate_code() will be used in subsequent changes.
Reviewed-by: Hengqi Chen <hengqi.chen@gmail.com>
Co-developed-by: George Guo <guodongtai@kylinos.cn>
Signed-off-by: George Guo <guodongtai@kylinos.cn>
Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions