Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp705007rdb; Tue, 23 Jan 2024 12:09:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IErn9G4qxbiXRRzKsGJcfq/HTinyELaFc4hDMl0mwzn+BRu4HJt/PCVRp1bA0ojYgSNqQzR X-Received: by 2002:a05:6830:12d7:b0:6dd:ee5f:5021 with SMTP id a23-20020a05683012d700b006ddee5f5021mr468531otq.54.1706040590032; Tue, 23 Jan 2024 12:09:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706040590; cv=pass; d=google.com; s=arc-20160816; b=c3ZC2PiRcmUvhFpQr3n8FhV84AIHjTrmYCGeDK+m20WzaIh7+VaLTVie4FPhOHxpzJ /DzZ650wzBOicfQcscYBdlMOIygxzcFaLoYcUpbjQn7Jfgg2AFzdP4j52WgowY/TT1yf RQkbL5i6QiNNP0Oy9mh5z9VsxyX6Ajyk9PNVEwAS7MHHI5QfvIkpSEQZ9Liy5g7wqTgO FL8PTL9y9dwa1YwzTawmZ0b9RfJHDUAX/m2/We8y5t+pzVMutq88/kD20/P/ing0cu3h cgxhS2160JfqNPn2ZzXz7oKWKhIKoIASxAK9XqYK1g7MY8fYxYJLKZlW/GQb19yl4vCi txdg== 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; bh=WVyboAU53jJSmIiiITRNoCs833HbmgT94nTh8Zz+ZGE=; fh=f9TMJviC7Fx7dyIWkZhwfI4hcGaOBFzUp4uK1iuu6CE=; b=L3LtcqmpvKc2hCMO4t0IVLuiJkeMd7PAf0/26qrZ+go7swQjXGzXo4UULl92J8rBO9 wEXn+DUUvoL12Ykbx3bNzH+4N8GO1qmSj4NTqfq/Fg8KeVWMYloFPICsW6QdCGybAihI l/UUzOIUNSdMpSXmFNRIeaefQCsOKXjmAjcVyImL6iy+gWv8fOijD8C0kIom+hV+r9gU VjZxtoKpwRYWF5xnmm780V4mA7luEmrejmZM2eQ3Iy5jgwZ/1OFp2HnziF3YB08+uOBD fxAjMIcMDuJ0Fcrn1DcW2DOWz7Vt4ksfFk4Hv2iEU/D+A+gDv2ZUVlai3pi1SXnnXcPk oArA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-36007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36007-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 11-20020ac84e8b000000b0042a391d46f8si6352349qtp.246.2024.01.23.12.09.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 12:09:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-36007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36007-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C31BC1C27888 for ; Tue, 23 Jan 2024 20:09:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46AF786128; Tue, 23 Jan 2024 20:09:28 +0000 (UTC) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05C7B82D8B for ; Tue, 23 Jan 2024 20:09:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706040567; cv=none; b=pIeAGElW2cAHx9yBIJIFTLLoqjc70i1kvDgz6U3MdT7gvtQW0/0+M6QKGa3hx3/qi4oBEtF1SiUjRYi3fEOA+9L8Azisui0PxktenBV4SbGA9Lqop4IAKf3IHhQpNXe4dxI6xm8pWlsxVwAWUGOV6UU50MdrxtRdvTs8yyIP//E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706040567; c=relaxed/simple; bh=EKUqlFr4uDKDaZclr/fZ6Kuqd0TROioAJn3MAot9Wcc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=gSl1MSOEjCDd/31qe+s4jcecxfqVybSh/GSml7Js7QmY/GpDMjdOiIHeMQbftcmS9dovtmrJIjVoh5sfnmyE4Vf7GnlLp0V/kiLwqVsofXxFwu4rM0HBI/KaxrFPs1IheucMKzCB47zlz9JHRLEqcza19WSkBaRZa9LxU6Isg+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:8ec8:24bf:c2ed:213e]) by baptiste.telenet-ops.be with bizsmtp id eL9G2B00T2E7G5801L9Gb5; Tue, 23 Jan 2024 21:09:17 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rSN4M-00GNTe-Ku; Tue, 23 Jan 2024 21:09:16 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rSN5A-00Eta1-I1; Tue, 23 Jan 2024 21:09:16 +0100 From: Geert Uytterhoeven To: Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Johan Hovold Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] serial: txx9: Add missing #include Date: Tue, 23 Jan 2024 21:09:15 +0100 Message-Id: <818be2380061c19fe65819f7b7f10ab6e7aaa082.1706040343.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 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 drivers/tty/serial/serial_txx9.c:933:12: error: no previous prototype for ‘early_serial_txx9_setup’ [-Werror=missing-prototypes] 933 | int __init early_serial_txx9_setup(struct uart_port *port) | ^~~~~~~~~~~~~~~~~~~~~~~ This function is called from arch/mips/txx9/generic/setup.c, and does have a forward declaration in arch/mips/include/asm/txx9/generic.h. As the TXX9 serial driver does not support compile-testing, and thus can only be built on MIPS, fix this by including the MIPS-only header file. Signed-off-by: Geert Uytterhoeven --- Note that the initial version of commit 8720037d55dbfa30 ("serial: extend compile-test coverage") did enable compile-testing for SERIAL_TXX9, but that was dropped later, cfr. the discussion in the thread at https://lore.kernel.org/all/CAMuHMdXKWDB89Hm-LQcpfTq=0yjm_xvQsQiD4QuEtW=yVymuRw@mail.gmail.com --- drivers/tty/serial/serial_txx9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_txx9.c b/drivers/tty/serial/serial_txx9.c index e1897894a4ef58cb..abba397229581851 100644 --- a/drivers/tty/serial/serial_txx9.c +++ b/drivers/tty/serial/serial_txx9.c @@ -23,9 +23,10 @@ #include #include #include - #include +#include + #define PASS_LIMIT 256 #if !defined(CONFIG_SERIAL_TXX9_STDSERIAL) -- 2.34.1