aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/xilinx-core.c
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2025-02-06 11:05:54 +0000
committerDavid S. Miller <[email protected]>2025-02-10 15:04:18 +0000
commit563fe939a81ab08198b78dc8451ef3090969f30b (patch)
treed45c4d99f1a3370738db64c0f81f5117acac2f00 /drivers/fpga/xilinx-core.c
parentnetconsole: Rename userdata to extradata (diff)
downloadkernel-563fe939a81ab08198b78dc8451ef3090969f30b.tar.gz
kernel-563fe939a81ab08198b78dc8451ef3090969f30b.zip
netconsole: Helper to count number of used entries
Add a helper function nr_extradata_entries() to count the number of used extradata entries in a netconsole target. This refactors the duplicate code for counting entries into a single function, which will be reused by upcoming CPU sysdata changes. The helper uses list_count_nodes() to count the number of children in the userdata group configfs hierarchy. Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-core.c')
0 files changed, 0 insertions, 0 deletions