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

misc: mic: scif: scif_ports: Fix copy 'n' paste error

__scif_get_port() has never taken 'port' as an argument since
its inception back in 2015. Probably document the proper arguments
expected 'start' and 'end'.

Fixes the following W=1 kernel build warnings:

drivers/misc/mic/scif/scif_ports.c:36: warning: Function parameter or member 'start' not described in '__scif_get_port
drivers/misc/mic/scif/scif_ports.c:36: warning: Function parameter or member 'end' not described in '__scif_get_port'
drivers/misc/mic/scif/scif_ports.c:36: warning: Excess function parameter 'port' description in '__scif_get_port'

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200701083118.45744-17-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
887d670e 0cfbe64c

+5 -4
+5 -4
drivers/misc/mic/scif/scif_ports.c
··· 14 14 15 15 struct idr scif_ports; 16 16 17 - /* 17 + /** 18 18 * struct scif_port - SCIF port information 19 19 * 20 - * @ref_cnt - Reference count since there can be multiple endpoints 21 - * created via scif_accept(..) simultaneously using a port. 20 + * @ref_cnt: Reference count since there can be multiple endpoints 21 + * created via scif_accept(..) simultaneously using a port. 22 22 */ 23 23 struct scif_port { 24 24 int ref_cnt; ··· 27 27 /** 28 28 * __scif_get_port - Reserve a specified port # for SCIF and add it 29 29 * to the global list. 30 - * @port : port # to be reserved. 30 + * @start: lowest port # to be reserved (inclusive). 31 + * @end: highest port # to be reserved (exclusive). 31 32 * 32 33 * @return : Allocated SCIF port #, or -ENOSPC if port unavailable. 33 34 * On memory allocation failure, returns -ENOMEM.