From: Bagas Sanjaya Date: Fri, 7 Nov 2025 23:33:17 +0000 (+0700) Subject: iommupt: Actually correct pt_test_sw_bit_{acquire_release}() parameter description X-Git-Tag: v6.19-rc1~133^2^8~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd24676865c383eab77d21ed02ffb432061df54;p=thirdparty%2Fkernel%2Flinux.git iommupt: Actually correct pt_test_sw_bit_{acquire_release}() parameter description In review comment for v1 of genpt documentation fixes [1], Randy suggested that pt_test_sw_bit_acquire() parameters description should be written using "to read". Commit e4dfaf25df1210 ("iommupt: Describe @bitnr parameter"), however, misunderstood the review by instead using "to read" on @bitnr parameter on both pt_test_sw_bit_acquire() and pt_test_sw_bit_release(). Actually correct the description. [1]: https://lore.kernel.org/linux-doc/9dba0eb7-6f32-41b7-b70b-12379364585f@infradead.org/ Fixes: e4dfaf25df1210 ("iommupt: Describe @bitnr parameter") Signed-off-by: Bagas Sanjaya Reviewed-by: Randy Dunlap Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/generic_pt/pt_common.h b/drivers/iommu/generic_pt/pt_common.h index 3b4e371089140..e1123d35c9076 100644 --- a/drivers/iommu/generic_pt/pt_common.h +++ b/drivers/iommu/generic_pt/pt_common.h @@ -353,7 +353,7 @@ static inline unsigned int pt_max_sw_bit(struct pt_common *common); /** * pt_test_sw_bit_acquire() - Read a software bit in an item - * @pts: Entry to set + * @pts: Entry to read * @bitnr: Bit to read * * Software bits are ignored by HW and can be used for any purpose by the @@ -365,7 +365,7 @@ static inline bool pt_test_sw_bit_acquire(struct pt_state *pts, /** * pt_set_sw_bit_release() - Set a software bit in an item * @pts: Entry to set - * @bitnr: Bit to read + * @bitnr: Bit to set * * Software bits are ignored by HW and can be used for any purpose by the * software. This does a set bit and release operation.