From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 4E474372661 for ; Tue, 28 Jul 2026 08:13:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785226387; cv=none; b=DF+OXMdU9cvMcxgcfjQg2EiQOkBSSoLsqK/MkoEnyWIOOAEAUJ10HyCpzn+0usoohOoXOKRa3rxEdOwgKX/G9n2KIFevuV7KYMRldUe2Ab8KKk4bbjAdSiAqmdYwRl4QlisFaos1szhvJl5QEdw9VduuQCCqey/vtAdtGZefEnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785226387; c=relaxed/simple; bh=cKx68UWa5FspeSfm8ASYYf9j/ZRB+UhXqtT7rmCFtGY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ADCmfPoL9rdvJzRpWJLkixmyqa6qy+iI+lvwXHcx3wv53+HGHm5guRuZsFU1MkNuorEN171Gm+dfwJTQpC3+gM4UjuEVybJGMEbCCHJKbIEaOlnT3MV69LP+hLbCraZ8pYCxBYjBX/XAC2EaMpesycKDklrBxXYQriJ8Qkt1e4A= 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=lGrAXLtU; arc=none smtp.client-ip=209.85.210.179 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="lGrAXLtU" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-84847482584so526449b3a.0 for ; Tue, 28 Jul 2026 01:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785226385; x=1785831185; 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:content-type; bh=YnIf050MpYvj8A16jl2/xBo/BIv6LuNs9ZOKEYr8xmI=; b=lGrAXLtU/IQFEH0Y0KYo3egZh2VhscZfd5HlAV0BOj/GhemmMEa3g0ErCWx8FG5MsA vHp+szNtCkr0yW09GTEeKO7at8ZN1PliF6Ny4PnFZ0pgMc3rcjZ1hQ5dkXn2nDi4rcLC pWY1gQwIns5L/kmCXH2r4AYyuoJ3Vx7Nfd1VfPlmd9/6fGE9mjsaKXpPWb03NXoRmk6t aKjXYecqMg7rD3JI8M8i2TdmWDUp0wdC5I0Y194yHlohF9+Xx7zu0RAFsaFYiESvKclI aIfMrilU+gkwmqLeNpJr2xanEBj3a/CRm5t911BvRBkdN4n7aqRwVX89vyv2lE4YmdCt EZFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785226385; x=1785831185; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YnIf050MpYvj8A16jl2/xBo/BIv6LuNs9ZOKEYr8xmI=; b=IGpVLOadumB9paSD0E/f9CYv8TvSU0qv6ltfzP1JK02PhNM1i94OMxTrJ7Zwnl907j xJx/0j5H5MA6OVepBF7rAR3f5wYPBSoByP3kalEVCcfBUo8VU79sCB9mZNrx6B7QCM2k GZ+28qCe0l3JSqoCtwzbd0lTNhu6PydfdTkxairE2uy4Fj4vYYanBAoeQI9qjCY78cck Gei05SWPRzs6DZ2uC+CYmrGlPpgn/1cQbGwD9Rb3xK3mEV+Ftjbjp2r7QwI11rTZLRp0 7aXYSFHQWaAb2i943tlkTqm1R25NPpYF+b171txnyly1Hbj6bdmqQQYo/lxNcJaqbAYO i5ng== X-Forwarded-Encrypted: i=1; AHgh+RrPLt1K6pVT3c3+G/eniHsP3j00cBhQb259Bvy2Ci86vvzHGGapbK6whgwrvNwaNlDlnRedYhEo6/Kdmko=@vger.kernel.org X-Gm-Message-State: AOJu0Yws1CJUhJPKngtKg3Bu4Uk7xl1vedWXLp88QrttbrEFygr4i9Rr aktt9rgqZHzdczLjr6s0PPU9enwqDkArwhhS0B7xaPSC6HFl5gzNeE9F X-Gm-Gg: AR+sD12ipRWjyUEXEwsWO7v/UvRe8apy0LbHbKwor+M9MRnhkLeeexAbNfK2M1z7Bv+ 4GQPVSMkr/4a40REVil+ZkBmHfMZmtdZbzA//3atr4nPrLtci27Oy9KIExmFCj7699vG0gUdqpl tftLYtowwmobIyzfPxXK6VGVmCGYfR26rvXUcD2keKEoWKCPSziD7C9RU1fzq81dVmXXsqNbzCr nOC4vYP7gSr5whxHh3SCUJgnoEm3HVMK5yEfRBSJc6UrI/Wzkic/4RqQS6dPGEXQ/Xi4UlXgjAe Hqgqw1HeQ3/4TGFFJ3MpHBsS0bUXMImf005HWitSLOTQlVrivSQOLCukder69leGr+i6/siYRmL 7UmBnOmttEuxV9VFrMTGgJyhudr01Qgssx8hgWYHgpzDUFA69FKJUn3Dlv92I3yqpGz04mvekMA 2ikD17B9GafdXwbCEu72ArhQBYyhkEAdGG/MYs20Bv7Jws0Pcxt2eUm5TlPyjzSX27kAF8MSGPi 2N8VbccnE2wf3xcPmXBldd1RlAHlfT5 X-Received: by 2002:aa7:8896:0:b0:848:3576:3204 with SMTP id d2e1a72fcca58-84e932afca1mr1312135b3a.34.1785226385489; Tue, 28 Jul 2026 01:13:05 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84e5344c88bsm4197747b3a.53.2026.07.28.01.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2026 01:13:04 -0700 (PDT) From: phucduc.bui@gmail.com To: cassiogabrielcontato@gmail.com, Takashi Iwai , Mark Brown , Jaroslav Kysela , Kees Cook , Cezary Rojewski Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH] ALSA: core: Update snd_card_new() documentation Date: Tue, 28 Jul 2026 15:12:51 +0700 Message-ID: <20260728081251.23783-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc The implementation of snd_card_new() now uses kzalloc_flex() instead of kzalloc(). Update the kernel-doc to match the implementation and fix the function parameter indentation. Signed-off-by: bui duc phuc --- sound/core/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/core/init.c b/sound/core/init.c index 56dde5bd73c4..f3fa795ab932 100644 --- a/sound/core/init.c +++ b/sound/core/init.c @@ -162,15 +162,15 @@ static void release_card_device(struct device *dev) * @extra_size: allocate this extra size after the main soundcard structure * @card_ret: the pointer to store the created card instance * - * The function allocates snd_card instance via kzalloc with the given + * The function allocates snd_card instance via kzalloc_flex with the given * space for the driver to use freely. The allocated struct is stored * in the given card_ret pointer. * * Return: Zero if successful or a negative error code. */ int snd_card_new(struct device *parent, int idx, const char *xid, - struct module *module, int extra_size, - struct snd_card **card_ret) + struct module *module, int extra_size, + struct snd_card **card_ret) { struct snd_card *card; int err; -- 2.43.0