Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3277088ima; Tue, 23 Oct 2018 03:22:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV62jp7c7S1kul2C/QdGVx0QQVcdyR4mPTVydwE9mIfTdPkPkuqPFPDMN6NOsBjdX23VpSW5Z X-Received: by 2002:a62:5d0c:: with SMTP id r12-v6mr49725700pfb.123.1540290174476; Tue, 23 Oct 2018 03:22:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540290174; cv=none; d=google.com; s=arc-20160816; b=bGnpQE6yZSBUjhg5rJ+lJxRWXm0fMO/QFwkASSoq96LGDXSB2stnH6j8xUou7ThKoX s/1rV9bZjGBB9L4sgcyTXGQnocGTC1OW6EXsc17SpKX6QDQBQWXAkksE7UI0kyr67hRu sx+UUF1TvDpfrAig1bOkZQAeQ8lkFosJfQbd8bbW28KCxDnfyJsYi43vQ07NVfHfp8Ha Khfym30fBJzHiYB6G19BKUVUkqLFgbjW1rAjr98oUq11BD2C/qUrG2vHmAA6CRnNRzIZ aa1W8vwVl8tbqwdny+kEP3/r902fBv3Qfwt86Fqj5jf3DcpCAEKqEItdV2xcM4ObRAX7 jyIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=r11TmnrN0STucqqrcj06gKKo7FzgwdebMiVuJW9H/mQ=; b=CMNle5kZFuHlE3v9DVoley9O0WhkcIGGoMYdkejtl6fnWenyW7AWLFhe7mLo/0Hc3U CK0TUPUDIC4CdRrwCjkuN/gmFXQDayjDS843htXILTjgryHXBsOWVigbIou2ElQE9V28 QPx5FKSCdKsSlV+u5yCHXGNnJ0BQh/pE9gnA3DnMEabw/oDU2kCNWiYQfQZwJb0ai3l0 BHxmWPWonkxhdQqhLnxhJTaV2FyzNwN4//kNgZMm9NZXdLEX/yTGz9cnMkuF4e5+VxPI JBrqm9lx+M/QB/lII70fivIKL6tVKGKJ5VDQaruDCAVFrnFTG4gk07UirFea/Rjo3VJ3 4CIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=C3q1mUdl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7-v6si848560pll.209.2018.10.23.03.22.39; Tue, 23 Oct 2018 03:22:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=C3q1mUdl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbeJWSQv (ORCPT + 99 others); Tue, 23 Oct 2018 14:16:51 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:45864 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727602AbeJWSQv (ORCPT ); Tue, 23 Oct 2018 14:16:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=r11TmnrN0STucqqrcj06gKKo7FzgwdebMiVuJW9H/mQ=; b=C3q1mUdl2wlX vjOzDK3QTsfclYm94Mc2PEDRQrnT/QXeMn4URd4bKZTDb04qRt8UEd0oU4XGevyjwFYVOTO+xGZVD 3FItAZlU1ZKG8wNjAQTucJZHsksOh4I+rwYe72zB6S7IMlYiSleUfyNIygzqSbFYtJWl6IFbfUrWv y6/lE=; Received: from [185.7.230.215] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEtNs-0007PT-Sb; Tue, 23 Oct 2018 09:53:56 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 02CB9440078; Tue, 23 Oct 2018 11:53:55 +0200 (CEST) From: Mark Brown To: Olivier Moysan Cc: Mark Brown , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, olivier.moysan@st.com, arnaud.pouliquen@st.com, benjamin.gaignard@st.com, alsa-devel@alsa-project.org Subject: Applied "ASoC: stm32: sai: fix master clock naming" to the asoc tree In-Reply-To: <1540221046-11812-3-git-send-email-olivier.moysan@st.com> Message-Id: <20181023095356.02CB9440078@finisterre.ee.mobilebroadband> Date: Tue, 23 Oct 2018 11:53:55 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: stm32: sai: fix master clock naming has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 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 From 6be0f96d799f487f05eb412d362d5a1747d665c2 Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Mon, 22 Oct 2018 17:10:46 +0200 Subject: [PATCH] ASoC: stm32: sai: fix master clock naming Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Fix warning issued by strncat when bound equals to source length. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_sai_sub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 31d22abd3204..ea05cc91aa05 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -404,12 +404,11 @@ static int stm32_sai_add_mclk_provider(struct stm32_sai_sub_data *sai) * String after "_" char is stripped in parent name. */ p = mclk_name; - while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 6))) { + while (*s && *s != '_' && (i < (SAI_MCLK_NAME_LEN - 7))) { *p++ = *s++; i++; } - STM_SAI_IS_SUB_A(sai) ? - strncat(p, "a_mclk", 6) : strncat(p, "b_mclk", 6); + STM_SAI_IS_SUB_A(sai) ? strcat(p, "a_mclk") : strcat(p, "b_mclk"); mclk->hw.init = CLK_HW_INIT(mclk_name, pname, &mclk_ops, 0); mclk->sai_data = sai; -- 2.19.0