Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2244556lqb; Mon, 27 May 2024 12:44:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnVWgXZgVnVq0/pbm/wlZwclg/53EI9gDDvyk++RffU5HtSOXIwWmPJBnIjkdBcRazqfPfS6W1j9chCwuMSknNsOFevZv5pY5FJ1XqRQ== X-Google-Smtp-Source: AGHT+IEJcTg89ZMNVNIs6SG8DSWiBrECIsxHxPX3FO3sMH7No00MoSfEduntO80GVffWyjTLUiQy X-Received: by 2002:a05:6a21:3482:b0:1b2:1fdb:1682 with SMTP id adf61e73a8af0-1b21fdb16e1mr10783627637.27.1716839086740; Mon, 27 May 2024 12:44:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716839086; cv=pass; d=google.com; s=arc-20160816; b=TpNd1dGc9tpP24YeS3nV2G/7Kh63bZ5r++jBl74o5BIo/vhxOCwsw/brU5TdO+CMBE QIjYDrZpUJSb9OUTTMCJ0ovxKdqKgnx4X+Z9nE7/nUE+5dAtrm+BCwwofblMLN/+w7ec 0NSLOqAa9DmTFOt9bJtQ6/CY3pRvcb32BwcKvHDZgV8u7QvFsBjUomHQ8u4oLzQEA4jd OcYvSid7X0s8YHtXnV00vdnU/TSP3y4I7zCPqSby372yM+1BnUWFXC/w6G7MkWEcdOQI bT+sFnQAVTSYnWaSCfkklzsl1KabGb08ugVoJlzyUhUdxAGN9eOIUdfLQHxWESPESECU 4Q1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=qjq5tjwzvdH+BRd/8f1cet9dJrekncN/7BkMFy2h8t8=; fh=5K2xYhtAxM2YPRQtcw5GWwaC3pxttS0n4dCJu4tE/sI=; b=mANA1VtfHfXA1Ioe0f8p61GE/fVAhWuqw4C00xrRkLX8h9eeJbvUaNrD7Sgk+HpOK2 KFtMXVElYxkQQuJTRlJjYKlbMcWKoyeYsoHkpWksLIsQKgzJVaZKtgZfelrmuAJ57J0K Dd/xY5RZXuAwq6xm1QQ9c4tpSNhD/KVtOkxzfzAgbiHLWer2kjSW1uBCYo6AdpuxyO4b vMUmDeJK2tzW1YJ5/GK+e5ERH+jga+jU2SMEHyJ1+Axf0ePC7moU5PLFpUMja+bFtYUL gQVatJLmEX3pWZ0OPLZij0PO+A3W2SPrnki3Lgw7ZCPnu5choVUMURStF4irPmvoO1fX 1eOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mY4WexIp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191372-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c97019bsi65543015ad.327.2024.05.27.12.44.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 12:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191372-linux.lists.archive=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=@gmail.com header.s=20230601 header.b=mY4WexIp; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191372-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 6004F2827F1 for ; Mon, 27 May 2024 19:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE586161309; Mon, 27 May 2024 19:44:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mY4WexIp" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 95A3517E8FC; Mon, 27 May 2024 19:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716839079; cv=none; b=sDKMltONTNYwdF/TBrJc12ev92S3Su49hF2+YQO9vWQCbcqtEanpq+Yh55jBGNd5Op+Y2WBEFWzYw0Pt+6diBwAIGRxtiQzJ1LCXjMOulUrZzWCdNd9hGFaheIHlJWxZVGtYS0bloDC+ikq+OtJR4rju6a7n3jVea5kDdjIkcuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716839079; c=relaxed/simple; bh=HLBysQ19YFHo8F8KB4gsrAUlc0wV9Cj9zKghrvonL+A=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=WgkBAQ1GXq5gEJjvqkfFj/7fOv+jKM0s5xmcqJmv19Y+JJN6r/lsQeFWwNI1FjdPB51wCXnRXNo07lqmTauHkLOQeioxcsgQbkH07aUYsKfJar4a5U5IC3+kWvV1YlAlc5g0fAc+eqasCtTbiXNQMzRFdyZEtaEWEXCLjPfsQBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mY4WexIp; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-794cbdca425so11863385a.0; Mon, 27 May 2024 12:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716839076; x=1717443876; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=qjq5tjwzvdH+BRd/8f1cet9dJrekncN/7BkMFy2h8t8=; b=mY4WexIpSKX9O4zJPv6zvaKgPZynocHG2LDji+3r+5xV59kNlYTxG3fRMAe/naiDZN Gijr4xJy3VxUmU11IHqZRTsLIQUMMRQRJpUiE1sgGJ28gbiCGjuSvAFB+7uVbaUiwcYt i3s5DTMJNdQuQnRyjqxJtCO9/ito4AFj1FG70nu4FY/p2drZ7B2FJAs336L5JubgVZM+ UXlmTzHmzigz0BscNcFd3lmxJ6PBV1TXOUu6dK1IhGOzbRovQP5sQt6n8Z8pDYibfzz9 8wGUjCltH1vWlv3aUF1bGtkeeCK1DDdvQM2d/mMR1kWFSfVNXyxWLreLKMAOWfsnl5Ep DSWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716839076; x=1717443876; h=content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=qjq5tjwzvdH+BRd/8f1cet9dJrekncN/7BkMFy2h8t8=; b=L7ggcIhgIjzKWqatwCCcEEaydpZ9IBi/cOWsS6xg1iGwbYpFxo1eCYKKMkxakl0tbw vrU6MFimFnEA0uIxjGZZVd13/Jyp0Ps+N6oeQ7N6je0C/mA7x7+yubOmd1KeLPN3zgN/ e2xslsp4bZk6nEYo5wung8f5ktjFv5Lwqh89D89xyJdqSsMjpaDuMueHOZSwfnsocKIZ G03NQ5rQkaWGKXeQd04NpUD+PcBTaArFmw4qqrMzY1LtKNGxkmnWzM1Jy2N957oOTg02 7nvzftt2SI4KSyzevynpZVA96/7r9At3HvU9weXfk7K4bPw2+gf2U2YgPUhahJMQ//CJ 1Qfg== X-Forwarded-Encrypted: i=1; AJvYcCVc2ImRKqrIkB+iPPFTbDsmWlXEpFAm5NS2EvBh22Y3as8N1Z6CGIaqjXCpupHPxaJYPMWBH0DhLAp5xb2By599lTezXf2Zvi7BijRKHEh7JQ8JZlAgNX4uWNnTmhWzfp+YOkRoL6bNtqhD X-Gm-Message-State: AOJu0YylgwqMkWwJpL4qiGISa1vy7dJ4CzXE+DDOBTVb7Ld8ftBgQERa r/g6ZvFBfJBTWrIzKyTMfBPb4aAx9ToK8f7wne3YmS0/ozEJIOI= X-Received: by 2002:a05:620a:1270:b0:790:ed57:1354 with SMTP id af79cd13be357-794ab08d7c4mr1156185485a.6.1716839076381; Mon, 27 May 2024 12:44:36 -0700 (PDT) Received: from [120.7.1.23] (198-84-205-203.cpe.teksavvy.com. [198.84.205.203]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794abd0740csm320873385a.81.2024.05.27.12.44.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 12:44:35 -0700 (PDT) Subject: Kernel 6.10-rc1 b,Build error with [PATCH v5 2/3] serial: port: Add support of PNP IRQ To: Guanbing Huang , gregkh@linuxfoundation.org, andriy.shevchenko@intel.com, rafael.j.wysocki@intel.com Cc: linux-acpi@vger.kernel.org, tony@atomide.com, john.ogness@linutronix.de, yangyicong@hisilicon.com, jirislaby@kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, lvjianmin@loongson.cn, albanhuang@tencent.com, tombinfan@tencent.com References: From: Woody Suwalski Message-ID: Date: Mon, 27 May 2024 15:44:42 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Guanbing Huang wrote: > From: Guanbing Huang > > The function __uart_read_properties doesn't cover PNP devices, so add IRQ > processing for PNP devices in the branch. > > Signed-off-by: Guanbing Huang > Suggested-by: Andy Shevchenko > Reviewed-by: Bing Fan > Tested-by: Linheng Du > --- > v4 -> v5: change "pnp" and "irq" in the commit message to uppercase, modify the subject > to start with "serial: port:", modify the location of the header file pnp.h > > drivers/tty/serial/serial_port.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/serial_port.c b/drivers/tty/serial/serial_port.c > index 22b9eeb23e68..8504bae1d2c9 100644 > --- a/drivers/tty/serial/serial_port.c > +++ b/drivers/tty/serial/serial_port.c > @@ -11,6 +11,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -221,7 +222,11 @@ static int __uart_read_properties(struct uart_port *port, bool use_defaults) > > if (dev_is_platform(dev)) > ret = platform_get_irq(to_platform_device(dev), 0); > - else > + else if (dev_is_pnp(dev)) { > + ret = pnp_irq(to_pnp_dev(dev), 0); > + if (ret < 0) > + ret = -ENXIO; > + } else > ret = fwnode_irq_get(dev_fwnode(dev), 0); > if (ret == -EPROBE_DEFER) > return ret; Hello all, trying to build 6.10-rc1 fails for me in serial_base.o:   CALL    scripts/checksyscalls.sh   DESCEND objtool   INSTALL libsubcmd_headers   CC [M]  drivers/tty/serial/serial_port.o   LD [M]  drivers/tty/serial/serial_base.o   MODPOST Module.symvers ERROR: modpost: "pnp_bus_type" [drivers/tty/serial/serial_base.ko] undefined! make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 make[1]: *** [/woody/src/kernels/linux-6.10-pingu/work/linux-6.10/Makefile:1892: modpost] Error 2 make: *** [Makefile:246: __sub-make] Error 2 Reversing the patch "fixes" the problem :-( I am building on a Debian bookworm system, gcc 12.2 Any suggestions  how to make it work? Thanks, Woody