From patchwork Mon Feb 15 11:57:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 12087995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE709C433DB for ; Mon, 15 Feb 2021 11:59:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9777C64E04 for ; Mon, 15 Feb 2021 11:59:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9777C64E04 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ViR7CSwlX7NuSSZ90x3KLpaAKPy7tfc1IZO7cbUXbvw=; b=p774bvqXxZDepgQw0z4mLRZmu B4dRqo4xm43jSCIysFoi9/1xpKnE6q/AGvWzTkc38/p04sp/HExveiaWemx3PVEok3Nr+FGU1P3BG 8TaK4FDAC0joevIH8uNgbVj2WdZTI/IYseUaUhB0FamltU8cXV68mTgwir0H4dhaeGdg3bEfrwKjW WfEBLfEYL+p9ZDBfFS8Nh0uFIUgC/HUIW8i896O2/C19I6ulVIBnUNM2Pfchuoc7kjcbhSyzs/ucg Uzu8lhjs1jKADnrWCIVJgqzP6F5vmVrf4vDL/TTexRlu29KrvNnIFTGkp3ESOUBFP97M2py4f8aEB fPLmhYz5A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBcVT-000344-1K; Mon, 15 Feb 2021 11:57:35 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBcVO-00032a-27 for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 11:57:30 +0000 Received: by mail-pj1-x1033.google.com with SMTP id gx20so3787705pjb.1 for ; Mon, 15 Feb 2021 03:57:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=getDYJkOREyrDs/0rynDHefIGcA6GT+0fzVf6Cpniv4=; b=KrifFaHePzV27JoUDHI9pCTeJ1V7Hmvyxc7tJtWlkgmlEi3WA6ZT8/Db26uL2Ye3jg 1S7UMCP4bbkLYeAkavaSGSEHrI6g/MW7T/Js3f04Dcj7R1Y2vB869LGWE+K/WaytthD4 PAB6EI7ET0vd2LRDse8OIMXXBG49OY6XMeWi0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=getDYJkOREyrDs/0rynDHefIGcA6GT+0fzVf6Cpniv4=; b=tgYYiK/aQ1Z6UTiJKKN2ZVy9/OHyX5iHxb6tQ0pGm7vKzjzZwXAwhaTVGUNfzDYJNQ VYLcXlLfPw3J3eD5Fsl18RcxwkQ7faBw466RGc6us+P129Y06qJud3YBRuvds92zkUvi 5tv/CyW5N/gziT05Fbs5QyIm15ioFQ/aviFrjc6Mm2j+T8WhrwF5hpMeVdShmXfS6Dk6 AFK/gNjHTKCW9RwfXM/s2OHMzpodFBjGMOhvhV5PhFcthr+BKlIoJa5EtaBUuV2sc3mu Mg2tmzQ8qqLas4AOIvEp3km8sMnR/Udt4FAdw/TZaXBEdDaDJdN15Jc2xt4mZaVGY2fZ n4rw== X-Gm-Message-State: AOAM533LGwubgZqFhI8NzWmHofepGYeJ30wochcXrnck1X4jY33biUgN fB9/PynGhjLZudRUiDuY8o/2EA== X-Google-Smtp-Source: ABdhPJwu5oJbkzX3rOPC1H1Om9T6YHyFR1lXTMEXvstdnb98Q0vmBHsvSUvTyFE1cRj8S+TAdd17mQ== X-Received: by 2002:a17:90a:b28b:: with SMTP id c11mr15657206pjr.62.1613390247984; Mon, 15 Feb 2021 03:57:27 -0800 (PST) Received: from shiro.work (p345188-ipngn200408sizuokaden.shizuoka.ocn.ne.jp. [124.98.97.188]) by smtp.googlemail.com with ESMTPSA id a5sm17929504pgl.41.2021.02.15.03.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 03:57:27 -0800 (PST) From: Daniel Palmer To: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org Subject: [PATCH 2/2] clk: mstar: msc313-mpll: Fix format specifier Date: Mon, 15 Feb 2021 20:57:10 +0900 Message-Id: <20210215115710.3762276-2-daniel@0x0f.com> X-Mailer: git-send-email 2.30.0.rc2 In-Reply-To: <20210215115710.3762276-1-daniel@0x0f.com> References: <20210215115710.3762276-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_065730_143953_AB1B47B8 X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Palmer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The output dividers are unsigned int so the format specifier should have been %u not %d. Signed-off-by: Daniel Palmer --- drivers/clk/mstar/clk-msc313-mpll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mstar/clk-msc313-mpll.c b/drivers/clk/mstar/clk-msc313-mpll.c index 09f578108eef..61beb4e87525 100644 --- a/drivers/clk/mstar/clk-msc313-mpll.c +++ b/drivers/clk/mstar/clk-msc313-mpll.c @@ -123,7 +123,7 @@ static int msc313_mpll_probe(struct platform_device *pdev) mpll->clk_data->hws[0] = &mpll->clk_hw; for (i = 0; i < ARRAY_SIZE(output_dividers); i++) { - outputname = devm_kasprintf(dev, GFP_KERNEL, "%s_div_%d", + outputname = devm_kasprintf(dev, GFP_KERNEL, "%s_div_%u", clk_init.name, output_dividers[i]); if (!outputname) return -ENOMEM;