From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BB192ECD19 for ; Wed, 5 Nov 2025 10:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762340012; cv=none; b=DyFk7ht1TjcZPcV+VmeSEup8z0JOURYl5u92j6+XxJKEW4keYudpy0XmVpGknAOW61lazLambsFBgz1aATVea7JdKq3VXLsM43aBXEX421qIe1nXBq92IytO25BI7FYzFRjhtoBcHg7Na8i7OwqdW1kQAJORVW3P4DTqf1uwHTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762340012; c=relaxed/simple; bh=pCfrLcsz8t3wMBF3ucd8fQ0q25ppFlOvrgMTbR34P9s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h1x4OG1AOA7qKkVsVNsdaWwcUxca5CfLIrVh3nEIsL1Vs3ciEsyTL10RF8Dj/fOSnqHXAWwV4u2BmB69Yo3HkWSsGU/rEEA17sWajhkXAITioj+IHDlwJWKwGcfwroFMaLAK3Y/1B/EKueKYbweZa0N/JEpwVP2qsReRFkeKlJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gcUxhazb; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gcUxhazb" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-47728f914a4so34165545e9.1 for ; Wed, 05 Nov 2025 02:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762340009; x=1762944809; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yTDLgP3DABV4u5DAGZmkJHSeQLSJsvns9tvea9ggc54=; b=gcUxhazb4+NKzi7MiwQ+pIUUBC6vGngVGbFCoAKfdA3B2V5C4W0Q9RZzKBkOqGAe0t 4RiQJJGZ43HrQ4iXRoCJtJ+oqkY9hqQL0br2pYJ++GnIcv/k655ifPyP1sUghVR6vMCt E6HaS52sc/dlfdW3wE8j2AWphUtRJa9KuTSPsJf9wokLoYFW0btwqwJdPXxb3Lxj35hv Xy6l8WiPbS+RzXNG9ir04GfYiIJ9F38mac1wWNp+MT2CCTMlT5SevBwtfhq2+jvS0/VV xF/g8g0sG8Sv4J5lANd5JFf1Zig+LzOHm/mXTrc+/0gQThBsSmnuhw8ywbYoNI3vJuGs /UHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762340009; x=1762944809; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yTDLgP3DABV4u5DAGZmkJHSeQLSJsvns9tvea9ggc54=; b=YyDCViioEwhUXgljozNecEcoM/TqT3UrnDzcdUV+4Nj6B5UTQgdOy9Zo3wm+PbDQcb 8m4c7gkR1qKFMqWqkwkmx1iEM6eJS8Vk13hZ6uH56rSydc+LbHblWCDf3c2nNGya8hjn XWUwgY6+JKJDcqchOqH5+ab1F6BxCHlkYn40FprWdZ1cA4cCNI1WR2yQ6k3R3yflz8Cb zoD1nckHqWtmtIqn70oMHgfG/CAfzwj5GpOvIfq7Mc+gCpLm1ZIk6s+qLo0Cw92jrgzr ENyKvYAM0IJ8eXxCxePKin1w25FMaBgnf6uqif+iPxOZojtAxMmcihUOX1p+iA919n63 VZMw== X-Forwarded-Encrypted: i=1; AJvYcCXaCJDOaGCaUqt1554zbMWHwE39AdyKwvGWvnwOM2Ds54nx3/I7yPuVN1mwRFPDzdl1i0Auuh2pY/WE5w==@vger.kernel.org X-Gm-Message-State: AOJu0YyHulheiKdDsrbfGtGcZJ2tiSksbADBq53EJgpiDSOVh681ySQl mwFOE6/ohaxmhpbjGKd1hggH6PoLmBhjKmqdYPjIIwkXaen+6Eu282pB X-Gm-Gg: ASbGnctVf5Cnf0EkIAYWw/ou4pmNnuRK7DFSufsDgAzlUj2dNNHPsl7JBYLgsga4i0G MaPBqY0WtavpxvaplA/rQjCMDK4Et+WTbgJvVia59gDmTz2vpOJZPJyTqhpMmHkeHw6ie95VNQL beGz4E2Wm8whKETBqqiMAIocE0opDgnjQRuxphsBF2MAfClweYke1fBbW2zFlT1bJYdLxabXHXt goFeO4RmL3nQWL0Lb0ilNMdcnrgBzTAe7AmacFRH4vVvmFb2yv8MPmr+OB0lz6GVTVWBmU3/N6O kEUhA7CV5EVKITjPPum0q2gu8oD9P769ui7TQrIjsrPbnrv2mQT8Sue6Rj93J34RPpMy7+zR18H ndDau56e5ATAoVkBQt0Y3qK8pe0hVJSQNyjnnrNJnBckDOMRHWPWKIe+pWB5/EnBKSf8Kg6oANw HZ7VM= X-Google-Smtp-Source: AGHT+IH2YiAiQPeSvIZ6vlvughXEURO+RpbCjAPdtyKrRX2M/2lmyFu5+eM3XsBvCr4GOqHtGIAcYQ== X-Received: by 2002:a05:600c:4e0f:b0:46d:ba6d:65bb with SMTP id 5b1f17b1804b1-4775cdf26d7mr22907745e9.31.1762340008390; Wed, 05 Nov 2025 02:53:28 -0800 (PST) Received: from gmail.com ([147.161.143.107]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429dc1f5ccasm9562064f8f.25.2025.11.05.02.53.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Nov 2025 02:53:28 -0800 (PST) From: hariconscious@gmail.com To: perex@perex.cz, tiwai@suse.com Cc: khalid@kernel.org, shuah@kernel.org, david.hunter.linux@gmail.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, HariKrishna Sagala Subject: [PATCH] ALSA: ac97: Fix kernel-doc warning for snd_ac97_reset Date: Wed, 5 Nov 2025 16:22:30 +0530 Message-ID: <20251105105229.112172-2-hariconscious@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: HariKrishna Sagala kernel-doc populated the below warning for the non static function "snd_ac97_reset". "Warning: ./sound/ac97_bus.c:56 No description found for return value of 'snd_ac97_reset'". Added the return values as per the kernel-doc format. Signed-off-by: HariKrishna Sagala --- sound/ac97_bus.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sound/ac97_bus.c b/sound/ac97_bus.c index 1484fc178fa4..8a44297964f5 100644 --- a/sound/ac97_bus.c +++ b/sound/ac97_bus.c @@ -46,11 +46,14 @@ static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, * @id_mask: Mask that is applied to the device ID before comparing to @id * * This function resets the AC'97 device. If @try_warm is true the function - * first performs a warm reset. If the warm reset is successful the function - * returns 1. Otherwise or if @try_warm is false the function issues cold reset - * followed by a warm reset. If this is successful the function returns 0, - * otherwise a negative error code. If @id is 0 any valid device ID will be - * accepted, otherwise only the ID that matches @id and @id_mask is accepted. + * first performs a warm reset. If @try_warm is false the function issues + * cold reset followed by a warm reset. If @id is 0 any valid device ID + * will be accepted, otherwise only the ID that matches @id and @id_mask + * is accepted. + * Returns: + * * %1 - if warm reset is successful + * * %0 - if cold reset and warm reset is successful + * * %-ENODEV - if @id and @id_mask not matching */ int snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) base-commit: 284922f4c563aa3a8558a00f2a05722133237fe8 -- 2.43.0