Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1253660rdb; Mon, 19 Feb 2024 08:55:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRyJjN9EA9oMZ3qoW3V07bRabUC38TWADrBMcshlyb66AhTsesnjHEjA7XCwDmr1rxLeov8x1Q1WCGR2yPcloFU7jDkUwGc4OI+H3j5A== X-Google-Smtp-Source: AGHT+IF3Rr4ZtZjD/HY3nnPs3FpWGH/dKcqMXSQaWJfrwwIHBVlnSBMtmhJNRufI4044e3SMNBnd X-Received: by 2002:a17:90a:fb51:b0:299:5ebb:1edb with SMTP id iq17-20020a17090afb5100b002995ebb1edbmr3850713pjb.26.1708361746583; Mon, 19 Feb 2024 08:55:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708361746; cv=pass; d=google.com; s=arc-20160816; b=NsfDxfMyO7CdymNNRfiQ4C+TqtyFNqRjpT7GQ9P4QVeeqe5Js3VCOuWKJrrxkfqqHu MVKZSZafFLGyVWUGZnp4vRNtYa6ZtKXRXTJRNfLUnmMZrz3RY1yzDQObfwXz97ZLEsju YaKK0RLHuNde96EbmE6+Se0fbPNmKzoiisHp2awG1D2Ss2e15Dk6ZvqD5j+PAhVIjoW2 voPUUAmG4/8O9EP07oaumBFPIkTuSv7tow/a+GSAJs/JKH9oet08W6jymMLlOCvLL6sR sMLKwr6BkbDnDGx2pqbCyUMy3jdCkTLIs6iIijhT2ba267iqds8Z7Wx/gc8MO8q3JD2d vwZw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z15-20020a17090abd8f00b0029897526522si4762865pjr.103.2024.02.19.08.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:55:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71696-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 34778B2457B for ; Mon, 19 Feb 2024 16:40:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEDB940BE5; Mon, 19 Feb 2024 16:40:10 +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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 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 --- 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; -- 2.43.2