Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2870710lqt; Tue, 23 Apr 2024 04:25:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVY0Lu4pHzsUokIcyG1esl1y8VoKxuVaWvecv18DlC0fMdHKmdy94aCKa24gH2f84hwlta8GyZEcuPgMWh/kebW+GEe4gymQ033XfuO+Q== X-Google-Smtp-Source: AGHT+IG+BgpLAEbWaL77FSom6K5qv02K04fXT5DSVLx49wGgzSrii193Loqr3+o92EWIfok2ri9G X-Received: by 2002:a50:8e58:0:b0:56e:2ff3:bb89 with SMTP id 24-20020a508e58000000b0056e2ff3bb89mr8588280edx.28.1713871513952; Tue, 23 Apr 2024 04:25:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713871513; cv=pass; d=google.com; s=arc-20160816; b=eO1YbTEKRFrLmWTjq1mndi63rpinFvWlOFAz5SRvAT7+473GxAI69Tt0h38Vu+8+Rg DNo8RMjdH3pUxsgTnLhZTB9aZN8ihwCx7OW/h9gr55lVC6zB0iej36cLYYcbveT9UzJr UoodoSOMjEBgedMRbvEK0y7/iA2p1JrCe26o84dcTAiuFjcJGJRMYgALu88/B7IMuAuI +tKbsHLN1AM/U/NjovBgV+1TlhhIKA/aPXtk0IYO2xk3MDmnMgrGeb71UeUQ/dp9T2le 9ks8K3ZY8XU8PWD2/Ly5/Vxs9Fhe3AEivL6YlPIqVKRuCBDIkLyWnlLid0122gTVTZn3 Df7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=yooErJBigyjo0SOAFo2gUEaSYwKmOo0iaTHxSpAeDhE=; fh=s+7U+YcLEaZhy2XYsm1qTOwxyRdbzz0HCJl8Oqj37+g=; b=jdYVBewXMEiwoFM8q/RNUMomuUZPD71KaT4CToi1W0Rpn7dcJnBzlS+WdV811IsIA6 5nwWER8vRDrCLI24l4v8sfMYNui78wh6wac0WWy8DcvPWBobS+9LDg5mZEGVC2Qonw5B 67gHDsmQMJU8w1ov1p+GB02nmv7mtp2h2XC8oW19YJSLjCJhfP77chuxlWL8PPIv/X/p m/UmE5PtUlowB7gFjJyDzkNSrH+Ip041pMVqd7j5k9lse+2hHoSGTmF7Zrq7qRa67SB+ 9pkkmJEzzfJLY/ZHoLCQtjWCJ4Arwo8ODLvWP5hbaChgMaEptkgo22FwdLOfFXjVPec3 P5hA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=Zdv9eV9e; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jX4Pltxf; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-154972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y10-20020a50eb0a000000b0056c06c4ac81si7050402edp.486.2024.04.23.04.25.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=Zdv9eV9e; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=jX4Pltxf; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-154972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7E73E1F238F6 for ; Tue, 23 Apr 2024 11:25:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 700257E579; Tue, 23 Apr 2024 11:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="Zdv9eV9e"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="jX4Pltxf" Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) (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 DD80F634EA; Tue, 23 Apr 2024 11:25:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871506; cv=none; b=NPZJHt1ktUBs4d4DjBFfGBy994YhNB0RP+q2yX0xaOc+aRE9lMUcXYB9W/xvfzzEX5N7Y33oel6V/HKDYC2yRqjr4+inoTXgwnwmiakg91VX6aVQaR9pW3sjLBf6OX+oT6vhTl6GRrDN7z9ZUMb+nYWXF3Tem3oGMkd7E+FrFuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871506; c=relaxed/simple; bh=r+cc1d5mrSiT1NWZ4GMqLqmCRSJ7o/Mrj/vYFpuWVao=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ifWfd8mJJcLR02vA0Co9JZVdwqsmp3crinZxNg+X+dvJOB3ra8Hn/gtnfA/0taRggOrkbtBpVB02CXu6UkaYkwXrZZZDC72YjOkb9Ov53akKgT4vsODGtAxlhh37zkrxE2p1Jc37+uvnFgxsqXJbhaWC3hay7nhUKhYn+vAlxsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=Zdv9eV9e; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=jX4Pltxf; arc=none smtp.client-ip=103.168.172.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id C39C51140163; Tue, 23 Apr 2024 07:25:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 23 Apr 2024 07:25:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1713871502; x=1713957902; bh=yooErJBigy jo0SOAFo2gUEaSYwKmOo0iaTHxSpAeDhE=; b=Zdv9eV9e8w6YRsR7Wnv+Xj8xCN pThapi9PxUY9jL5o04WMw1PfLQpWxRiyf4po6fBvI4Wn6PvlwQ3rSnI8K5V172WK /KjNNIAtOklnQSxzW2GM4TsrzflZslHwu6AVBYcLsD9/Al113QUysRt3TEzSty9J qjIVRRE1mYrtjXW2K/7UpbqjaUechIRXuJKghSjapU5vLMq1I4Q15cugFjIdEWlf mFLnJek09OI6iiVThT17fmZiSNvXQfYNdUh4Y96VnxvzPW7AC2jYRpjF/uOsd9V0 LGw1H/xlINZ75eexLbSgJxjStq0CvPOR+Um2HaD+OnBlkodR+S+Y+GqAK89g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713871502; x=1713957902; bh=yooErJBigyjo0SOAFo2gUEaSYwKm Oo0iaTHxSpAeDhE=; b=jX4PltxfG+270EN3VFiDrE+oar+iEcr260aatAKJ49yg 4VyX+uEwjL4O0dbjQ9/AIZ/9YMTPUuqjJeTk999nApl0nz9T/j/zqz+fEddvuuIs jmJgqDnXsyIl7cHO0sDj49tlqjphXX+BsHcuss8r0E69bi1VWO4c472CkbCXYbam hL1emYpTRVQTP93BufQCoES6Za9JBnhcC3Wr29MQxyPbIR2m0sZ9SGi4/EMKKbjV SK5Y/ZIqF2E/EwoSpCWN7t8bMeUEyFu9DS686Y1vy0gxjsiwtdvgvQsywC31fU0B g9y33FEY9qr+7QkX7pEmc4p6zh3UZtrR70eQqoynHg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeluddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Apr 2024 07:25:01 -0400 (EDT) Date: Tue, 23 Apr 2024 13:24:50 +0200 From: Greg KH To: Stephen Rothwell Cc: Andy Shevchenko , "Jiri Slaby (SUSE)" , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the tty tree with the tty.current tree Message-ID: <2024042326-numbness-arrogance-ce7c@gregkh> References: <20240419141947.4bc16fa4@canb.auug.org.au> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240419141947.4bc16fa4@canb.auug.org.au> On Fri, Apr 19, 2024 at 02:19:47PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tty tree got a conflict in: > > drivers/tty/serial/serial_core.c > > between commit: > > 9cf7ea2eeb74 ("serial: core: Clearing the circular buffer before NULLifying it") > > from the tty.current tree and commits: > > 1788cf6a91d9 ("tty: serial: switch from circ_buf to kfifo") > abcd8632f26b ("serial: core: Extract uart_alloc_xmit_buf() and uart_free_xmit_buf()") > > from the tty tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc drivers/tty/serial/serial_core.c > index c476d884356d,b9d631037ff6..000000000000 > --- a/drivers/tty/serial/serial_core.c > +++ b/drivers/tty/serial/serial_core.c > @@@ -285,6 -273,53 +273,54 @@@ static int uart_alloc_xmit_buf(struct t > free_page(page); > } > > + return 0; > + } > + > + static void uart_free_xmit_buf(struct tty_port *port) > + { > + struct uart_state *state = container_of(port, struct uart_state, port); > + struct uart_port *uport; > + unsigned long flags; > + char *xmit_buf; > + > + /* > + * Do not free() the transmit buffer page under the port lock since > + * this can create various circular locking scenarios. For instance, > + * console driver may need to allocate/free a debug object, which > + * can end up in printk() recursion. > + */ > + uport = uart_port_lock(state, flags); > ++ kfifo_reset(&state->port.xmit_fifo); > + xmit_buf = port->xmit_buf; > + port->xmit_buf = NULL; > + INIT_KFIFO(port->xmit_fifo); The INIT_KFIFO() call here does the same (same plus more) than the kfifo_reset() call does, so I'll just drop the kfifo_reset() here and all should be fine. I'll do this in my tree now, thanks. greg k-h