From patchwork Thu Mar 30 19:47:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 668615 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp115885wrt; Thu, 30 Mar 2023 12:52:18 -0700 (PDT) X-Google-Smtp-Source: AKy350bWT2r1yDMl+AINMTPJdOS5x0gP7pQbFh1mZp4zjj4YVrhIu/k91411JnvXeRRQEXwqZr6H X-Received: by 2002:a17:902:f243:b0:19c:dedd:2ace with SMTP id j3-20020a170902f24300b0019cdedd2acemr19934381plc.18.1680205937928; Thu, 30 Mar 2023 12:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680205937; cv=none; d=google.com; s=arc-20160816; b=oW4UxFbD+CCcLmYKFeGjCn4xmC/fiiUSmIMJKmApyfkxcL1y8o86kCp/F5bQLn9Bnx XUm3qasX3vs/E0tUQgvIhFxgdwpamtfpk5MHE7pA5GeUDLbgAaqBqSnv2wzy1UgA2BJ8 8DP8wMBB41X1LkXe2JWAcEmU2kJOGmk5BJuRI1bjkaBd6LogNr+iSTKrgM74AZbOxZaN j5cPgqRCabgUH8wg3iSqemg/NYE/8oHCVpvs2rUg41P/3AiuodvgXBdEOV3PL5rVQRUL Z7P95r50lL42w9uF0CN6j8sckOJZBqWDCtG9c2fp1CWnjKby6lrJiG/V6VJtxFPJvzrd Wt2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mrG/avnO6Jw8vyPADZB+w9EQHRUILPfCUei653/oKCI=; b=nbOkMtTTze7eYvaHUoD2DbbUmJdhPzOYo0KlJ+amfVMBYv8iiwOlwaRnEMp+BTKs1u izG+6VFoG63aoBPUsku8h36V6/BVW6Z7fJDRiAjb24nDNuXBpZq6RuqV0NoWdV6oMS2Y D+R9TSzPs+EqTtcx5+ddn8bTgCdIQDtxpjU34SLB6Gtlpypb4RyrvASONKu5F7yJPtkP j5z0QjaiR5voFcUfQbt+sdrjb2ayVNq3ejuq0hbLWpctAuOV5fMQQksKSPSCo6EpgTQU /S+kIL22Gn4RxDIGv3mTRKy1r+QTbVxtqEW6QSp3bUkwFY+jdkSapq8fW6b4rmGzoB5t 8zOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBJ34MMT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id n10-20020a170902d0ca00b001a1a8d97914si236836pln.437.2023.03.30.12.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 12:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PBJ34MMT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1B8318619F; Thu, 30 Mar 2023 21:51:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PBJ34MMT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 09D7885F30; Thu, 30 Mar 2023 21:47:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6471585EF3 for ; Thu, 30 Mar 2023 21:47:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=vladimir.zapolskiy@linaro.org Received: by mail-lf1-x12d.google.com with SMTP id c9so15546954lfb.1 for ; Thu, 30 Mar 2023 12:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680205667; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mrG/avnO6Jw8vyPADZB+w9EQHRUILPfCUei653/oKCI=; b=PBJ34MMTQKBqvAgxwl1ROM0xuvsatrdc5Bmxr6UaCXui94FD3dioRikUO8aQmN22Jz 8fkAVjJZmDuFn4jRb2r4cBVJBfevQ5+VZ893xmr2/f6RkAZGwpPtFCBkjWQLuPbjB4cW xcTa8dNfYitFrK/ogDibGmg5nbYNoun7IyXSTbkXSiciW7T/SLZYZCr5vpBPmkt73q4J +qBgkCMBcer/5MhpVxdQR5Y7dWQ3+/o8ZuziSS4zuoZaICQo5fojDrPiKTEhOwtZqt1i Omvp3UnGT1TDRoaVZhRe0LNhYm1PruY/AR02rDH7QbrXu4rmFvACqOryRQqD0IeawBMr 5QOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680205667; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mrG/avnO6Jw8vyPADZB+w9EQHRUILPfCUei653/oKCI=; b=5a682RP4pMajs9xl4YNqp2MyV4BMXNTXezMwt0rVy5bePycZNFBvDLuJPAJ02b+Zc6 Kthv65AzCDq+TrslFBPkOKVzQRzoBC/5OYMl+oLdhvoSNoKrteDcaBp+4Htlx9MtKA9d UD6bjGgsrAm7BLq926qQy3uvfqmfrUvF+fk4vJiB38tOZG90vlmFYh/kJZiXCBqhE7Pw 8ABR217sYg8LimJzhutOJ3nF6wwEVnzCc0UNc4qHn1kfhxmroJc1XSIrgtu52XdBvd2W RAQvrdl5S71KJFySU3tTvQbv3G2evJrTslYdkUBzxriTrLMbuJ0Je8m3fxrzrGivtRzk gzQA== X-Gm-Message-State: AAQBX9fMeCJgk6Dh04Iyyi788h6oeToQeLsgivxIzXK/xxE5zf/uxf0L NnZqQgfYeGGQT5d0RS4QBU0rTE9dE6p7zjIdJMHWNg== X-Received: by 2002:ac2:5684:0:b0:4e9:c792:c950 with SMTP id 4-20020ac25684000000b004e9c792c950mr833912lfr.1.1680205667537; Thu, 30 Mar 2023 12:47:47 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id i19-20020a2e8093000000b0029f3e2efbb9sm46674ljg.90.2023.03.30.12.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 12:47:46 -0700 (PDT) From: Vladimir Zapolskiy To: Tom Rini , Simon Glass Cc: Ramon Fried , Konrad Dybcio , Bhupesh Sharma , u-boot@lists.denx.de Subject: [PATCH 5/6] serial: msm-geni: fix a compile time warning from msm_serial_setbrg() Date: Thu, 30 Mar 2023 22:47:35 +0300 Message-Id: <20230330194736.2400593-6-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230330194736.2400593-1-vladimir.zapolskiy@linaro.org> References: <20230330194736.2400593-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 30 Mar 2023 21:50:39 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean A compiler warns about a missing function prototype, which is valid and fixed by converting the function into static one, also fix interleaved local variable declarations and assignments. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio --- drivers/serial/serial_msm_geni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index c9813f06ace7..03fc704182d3 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -238,13 +238,13 @@ static inline void geni_serial_baud(phys_addr_t base_address, u32 clk_div, writel(s_clk_cfg, base_address + GENI_SER_S_CLK_CFG); } -int msm_serial_setbrg(struct udevice *dev, int baud) +static int msm_serial_setbrg(struct udevice *dev, int baud) { struct msm_serial_data *priv = dev_get_priv(dev); + u64 clk_rate; + u32 clk_div; priv->baud = baud; - u32 clk_div; - u64 clk_rate; clk_rate = get_clk_div_rate(baud, UART_OVERSAMPLING, &clk_div); geni_serial_set_clock_rate(dev, clk_rate);