Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp353563ybx; Wed, 6 Nov 2019 18:24:11 -0800 (PST) X-Google-Smtp-Source: APXvYqy9DKUip4cannuSljFM9CQQXBjLHQV/m9w71ZC8W1Mfrn+PX2apbinIvZFDLXiiVS7qd3cT X-Received: by 2002:a17:906:459:: with SMTP id e25mr771278eja.259.1573093451565; Wed, 06 Nov 2019 18:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573093451; cv=none; d=google.com; s=arc-20160816; b=StlW13LZyVmS9O1p/h9Q2HpUDXW5fmcXmut6VktIkhzarZKzj+MvGY/7w0eq6CI49C k1HpxJpbeAaEsfA6JCO7kbSFjM6LDjhSNx7VOj8hLrBniLht/AOYPRSw00BerHJ0fq3Z 4yOpraffb7vZDNIJg19sn2e2e6wcZFqvanAr+Q20ODDf94bqhig/vEIpTyL7F1l9VBAN uWBIJgbOVKNvbR9Qk1r9WCHdoyDdPOvnXRDehRZAMoMVHdlEjWZlVVahR8G6xj/cteVN luuPYlK+Pj1F+7uniSNQ/kRHqhzxsqa8gwRjkC8x2YO6uAAZWuZoLvQgZE2Cap/S3RMS u/uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DIp/SX1Z8Vaima5J/yA/Iy5SFkLkyKf1IKBaqaMEzpk=; b=U9YE3r4r7aglpTA0qSkNKarbOOvO/EQ9IJXuCZN1Kr3+LVDgTwYefDIur3VYVYJTWP zGJkN33e24smEllO3/u99TIfUyzQsxFoPp4ReMmV5fsXR9b8ffEYIjP3yVn5DqpP6CSF PjDF+YSGE6tM8VXNhd79xwcoJ63LIm2Y73hGwmR6gRffrPaYgJXPwI818SDpn3gGdbdZ mhK0MOaWj27bpxt/PffFPdujixNs/VnhoWbRK/xd3PGlwUgoTXRy41qiXe2Gg3Vh2Q9s pHXiuSKNgbW/RbtZB1Yjvt61FwpT73lJhZCn5yWFsXL12kukFoHONw3maJ2wc5Sq3n3J 12fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gfFkjdgC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h52si414254edb.77.2019.11.06.18.23.48; Wed, 06 Nov 2019 18:24:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gfFkjdgC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733078AbfKGCWH (ORCPT + 99 others); Wed, 6 Nov 2019 21:22:07 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35491 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733047AbfKGCWG (ORCPT ); Wed, 6 Nov 2019 21:22:06 -0500 Received: by mail-pl1-f195.google.com with SMTP id s10so390714plp.2 for ; Wed, 06 Nov 2019 18:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DIp/SX1Z8Vaima5J/yA/Iy5SFkLkyKf1IKBaqaMEzpk=; b=gfFkjdgCNoH1Yql730ZP0mX2NpK3GxLSr7kDXBXlYPkeN5ms9244qH0a7b3N74Muuo H042USeH7s6weqzHVIBoDC8GD6rSVkaNmI9E1O6EUxK2Os/DoDanxQ/iS7upLvqw66Pp tdi4F71Svv7GX14pxx/yTiLIt4nnhWr4q1jAOwrgHMBQa4KiRsK+SW6atJdwSWQSft0u aBYRZqCkAu55Z+GhvWqcYCHkY/08ND0EGqsn6A0lNLHVtr6xc54/aMqNLYOUsTBm31b4 +q5VVvdNZjwgdrHEhrq/lj7TVO8dxQtgC62DytHGYq1ezyemZ+UYjfmcDzhxOZ3SWLDP TBQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DIp/SX1Z8Vaima5J/yA/Iy5SFkLkyKf1IKBaqaMEzpk=; b=tO3+2uyVFLxUIDjGc65Tf0uxplim5r3VWa6NAmP0G4VUmYZVOkasn3T+3EaBW2pe0x 06x67NWyAUiJ6L6t3OcPs/CheXXnqZkakbCF4JDb+9aiD1hWWjr22Z17DZfwdzpilKmx Rtx+HwYYBC2i+wG22JvirqvGdQJI/CkhPDBSCFd6b1+bYkfs1KraVH/AV8jcls0WzX3R Y4vjegYQ3OxblEBrZY8YHQSjYVz0QPxZgG+lATG6xaunvAnz5aYPsHLu16Rt/hiwZHDq lbz6pZD+W7Bx84Mf7yU1KFnNDBNrO3CfuDSYfwELODXBQvvbqaVaMG1yz2Sy0uPpLrZW 7x+A== X-Gm-Message-State: APjAAAWiKl9ngo0jb5xWANL1wMSGTB8aKLofTR0vSoGZEkQVmuA05s5t a3JfFyixF0ZkEqPSP0SslNAY4w== X-Received: by 2002:a17:902:59ca:: with SMTP id d10mr996735plj.237.1573093325672; Wed, 06 Nov 2019 18:22:05 -0800 (PST) Received: from localhost ([122.171.110.253]) by smtp.gmail.com with ESMTPSA id z18sm409225pgv.90.2019.11.06.18.22.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 18:22:04 -0800 (PST) Date: Thu, 7 Nov 2019 07:52:01 +0530 From: Viresh Kumar To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, edubezval@gmail.com, Amit Daniel Kachhap , Amit Kucheria , Bartlomiej Zolnierkiewicz , Daniel Lezcano , Guillaume La Roque , Heiko Stuebner , Javi Merino , Jonathan Hunter , Jun Nie , Krzysztof Kozlowski , Kukjin Kim , Matthias Brugger , Shawn Guo , Thierry Reding , Zhang Rui , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 09/11] thermal: tegra: Appease the kernel-doc deity Message-ID: <20191107022201.emiylbnnqahfqrl5@vireshk-i7> References: <4cba46c100cb504a52e52062bdf4e4a4e9427b99.1573046440.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4cba46c100cb504a52e52062bdf4e4a4e9427b99.1573046440.git.amit.kucheria@linaro.org> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-11-19, 18:58, Amit Kucheria wrote: > Fix up the following warning when compiled with make W=1: > > linux.git/drivers/thermal/tegra/soctherm.c:369: warning: Function parameter or member 'value' not described in 'ccroc_writel' > linux.git/drivers/thermal/tegra/soctherm.c:369: warning: Excess function parameter 'v' description in 'ccroc_writel' > linux.git/drivers/thermal/tegra/soctherm.c:447: warning: Function parameter or member 'dev' not described in 'enforce_temp_range' > linux.git/drivers/thermal/tegra/soctherm.c:772: warning: Function parameter or member 'sg' not described in 'tegra_soctherm_set_hwtrips' > linux.git/drivers/thermal/tegra/soctherm.c:772: warning: Function parameter or member 'tz' not described in 'tegra_soctherm_set_hwtrips' > linux.git/drivers/thermal/tegra/soctherm.c:944: warning: Function parameter or member 'ts' not described in 'soctherm_oc_intr_enable' > linux.git/drivers/thermal/tegra/soctherm.c:1167: warning: Function parameter or member 'data' not described in 'soctherm_oc_irq_disable' > linux.git/drivers/thermal/tegra/soctherm.c:1167: warning: Excess function parameter 'irq_data' description in 'soctherm_oc_irq_disable' > linux.git/drivers/thermal/tegra/soctherm.c:1224: warning: Function parameter or member 'ctrlr' not described in 'soctherm_irq_domain_xlate_twocell' > linux.git/drivers/thermal/tegra/soctherm.c:1686: warning: Function parameter or member 'pdev' not described in 'soctherm_init_hw_throt_cdev' > linux.git/drivers/thermal/tegra/soctherm.c:1764: warning: Function parameter or member 'ts' not described in 'throttlectl_cpu_level_cfg' > linux.git/drivers/thermal/tegra/soctherm.c:1812: warning: Function parameter or member 'ts' not described in 'throttlectl_cpu_level_select' > linux.git/drivers/thermal/tegra/soctherm.c:1855: warning: Function parameter or member 'ts' not described in 'throttlectl_cpu_mn' > linux.git/drivers/thermal/tegra/soctherm.c:1886: warning: Function parameter or member 'ts' not described in 'throttlectl_gpu_level_select' > linux.git/drivers/thermal/tegra/soctherm.c:1928: warning: Function parameter or member 'ts' not described in 'soctherm_throttle_program' > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/tegra/soctherm.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c > index 5acaad3a594f3..66e0639da4bf2 100644 > --- a/drivers/thermal/tegra/soctherm.c > +++ b/drivers/thermal/tegra/soctherm.c > @@ -360,7 +360,7 @@ static struct soctherm_oc_irq_chip_data soc_irq_cdata; > /** > * ccroc_writel() - writes a value to a CCROC register > * @ts: pointer to a struct tegra_soctherm > - * @v: the value to write > + * @value: the value to write > * @reg: the register offset > * > * Writes @v to @reg. No return value. > @@ -435,6 +435,7 @@ static int tegra_thermctl_get_temp(void *data, int *out_temp) > > /** > * enforce_temp_range() - check and enforce temperature range [min, max] > + * @dev: struct device * of the SOC_THERM instance > * @trip_temp: the trip temperature to check > * > * Checks and enforces the permitted temperature range that SOC_THERM > @@ -747,6 +748,8 @@ static int get_hot_temp(struct thermal_zone_device *tz, int *trip, int *temp) > /** > * tegra_soctherm_set_hwtrips() - set HW trip point from DT data > * @dev: struct device * of the SOC_THERM instance > + * @sg: pointer to the sensor group to set the thermtrip temperature for > + * @tz: struct thermal_zone_device * > * > * Configure the SOC_THERM HW trip points, setting "THERMTRIP" > * "THROTTLE" trip points , using "thermtrips", "critical" or "hot" > @@ -931,6 +934,7 @@ static irqreturn_t soctherm_thermal_isr_thread(int irq, void *dev_id) > > /** > * soctherm_oc_intr_enable() - Enables the soctherm over-current interrupt > + * @ts: pointer to a struct tegra_soctherm > * @alarm: The soctherm throttle id > * @enable: Flag indicating enable the soctherm over-current > * interrupt or disable it > @@ -1156,7 +1160,7 @@ static void soctherm_oc_irq_enable(struct irq_data *data) > > /** > * soctherm_oc_irq_disable() - Disables overcurrent interrupt requests > - * @irq_data: The interrupt request information > + * @data: The interrupt request information > * > * Clears the interrupt request enable bit of the overcurrent > * interrupt request chip data. > @@ -1206,6 +1210,7 @@ static int soctherm_oc_irq_map(struct irq_domain *h, unsigned int virq, > /** > * soctherm_irq_domain_xlate_twocell() - xlate for soctherm interrupts > * @d: Interrupt request domain > + * @ctrlr: Controller device tree node > * @intspec: Array of u32s from DTs "interrupt" property > * @intsize: Number of values inside the intspec array > * @out_hwirq: HW IRQ value associated with this interrupt > @@ -1681,6 +1686,7 @@ static int soctherm_throt_cfg_parse(struct device *dev, > /** > * soctherm_init_hw_throt_cdev() - Parse the HW throttle configurations > * and register them as cooling devices. > + * @pdev: Pointer to platform_device struct > */ > static void soctherm_init_hw_throt_cdev(struct platform_device *pdev) > { > @@ -1751,6 +1757,7 @@ static void soctherm_init_hw_throt_cdev(struct platform_device *pdev) > > /** > * throttlectl_cpu_level_cfg() - programs CCROC NV_THERM level config > + * @ts: pointer to a struct tegra_soctherm > * @level: describing the level LOW/MED/HIGH of throttling > * > * It's necessary to set up the CPU-local CCROC NV_THERM instance with > @@ -1798,6 +1805,7 @@ static void throttlectl_cpu_level_cfg(struct tegra_soctherm *ts, int level) > > /** > * throttlectl_cpu_level_select() - program CPU pulse skipper config > + * @ts: pointer to a struct tegra_soctherm > * @throt: the LIGHT/HEAVY of throttle event id > * > * Pulse skippers are used to throttle clock frequencies. This > @@ -1841,6 +1849,7 @@ static void throttlectl_cpu_level_select(struct tegra_soctherm *ts, > > /** > * throttlectl_cpu_mn() - program CPU pulse skipper configuration > + * @ts: pointer to a struct tegra_soctherm > * @throt: the LIGHT/HEAVY of throttle event id > * > * Pulse skippers are used to throttle clock frequencies. This > @@ -1874,6 +1883,7 @@ static void throttlectl_cpu_mn(struct tegra_soctherm *ts, > > /** > * throttlectl_gpu_level_select() - selects throttling level for GPU > + * @ts: pointer to a struct tegra_soctherm > * @throt: the LIGHT/HEAVY of throttle event id > * > * This function programs soctherm's interface to GK20a NV_THERM to select > @@ -1918,6 +1928,7 @@ static int soctherm_oc_cfg_program(struct tegra_soctherm *ts, > > /** > * soctherm_throttle_program() - programs pulse skippers' configuration > + * @ts: pointer to a struct tegra_soctherm > * @throt: the LIGHT/HEAVY of the throttle event id. > * > * Pulse skippers are used to throttle clock frequencies. Reviewed-by: Viresh Kumar -- viresh