aboutsummaryrefslogtreecommitdiff
path: root/tools/rcu/rcu-cbs.py
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2023-12-05 17:01:11 -0800
committerTony Nguyen <anthony.l.nguyen@intel.com>2023-12-18 11:20:43 -0800
commit65db56d5fa8f9c4ee269eeb3c85fbb6acef79c6b (patch)
tree5c14df4a0ff276f285b3542a03fd8b9dad651b1b /tools/rcu/rcu-cbs.py
parent62589808d73b24eaf552bf9b69ba97f8db8f7b41 (diff)
iavf: field get conversion
Refactor the iavf driver to use FIELD_GET() for mask and shift reads, which reduces lines of code and adds clarity of intent. This code was generated by the following coccinelle/spatch script and then manually repaired in a later patch. @get@ constant shift,mask; type T; expression a; @@ -((T)((a) & mask) >> shift) +FIELD_GET(mask, a) and applied via: spatch --sp-file field_prep.cocci --in-place --dir \ drivers/net/ethernet/intel/ Cc: Julia Lawall <Julia.Lawall@inria.fr> Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/rcu/rcu-cbs.py')
0 files changed, 0 insertions, 0 deletions