Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp865944imn; Tue, 26 Jul 2022 11:26:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1teUdxnBTsTrkRTSD45EZ6l/qIZENZEGheuLe3jGmFnKrmNN/t4KgAupR6u/6+yC8rcUEDD X-Received: by 2002:a05:6402:5201:b0:43b:f621:3ce0 with SMTP id s1-20020a056402520100b0043bf6213ce0mr12702269edd.22.1658859964270; Tue, 26 Jul 2022 11:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658859964; cv=none; d=google.com; s=arc-20160816; b=UW0id0Q4NQwD88hNtJTnyzNGS60rRhjeiW1peYXpH3x6nt5IZ+nzrNdm0LHocfQPs6 LNCCodbrYLtXKu4SlDt7CyiADxDb6a0fiTDul99oRhbfk6H//E4lWf7GOZyeugT+6tRi 6xn1hRUZsuP2j/ossxAuONU88eUZ2tCnqCbAQqeXdeZ5+mXwgmzqlDdHZifSrzZoL7QO 8fnqg4cnIsfmB/ksMwqEXZBpZpTp42utteM92zuRTWzJEz0TIjr7d3LPE0ZIrgimNFN/ 7/EdUJxF0dlAwWxBkyLV51IXySMOsXLTS+AO99vm8viNYXETU/gSUD6XeNSE60B565JT AKLw== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=l/TaOfiWz5vOQfAH0NfC6Q/3PGl2h+r2/JLbo7Trp0U=; b=bCEK9YDrZi+SZZWRhRBeXqsgmky1NK9VwKOQ/zm4SoOETpnmhH28Y+gloxoooR9yK7 rJJAxgGVMHUx/Euw+1JqhaWjN5Eozx05bpkHk27MJ9VhUbX+cHeZuG1qYOcBNWEFRo/1 TgKDJHWCmY77OuU96f3s6sM40Tj9bCvWphxfyABYuQHZHIe6yl0E4SLxMu6s9jbfytTH DOvT8pWARUdkSwv1cHTf1F3ufx/lDKp5x7gLUghxCfLibP8w1kkpNzAbL34NPorhr6d6 oinGBgbxlo4dgnPX6FGh1D7f5wrTd0z9qm1qAmuj2FnDzHLcRBMd9PB9WGUKCNfGbnSm /RBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bgl3T8GB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a170906524a00b0072642bbc8cfsi14343957ejm.914.2022.07.26.11.25.37; Tue, 26 Jul 2022 11:26:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bgl3T8GB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239641AbiGZRuS (ORCPT + 99 others); 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 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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