Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4263352pxb; Mon, 1 Feb 2021 17:38:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaE8aKCiDjPUhxr366iujuwmBmmM574fYgUYehMuRF/9Y6Npfh/tsfFsLiBiO1nGdrPW5m X-Received: by 2002:a50:aac8:: with SMTP id r8mr21260370edc.9.1612229883454; Mon, 01 Feb 2021 17:38:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612229883; cv=none; d=google.com; s=arc-20160816; b=tS7qHafxvOQeyVMTYfifQXhirTso+KzTP5+UcBirBqMpky06pURVE7YmyGXWOWWi4u OCZAeOjgl141kWgevyt2Ayy511cuISToXTAMekR0wQOzZr7oMyHcu/NGkx9nM1sDu1aW 8Tdx2jyFKXXlBqtemHS0zUQJDNgs8MKsoi+O2L4ZJwNN4RYn1WNp2t9SaXz0ub99Qq3T KVdWPpOq7++liIou70B3hUPPc1itQzWHcHH1GML+dDjBnRjaUBDTjWtplOn8sfvTADdX 39IAC8pWHvL7Z5T4An9PZDa2c1fQkKHkaZ9F7HCSb6xD00SwWXvaj/wRt+EczfQ/r7LS waKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=L5IdKE61OwiN2E01Qrfr5xW/3frPs9WVRCwv4QORGKk=; b=HpH7fPeaB73nuTUqwU0CZjgkNxONDuBbVbXYBjDLb1GxGOy4HuHsnNqjX6fIIe7B1A SIR/o9aU1Q/g3KsDpJLxbFMcVahXofi7UUP7fUY4TTCgSwOfgzJc/QW/YXzyXqI3qMXV 9qUezwm6xkVVRpJbd0PX8ymqEiviuBD78emqhKiigLFMqqGi+JStkWXzkS3IfFid8Rdq o/DLi0zPrIuXPVb2albtgQ/R/TZygqsC604YTHJU3HIGAJvn7fQEsjT+z1ZJC4dU5IHu 8w/4jtDmbUqbdul3H/tE5/3h/paWFbhSgAA3dVYWIU/8stVFd/UosCc/ugsqdAvH1gt3 Kd0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si1474420ejw.171.2021.02.01.17.37.38; Mon, 01 Feb 2021 17:38:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbhBBBfz (ORCPT + 99 others); Mon, 1 Feb 2021 20:35:55 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:36965 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbhBBBfy (ORCPT ); Mon, 1 Feb 2021 20:35:54 -0500 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 62B2A100003; Tue, 2 Feb 2021 01:35:07 +0000 (UTC) From: Alexandre Belloni To: John Stultz , Thomas Gleixner , Stephen Boyd Cc: Alexandre Belloni , linux-kernel@vger.kernel.org Subject: [PATCH] alarmtimer: update kerneldoc Date: Tue, 2 Feb 2021 02:34:57 +0100 Message-Id: <20210202013457.3482388-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update kerneldoc comments to reflect the actual arguments and return values of the documented functions. Signed-off-by: Alexandre Belloni --- kernel/time/alarmtimer.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c index f4ace1bf8382..98d7a15e8cf6 100644 --- a/kernel/time/alarmtimer.c +++ b/kernel/time/alarmtimer.c @@ -527,8 +527,11 @@ static enum alarmtimer_type clock2alarm(clockid_t clockid) /** * alarm_handle_timer - Callback for posix timers * @alarm: alarm that fired + * @now: time at the timer expiration * * Posix timer callback for expired alarm timers. + * + * Return: whether the timer is to be restarted */ static enum alarmtimer_restart alarm_handle_timer(struct alarm *alarm, ktime_t now) @@ -715,8 +718,11 @@ static int alarm_timer_create(struct k_itimer *new_timer) /** * alarmtimer_nsleep_wakeup - Wakeup function for alarm_timer_nsleep * @alarm: ptr to alarm that fired + * @now: time at the timer expiration * * Wakes up the task that set the alarmtimer + * + * Return: ALARMTIMER_NORESTART */ static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm, ktime_t now) @@ -733,6 +739,7 @@ static enum alarmtimer_restart alarmtimer_nsleep_wakeup(struct alarm *alarm, * alarmtimer_do_nsleep - Internal alarmtimer nsleep implementation * @alarm: ptr to alarmtimer * @absexp: absolute expiration time + * @type: alarm type (BOOTTIME/REALTIME). * * Sets the alarm timer and sleeps until it is fired or interrupted. */ @@ -806,7 +813,6 @@ static long __sched alarm_timer_nsleep_restart(struct restart_block *restart) * @which_clock: clockid * @flags: determins abstime or relative * @tsreq: requested sleep time (abs or rel) - * @rmtp: remaining sleep time saved * * Handles clock_nanosleep calls against _ALARM clockids */ -- 2.29.2