From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6D1FC00140 for ; Tue, 26 Jul 2022 17:50:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239644AbiGZRuS (ORCPT ); Tue, 26 Jul 2022 13:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbiGZRuP (ORCPT ); Tue, 26 Jul 2022 13:50:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 726C9B876 for ; Tue, 26 Jul 2022 10:50:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1A7B9B818ED for ; Tue, 26 Jul 2022 17:50:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C85B6C433D6; Tue, 26 Jul 2022 17:50:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658857811; bh=oR+l1h1MF1vN8m78iopGfwp9crpfWIbUSuis05J8Ap4=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=bgl3T8GBdM+1bQh2EuhsjginkSwhpoKnkXfBMHDJ7WbakC98g6fT2A1Xg3exBA+NM ZbOm7HmbPAmyzge/s7C1/89phrvSnyQQCVj3fjc7O81RrOxOtCT2xo7sks/6gbqlnQ fddpTJZ++rYugGepeMBX80j46zd9QRwOSnbKWU7hf/hSy2yNjmSrFEKMEZ5urzYs19 cp/E9mUklzuMhz6H4uKI6huGJ/VXHS1IhpT2MPSbRj2LdMghvWPSElkurfjemnWoBD nYozsqj6v0O4dMaEAt43K8LORu9grkwpRhiwC9K4kcjG8rGbXMqIOkiWfAMtOY2TRA eT+GNDerlYfsw== From: Mark Brown To: Jiaxin Yu , angelogioacchino.delregno@collabora.com, dan.carpenter@oracle.com Cc: aaronyu@google.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org In-Reply-To: <20220726153130.27584-1-jiaxin.yu@mediatek.com> References: <20220726153130.27584-1-jiaxin.yu@mediatek.com> Subject: Re: [PATCH] ASoC: mediatek: mt8186: set the correct string to strncmp() Message-Id: <165885780832.800364.7549018957037633100.b4-ty@kernel.org> Date: Tue, 26 Jul 2022 18:50:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.10.0-dev-c7731 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Jul 2022 23:31:30 +0800, Jiaxin Yu wrote: > Fix Smatch static checker warning. strncmp() here only needs to compare > the first seven bytes, so in order to make the code more clear, only the > first seven bytes of the string used as the comparison are reserved. > > Bug report: https://www.spinics.net/lists/alsa-devel/msg145608.html > > sound/soc/mediatek/mt8186/mt8186-dai-adda.c:78 get_adda_priv_by_name() > warn: strncmp() with weird length: 17 vs 7 > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: mediatek: mt8186: set the correct string to strncmp() commit: 7df92384c86f36d0452e7abad21c7eaa91aeeef7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark