From patchwork Thu Sep 5 23:19:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Min-Hua Chen X-Patchwork-Id: 13793088 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2131CE7AA1 for ; Thu, 5 Sep 2024 23:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Pc+1NbaEgwk5DVwqgo8n+Ca095xZK1X1lzbgByBHfz0=; b=Df59qYKjXM/Gz5Xf2/yiLfoGZp 5ttt2FhOcYHvfhkXPJQvXq+I/ITBWEXGoHi1G488JucseHrnUhLTJV+IwImFf60TyEVUZDT7iLHKR kLofrTskmz5BaYfCq/ebwtjEfGhd5BLonbPvkqbpB5dLIwD3LP3YJdSVsLqoAc4bUP2nIEcNm3Wfk c4YRKZQJD6JKeebvZ4/zx1dYH3a9R/cv9N37NIbMrTZoa1mp79dY/lLSBuiQMmPlfkcaPh1bzsaGh Du09m5IlS5cFGZ8BuqnlW3PDJCEi+7j34hSKyi+VZobofFUea/Tl2zM6aUTNGMAykZv7wTQiXWtrS Sq44cnSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smLmf-0000000A6SO-2JDv; Thu, 05 Sep 2024 23:21:01 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smLlf-0000000A6MD-3YfL for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2024 23:20:01 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-206aee40676so13692965ad.0 for ; Thu, 05 Sep 2024 16:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725578399; x=1726183199; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Pc+1NbaEgwk5DVwqgo8n+Ca095xZK1X1lzbgByBHfz0=; b=cB86lfphzROxdXgqFLRMDJp/jJLguuyGEhs/R8YOpUGWr3w8oy54A/TwH2lYxfzJTa A9s0vbnyzx8oqUkp9AkZ1GHaEch0jyIpi51bhoYosNPn8bHF70fvBsR++jmSRkzmA/Cs Bra8yB8fM2Ri2TpA7MGKiRFeEnN/qWwWpQmkt0qY43IuLrgmICMMPpO7LRHtEMYuXvvu etzhaYGIRQ6CF4lZvxD2acSJG26e+i/qWmGBst5rC7fS4eUbyCSryOJ4zYcsT4DZjvZl 9YZzSXonviuSUMqHgpVe3LJkIMJBw52orXY7d2SYX1ln1Ra4U74sTVcwKh3MRhuqvvXB KVJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725578399; x=1726183199; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Pc+1NbaEgwk5DVwqgo8n+Ca095xZK1X1lzbgByBHfz0=; b=LbxBuwkDQvU7QP6Zm6ETlhyuLhAnRuLuT0oIJMCn2dYIMbfc0qXyHujM1H8pZl2n28 rMWTQdbshw4rZ4lMVoWInz5VUTmGt2dA+n7baEtW9FlW9ufKr7/pexZlCVMXMnfYMf4s HwKBmbo4ZmQ94abDj+Ek2A3DvwjdYGXtEE/6cCIBJ6kpbMgYf3apf4Le1pPpPOqgKBhm 3cpI55bMZm56+4l+mfTfNrwkMjPKffzHzPjqAKHpwErIGvtlkygf1niujZXy4n4Xa+Yw YbfNebzf4ZzP2nyJu22loWamzeJN+6rAwJoIRuRLVxXiWu0A8EgUxv6NpVeuiYOvz9h/ 3gFg== X-Forwarded-Encrypted: i=1; AJvYcCXSsLpZdgkp0ScyTkOeL/WGfZ+MZkY80KVQxKkdfpqli7D7nRdYWlqzO3ytMqk2bIXaXCNvYDlZrmYonByGVH3C@lists.infradead.org X-Gm-Message-State: AOJu0YzjV0qb050+D+Nn0YnYpSyL3AA6deFsUQ1ijqfWME7Uu2zI2TXw eFHPILlTBka8Mp7aVPnh/kvC7e32XSbnHnrE/yt20OgS65QwyHJM X-Google-Smtp-Source: AGHT+IFqhCSxk5wcCDKYA/04Mtq+TEYkE4BgR41Z/ZkxCK3FeA/LV4tEz4jSZ+yhxBoSq/bzW8Yfeg== X-Received: by 2002:a17:903:1211:b0:202:49ea:b6e3 with SMTP id d9443c01a7336-2050c48f8camr244672755ad.58.1725578398819; Thu, 05 Sep 2024 16:19:58 -0700 (PDT) Received: from localhost.localdomain (111-240-109-89.dynamic-ip.hinet.net. [111.240.109.89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-206aea559adsm33375395ad.215.2024.09.05.16.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 16:19:58 -0700 (PDT) From: Min-Hua Chen To: Greg Kroah-Hartman , Jiri Slaby , Michal Simek Cc: Min-Hua Chen , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] serial: xilinx_uartps: make cdns_rs485_supported static Date: Fri, 6 Sep 2024 07:19:28 +0800 Message-ID: <20240905231930.343759-1-minhuadotchen@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240905_161959_911820_CDE69E20 X-CRM114-Status: GOOD ( 12.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org make cdns_rs485_supported static to fix the following sparse warning: drivers/tty/serial/xilinx_uartps.c:222:21: sparse: warning: symbol 'cdns_rs485_supported' was not declared. Should it be static? Signed-off-by: Min-Hua Chen --- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 2acfcea403ce..777392914819 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -219,7 +219,7 @@ struct cdns_platform_data { u32 quirks; }; -struct serial_rs485 cdns_rs485_supported = { +static struct serial_rs485 cdns_rs485_supported = { .flags = SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND | SER_RS485_RTS_AFTER_SEND, .delay_rts_before_send = 1,