Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp308265rdb; Thu, 15 Feb 2024 00:09:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX098N+m+skZU1LHm3sFCoWbLF1gJBN5Q2WpGRD/YXQ8uZoAWS4Bvhi4932I3B9qw6WMbT0WyO18BV1CGnzEIhaTm0b5X62/j4RlKpc6Q== X-Google-Smtp-Source: AGHT+IEWGKDfacQTR77eRT7cJsF9TjLIur1cqwf3iFb1cS0plSzGF6RKeueqlDFWxY7IWvQ3h/2b X-Received: by 2002:a05:6a00:178c:b0:6e0:51d7:5805 with SMTP id s12-20020a056a00178c00b006e051d75805mr1743397pfg.1.1707984564676; Thu, 15 Feb 2024 00:09:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707984564; cv=pass; d=google.com; s=arc-20160816; b=YTO6d+iFaKdd6IfQfYsL4K9ldNJhHcCTGuRa/Q11ehI6hMumdfeGWaP3Q48wiueXI5 HGtfo+yVC3+QXDS6Hr7nJnYkSoEhZ3Obid7dnb/SoUXLNzziRUDJdSHe/tKsqEGWLdku /7GIdOVmNZJZoCOU/c0kcekfsO8+B8pP6cS9MUyrJNQl6dRmRGUTpU4sk5dEjuo2lN+o WCJ3C9mNY40l6L45yc5MuaVTdffD6YqUSv3TexBKIyuYvVK06vvCO/AFUFduM0m/RcPi ZLQiKLK7+CxzXzL1GPEuNujQQaIS4lXl99tRFuNUhDzOzQLpMP1DisXJWpdwzb7SiyHP EepA== 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=QJCVJr8PVd9r5fQnZJFD/Wp4xyPQGkYi6AhuDBJjlCE=; fh=N8sl+dS0r1LxZ+CRJVFQjUFrle6fYKoj0WXy5zV0LD4=; b=aHRqwqAUfsEbcXKP3s02VfDj5PPPP1xDiFSSJqL/cXmH1Hx1OmzV+WJr/YAQ2l4SIA CkThD+ZE9fdwk7nXdabWA2lF0hQw2gLmmkx5NdmxZftanK/C7SLT+gQ37CGBT/wYs24F 2XvCprD8Shz9dy1ycxRdOmEboC7L3vuh4KAo1tX+B2nvltdqcxdtLDxUDfFnkpVQUHnw 6l9La67YfotfUkvRojEZTjivjB3m8ewSUb7Vmwh5BHdEY7MmSAxXOWpzJfFBYHw5SYQp WbSO26wyxKTvbQwpxxYVBRZ2lXNHGmObrn3Bx8ui9JC+7OPFsN96DG6Iq8o5zM80yYXe kRFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=LyzZCx36; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZCW9e38H; 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-66384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y73-20020a62ce4c000000b006e0eb324dddsi740670pfg.153.2024.02.15.00.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:09:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=LyzZCx36; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZCW9e38H; 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-66384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66384-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 771CA28B10E for ; Thu, 15 Feb 2024 08:06:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 774F311713; Thu, 15 Feb 2024 08:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="LyzZCx36"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZCW9e38H" Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 42AEB33CF; Thu, 15 Feb 2024 08:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707984362; cv=none; b=qLn/Cu4vPm4qS5g9xxygzqJypzT5J/LqO+uMspRAGIG3HSkBhX7QkWrdH6l2LM78YMUkqtc1e459FIZOBDbUCE45kIVngPyy8a4T4hhoWqRSnOLRwbG15nQhBdWt+EBOVjgG9FVnVxWjaSTSv7IHiFO3eddqdfcs70/9c32DHIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707984362; c=relaxed/simple; bh=xIvB3bnCjrfDnU+qMJacA7Osthh4NMLZgOfe1hsBhxM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DfCJSngdjLErCLwMI9MPERw0uDnaG0/m3HPoN9H217PUqxrYWZEvpBVY8aIHvNXXVVmeqdOM+dKh8lJNLqL/SSv8AfPsHOyzC6oWN8JhH33d3mcD1FO8Xu1u4g3vLsVZt2D14RwzTZ9C/DGiJ5dEpxbId0pz+unDZ7zjHjeg2+4= 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=LyzZCx36; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ZCW9e38H; arc=none smtp.client-ip=103.168.172.159 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 compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 8828711400B0; Thu, 15 Feb 2024 03:05:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 15 Feb 2024 03:05:58 -0500 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=fm1; t=1707984358; x=1708070758; bh=QJCVJr8PVd 9r5fQnZJFD/Wp4xyPQGkYi6AhuDBJjlCE=; b=LyzZCx36G5H0CHSscypAaZ0lGk Ny8Lvs3cb8e75fjzYd5NcIl7jknxP9P1rZ9jdWZMkZ6HC6JLrbhEiXlA+kUjcpb2 aIBAvvtanOprCCZmuyJbjsAWVyc9oYDE/rzSDMmYjzNqVM9YTX9/iSM5y8RR7Q5y zXuPifo+cJkuQRstRyAvyO8LM2prsBtvXb7L8d95PkjU28rPURSTfIhhQrnhsFJ0 0LNhZYX/rM/1fXfLKTHTtTtEcjVz84ezX2eLCIpTBRSh2fv6/x9mznGKI9loRvs+ /i5a11oRgV9BM3ulMh7TauqN3PBbR1XNQzwrSbkzdNyiQBxTDme/P/gPsibQ== 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= fm1; t=1707984358; x=1708070758; bh=QJCVJr8PVd9r5fQnZJFD/Wp4xyPQ GkYi6AhuDBJjlCE=; b=ZCW9e38HS9gA42CWuduHKq9nELlVi+JpVEEeC28v1OH1 fDs2YrotxAJ4GsxjUByRM2QbHFimGrrWowjbsy+Lznqw8eshgyI6TmR7N4ixY2Af TtNA+31DQXI7ZKuTh1a1iE3mIGjrleVzl1VpH7euFbbK5NFLpM4Vz2wt9fKxPnKD idAqjqcE+WAvgzuD27Vubge9fl8WxNrhvQjxfi/cyWAftW9qQXNQF6OOB7tCdFGc bvBBYFRvC5d88VFsN2EJGSV1XliTJL+SusgS3KnfrEmsR4ojCbJ1QwpnukKTz2sl p1IIaW5PVrAWvBpi7iD+qGKx7VCcOUXgioMEvcv7nQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelgdeiudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeehgedvve dvleejuefgtdduudfhkeeltdeihfevjeekjeeuhfdtueefhffgheekteenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Feb 2024 03:05:57 -0500 (EST) Date: Thu, 15 Feb 2024 09:05:56 +0100 From: Greg KH To: Stephen Rothwell Cc: Krzysztof Kozlowski , Francesco Dolcini , Christoph Winklhofer , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the w1 tree Message-ID: <2024021506-probiotic-wasp-9439@gregkh> References: <20240215132952.6c83ab23@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: <20240215132952.6c83ab23@canb.auug.org.au> On Thu, Feb 15, 2024 at 01:29:52PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the w1 tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > drivers/w1/masters/w1-uart.c:314:24: error: initialization of 'size_t (*)(struct serdev_device *, const u8 *, size_t)' {aka 'long unsigned int (*)(struct serdev_device *, const unsigned char *, long unsigned int)'} from incompatible pointer type 'ssize_t (*)(struct serdev_device *, const u8 *, size_t)' {aka 'long int (*)(struct serdev_device *, const unsigned char *, long unsigned int)'} [-Werror=incompatible-pointer-types] > 314 | .receive_buf = w1_uart_serdev_receive_buf, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/w1/masters/w1-uart.c:314:24: note: (near initialization for 'w1_uart_serdev_ops.receive_buf') > > Caused by commit > > 178cf9db9e6d ("w1: add UART w1 bus driver") > > interacting with commit > > fed99212acae ("treewide, serdev: change receive_buf() return type to size_t") > > from the tty tree. > > I have applied the following merge resolution patch: > > From: Stephen Rothwell > Date: Thu, 15 Feb 2024 13:23:35 +1100 > Subject: [PATCH] fixup for "w1: add UART w1 bus driver" > > interacting with "treewide, serdev: change receive_buf() return type to size_t" > > Signed-off-by: Stephen Rothwell > --- > drivers/w1/masters/w1-uart.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/w1/masters/w1-uart.c b/drivers/w1/masters/w1-uart.c > index 6950d29d7dac..a31782e56ba7 100644 > --- a/drivers/w1/masters/w1-uart.c > +++ b/drivers/w1/masters/w1-uart.c > @@ -289,7 +289,7 @@ static int w1_uart_serdev_tx_rx(struct w1_uart_device *w1dev, > return ret; > } > > -static ssize_t w1_uart_serdev_receive_buf(struct serdev_device *serdev, > +static size_t w1_uart_serdev_receive_buf(struct serdev_device *serdev, > const u8 *buf, size_t count) > { > struct w1_uart_device *w1dev = serdev_device_get_drvdata(serdev); Looks good to me. Krzysztof, want to pull in the w1 changes to my tty tree and make this change on top of it so that everything works properly going forward? Or do you want to handle this when stuff is merged by Linus during -rc1? thanks, greg k-h