Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sfc: correct kernel-doc complaints

Fix kernel-doc warnings by adding 3 missing struct member descriptions
in struct efx_ef10_nic_data and removing preprocessor directives (which
are not handled by kernel-doc).

Fixes these 5 warnings:
Warning: drivers/net/ethernet/sfc/nic.h:158 bad line: #ifdef CONFIG_SFC_SRIOV
Warning: drivers/net/ethernet/sfc/nic.h:160 bad line: #endif
Warning: drivers/net/ethernet/sfc/nic.h:204 struct member 'port_id'
not described in 'efx_ef10_nic_data'
Warning: drivers/net/ethernet/sfc/nic.h:204 struct member 'vf_index'
not described in 'efx_ef10_nic_data'
Warning: drivers/net/ethernet/sfc/nic.h:204 struct member 'licensed_features'
not described in 'efx_ef10_nic_data'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://patch.msgid.link/20260106173224.2010703-1-rdunlap@infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Randy Dunlap and committed by
Jakub Kicinski
a45ed8db f56bcc04

+4 -3
+4 -3
drivers/net/ethernet/sfc/nic.h
··· 156 156 * @tx_dpcpu_fw_id: Firmware ID of the TxDPCPU 157 157 * @must_probe_vswitching: Flag: vswitching has yet to be setup after MC reboot 158 158 * @pf_index: The number for this PF, or the parent PF if this is a VF 159 - #ifdef CONFIG_SFC_SRIOV 160 - * @vf: Pointer to VF data structure 161 - #endif 159 + * @port_id: Ethernet address of owning PF, used for phys_port_id 160 + * @vf_index: The number for this VF, or 0xFFFF if this is a VF 161 + * @vf: for a PF, array of VF data structures indexed by VF's @vf_index 162 162 * @vport_mac: The MAC address on the vport, only for PFs; VFs will be zero 163 163 * @vlan_list: List of VLANs added over the interface. Serialised by vlan_lock. 164 164 * @vlan_lock: Lock to serialize access to vlan_list. ··· 166 166 * @udp_tunnels_dirty: flag indicating a reboot occurred while pushing 167 167 * @udp_tunnels to hardware and thus the push must be re-done. 168 168 * @udp_tunnels_lock: Serialises writes to @udp_tunnels and @udp_tunnels_dirty. 169 + * @licensed_features: Flags for licensed firmware features. 169 170 */ 170 171 struct efx_ef10_nic_data { 171 172 struct efx_buffer mcdi_buf;