diff options
author | Longfang Liu <liulongfang@huawei.com> | 2024-11-12 10:33:19 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2024-11-13 00:23:10 +0300 |
commit | ece8a2c77b881a379d24fee4656195d809161867 (patch) | |
tree | f9f89a997ee4c8a9c5a86821b1d04695b295ce40 /scripts/gdb/linux/modules.py | |
parent | 9283b7392570421c22a6c8058614f5b76a46b81c (diff) | |
download | linux-ece8a2c77b881a379d24fee4656195d809161867.tar.xz |
hisi_acc_vfio_pci: extract public functions for container_of
In the current driver, vdev is obtained from struct
hisi_acc_vf_core_device through the container_of function.
This method is used in many places in the driver. In order to
reduce this repetitive operation, It was extracted into
a public function.
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Link: https://lore.kernel.org/r/20241112073322.54550-2-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions