From patchwork Mon Feb 19 16:40:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 203174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1400280dyc; Mon, 19 Feb 2024 08:40:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVk8F0Q4B/vD6i5sqZyCMdZUPt3Jzw2BwIwtpLbWLGtg6aWaTdL1Qwwx6xnOHUlfPb2nFJbM3Ga8m+WHgYGMPCkjku4iQ== X-Google-Smtp-Source: AGHT+IEQU5AtoD2z9vSjsgXNkBHWShw9sM4a363o31vU0Me60bL7a8d5jNHM1f0tqq0gG2a9jh2E X-Received: by 2002:a05:6a00:4f91:b0:6e4:700a:a3 with SMTP id ld17-20020a056a004f9100b006e4700a00a3mr1950600pfb.1.1708360841182; Mon, 19 Feb 2024 08:40:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708360841; cv=pass; d=google.com; s=arc-20160816; b=kQp1k16WbKVJeEfO42h8D/7HSk6T604NuhiKB9LKtGyxYKfKWKeXXrjfDA5C/vBCOw gRjNVp5jC8NoGzPxn3XtvS6Jyw/Oogx8Bd3eSdYuLAKdAbrXb4BigeU1U9e6wqoQb7oZ JzSz7PvmVnr4CM21YGyzcZAAq66NkPnb4awv5neKvphqQJnUc4e1+iJsLNB915M5wCM5 zntjU9Djl+ZfXNj8uxh4AxhNX7iHORyATt7p3SwwAdpAEz/tOMjeKJbWQ0ytAZUFvhVo GeYqBsHW0zehA/KAke5ut9D4NVm3OtG+5pi0eBTBV8aNV6Z+WxsyEkmX5SCi9q3VPpAB AgGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=aWnNccAiTUjVXKX2RmHz2334a0dYfqfAPgkPcqZqo7E=; fh=hy/fHpM33ouFBw97TrSsRvVB2JNfGDEKOGs5yDRBBMU=; b=lpgAivtIb6WvSwSpqrJCs39lqxjje0GrbO1rkRBi3SsvfFw+lv+HiC1CZ5v5IovDfe R4tXx2Ls3uhIAfnQQD1Sp8kam+pejOQrBbzKwa4THTSHTg8FsjRg6OB685f9sO645vNk 0e2aL8P0WYR8sGpR0p9CPfahr6A/VZ6274bgrlFJtTFJIGZHPUTgHQgWaMkMbiATAffS WrCphxhCwrk0ZUnee2KbeL1arWqtOFOqaiCU+P6CCL0HAMSWyJWNBVNp//RQw0Zi+2mD y8xbwtHKW8XMmBKRDhl7GDeHJnopMffNwtbBAfOe68FRtK261vv6wvK2uipPj24IRz0H EDfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Birp0xit; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71696-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71696-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cr10-20020a056a000f0a00b006e466c88677si1489924pfb.220.2024.02.19.08.40.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:40:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71696-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Birp0xit; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71696-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71696-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 119D2285FA4 for ; Mon, 19 Feb 2024 16:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCDA441A86; Mon, 19 Feb 2024 16:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Birp0xit" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 540AC405D3 for ; Mon, 19 Feb 2024 16:40:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708360810; cv=none; b=cWVJX92PbXMgL38fwBvPovdpqXbvvbqFgTOmOnjCx3bxtIJuPKNB0fpiB4dRvVIO789QSoWtDi9kBq4CbzYv77AN12g1kQOe739HRZw2PyVLISDhMQ9ml8DYrkzw6ENFWLX91vxVl72qg5wNzmTkjgQBD6qLjdRARy4quFEe7vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708360810; c=relaxed/simple; bh=95GvX6IkRKyNVrApn51thQj4Nye8v5hz784wB2DCO04=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TRW1IEV0q0JcWNN1TKkgp3V6eaYmfIsKLK/Cf9rZXYj1fVEvqL7Aso2ezTHGmfsEq6RVC0UKJwxfr+VVhlZpzqfcvjSFpMr7LoIyYdCmztl9ZiccLQd5p4wY/yanYfSG/a6l/lpV/OaufxgUw6RtVcYuQxU001Q8zk7utMTJ53E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Birp0xit; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708360807; 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=aWnNccAiTUjVXKX2RmHz2334a0dYfqfAPgkPcqZqo7E=; b=Birp0xitCPl4MeEf+wXUlklgjwWgks7hD//N0uGhZVPH+LMxLucBzbm12kd1NRgm+0Q4r5 TUHH4KrxLm3pP4KBRTRAUkrl+lY5LHcvi72IP04R6+BIvSwi6qW13ku/iLCVqF+v34U4pg RQV0uyiPugiSjxz/+SccKq/GzpebOrc= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-301-vNaxvvWQOqem7xRflWcJIQ-1; Mon, 19 Feb 2024 11:40:05 -0500 X-MC-Unique: vNaxvvWQOqem7xRflWcJIQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F0B3C280FEC9; Mon, 19 Feb 2024 16:40:04 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.39.192.115]) by smtp.corp.redhat.com (Postfix) with ESMTP id A15F6492BE3; Mon, 19 Feb 2024 16:40:03 +0000 (UTC) From: Thomas Huth To: linux-m68k@lists.linux-m68k.org, Greg Kroah-Hartman , Greg Ungerer , Jiri Slaby , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH] drivers/tty/serial: Remove unused function early_mcf_setup Date: Mon, 19 Feb 2024 17:40:02 +0100 Message-ID: <20240219164002.520342-1-thuth@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791346177315423264 X-GMAIL-MSGID: 1791346177315423264 Compiling a kernel for the ColdFire causes a compiler warning: drivers/tty/serial/mcf.c:473:12: warning: no previous prototype for ‘early_mcf_setup’ [-Wmissing-prototypes] 473 | int __init early_mcf_setup(struct mcf_platform_uart *platp) | ^~~~~~~~~~~~~~~ This function seems to be completely unused, so let's remove it to silence the warning. Signed-off-by: Thomas Huth Reviewed-by: Jiri Slaby Reviewed-by: Geert Uytterhoeven Acked-by: Greg Ungerer --- drivers/tty/serial/mcf.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/tty/serial/mcf.c b/drivers/tty/serial/mcf.c index 8690a45239e09..b0604d6da0257 100644 --- a/drivers/tty/serial/mcf.c +++ b/drivers/tty/serial/mcf.c @@ -470,33 +470,6 @@ static struct mcf_uart mcf_ports[4]; #if defined(CONFIG_SERIAL_MCF_CONSOLE) /****************************************************************************/ -int __init early_mcf_setup(struct mcf_platform_uart *platp) -{ - struct uart_port *port; - int i; - - for (i = 0; ((i < MCF_MAXPORTS) && (platp[i].mapbase)); i++) { - port = &mcf_ports[i].port; - - port->line = i; - port->type = PORT_MCF; - port->mapbase = platp[i].mapbase; - port->membase = (platp[i].membase) ? platp[i].membase : - (unsigned char __iomem *) port->mapbase; - port->iotype = SERIAL_IO_MEM; - port->irq = platp[i].irq; - port->uartclk = MCF_BUSCLK; - port->flags = UPF_BOOT_AUTOCONF; - port->rs485_config = mcf_config_rs485; - port->rs485_supported = mcf_rs485_supported; - port->ops = &mcf_uart_ops; - } - - return 0; -} - -/****************************************************************************/ - static void mcf_console_putc(struct console *co, const char c) { struct uart_port *port = &(mcf_ports + co->index)->port;