From patchwork Fri Mar 17 20:57:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13179437 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 B3DEEC74A5B for ; Fri, 17 Mar 2023 20:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JTAv6VyCxxAhrqxVMEbhaQsQHRKibhu3YD7QcKDEDM0=; b=wO2hEPENZxHYkX /TMTDPjZVeK6ITyxi322zt32W8MK6K7y5oVa/6oi5pCO7XC8WF3YTb0Wk7az7IpyQJzdDJam+LyAX cCjrDtBSwnm5RcbBnYy28szBZULmWBBI3N9wkEHWnXjOtRjmRXwdcbb1Xt9cm/nHU0eB3iiouHB1p +mDM2zVGq8prCnX0bk7DNjD9Kw7+4TAkPn5f7hRbl4m86/AaQJrD5ALyGol2pS6vTkuCdBA7yEb+j nnLWT/KG4YAfVZrnjrb+yp1sEJarm0TS+YI5zl2JRWMeps8lJHVJOKq52ra7V4+kiUlmo0UzmhalK mSl++EczJmCnPCNCJQgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdH8g-003N55-20; Fri, 17 Mar 2023 20:57:26 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdH8e-003N3x-1B for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2023 20:57:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679086642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3ueSLYTbczhpfG9NghbRnTQhmVk9+C96iBsuLv5iJJc=; b=aMkwKbcmbo0XHMnrF2xjGpQGv9ClCcWGsUMv0IZg7P00UOMgg3is5UESs7d8XOGExtBAfF v9JWi/g7WKyZMnJkugCeKHBuGyU2bnUQnnPUMCTkfMYPyV8M4/+FPT8vDPHPnECD/3eQJ8 aygAIhqQvqqXyt4RfeKOeKDh9mBJpWs= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-173-iI9rfzR2PWeMN_7AX95kSQ-1; Fri, 17 Mar 2023 16:57:20 -0400 X-MC-Unique: iI9rfzR2PWeMN_7AX95kSQ-1 Received: by mail-qt1-f200.google.com with SMTP id br8-20020a05622a1e0800b003c0189c37e1so3136920qtb.18 for ; Fri, 17 Mar 2023 13:57:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679086640; 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=3ueSLYTbczhpfG9NghbRnTQhmVk9+C96iBsuLv5iJJc=; b=fYesqO6IpAZhJcMocCGQMxZKzZ0ccolmvkV67bWtd1+GPNBtYIODlhNprNsvMRdBFe V52AFrNvYsm91oYsaeGDRmqtg6A0LH8G78GROrJxCPcbqEen+tNUV4DRHtr9B4G7aAe4 Yq5LDHho8o4VvKXzWfzCCyywEnbE1caiS5/jR19T1FW+d1LqHzaMhiN+0/N66HpaMdV7 H8f/vR9nW5hcCHHwxVQhB6IHaaR8YiRs8qh76a5SsUBQZk4MmHXc9aK8wifQjxILx299 dHgsgQaKqrgHOfyEHF6cPYrBMPWhC1nTzV0+hBw6E70/cfQLIRJKcmiqqBWvzZYQlBP2 7A5w== X-Gm-Message-State: AO0yUKVowkTNiwYzGwLIt0SUg6BsTLL593OsBL4JbG/OjGI+rGeKIlr+ wnfC2zwC0U6lflHRA9cwFktFLJfUpWqHLgxZ197nEAsQ6yk9W2p9MwWCIJa+SwfwNPDxINzf6qQ U9qpGxoBYQrPMIrnY5Y75U2vWT8LhHxdtpnw= X-Received: by 2002:a05:6214:e88:b0:5b4:2271:b42f with SMTP id hf8-20020a0562140e8800b005b42271b42fmr15359022qvb.47.1679086639889; Fri, 17 Mar 2023 13:57:19 -0700 (PDT) X-Google-Smtp-Source: AK7set+i8S89kFUh6Def3I4RhtkIaIaYkO0oKXURsOnZTacJ2FYR4+jckCSLZDHDDsPzEFtMvK2Vgw== X-Received: by 2002:a05:6214:e88:b0:5b4:2271:b42f with SMTP id hf8-20020a0562140e8800b005b42271b42fmr15358978qvb.47.1679086639567; Fri, 17 Mar 2023 13:57:19 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id s20-20020a374514000000b00742bc037f29sm2295574qka.120.2023.03.17.13.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 13:57:19 -0700 (PDT) From: Tom Rix To: gregkh@linuxfoundation.org, jirislaby@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] serial: imx: remove unused imx_uart_is_imx* functions Date: Fri, 17 Mar 2023 16:57:10 -0400 Message-Id: <20230317205710.1672232-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230317_135724_480955_832C3C28 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. 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 clang with W=1 reports drivers/tty/serial/imx.c:292:19: error: unused function 'imx_uart_is_imx21' [-Werror,-Wunused-function] static inline int imx_uart_is_imx21(struct imx_port *sport) ^ drivers/tty/serial/imx.c:297:19: error: unused function 'imx_uart_is_imx53' [-Werror,-Wunused-function] static inline int imx_uart_is_imx53(struct imx_port *sport) ^ drivers/tty/serial/imx.c:302:19: error: unused function 'imx_uart_is_imx6q' [-Werror,-Wunused-function] static inline int imx_uart_is_imx6q(struct imx_port *sport) ^ These static functions are not used, so remove them. Signed-off-by: Tom Rix Reviewed-by: Uwe Kleine-König --- drivers/tty/serial/imx.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 84bc0e768726..dbb3af4c1a34 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -289,20 +289,6 @@ static inline int imx_uart_is_imx1(struct imx_port *sport) return sport->devdata->devtype == IMX1_UART; } -static inline int imx_uart_is_imx21(struct imx_port *sport) -{ - return sport->devdata->devtype == IMX21_UART; -} - -static inline int imx_uart_is_imx53(struct imx_port *sport) -{ - return sport->devdata->devtype == IMX53_UART; -} - -static inline int imx_uart_is_imx6q(struct imx_port *sport) -{ - return sport->devdata->devtype == IMX6Q_UART; -} /* * Save and restore functions for UCR1, UCR2 and UCR3 registers */