Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp51633lqj; Thu, 11 Apr 2024 09:34:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmUk7ovBeP7a2omrb/lxTVFMuVFkRuP4PAwHa6cFJOw7z4UcPzZTiTWNm0KbK07L35ThGGeTgk+F1Y3c1kVEQ6hktDCABuzoa4gXWsSA== X-Google-Smtp-Source: AGHT+IG/JDwsRnQaSqeTTKKvuMrdhGG/zyV3/Ze5DQEm35k/K7Ba68DyIkhUos8U9tQSjwtn2OUh X-Received: by 2002:a17:907:869f:b0:a4e:2d7d:3fab with SMTP id qa31-20020a170907869f00b00a4e2d7d3fabmr183586ejc.10.1712853257396; Thu, 11 Apr 2024 09:34:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712853257; cv=pass; d=google.com; s=arc-20160816; b=UPCSMWQ+92kTUnuSkO48UDtO7Bc+ZK3NifwBnBv8wmGpMiz47gqM6d1gDHTcFDbxat 5Fop7n3QmU4m14JssRpGaTkYJVR2eCHKpDSK2xy6ItTmsUMDyD/cVzUndrH0nOFrXMWi Z2iQ2YMLjbC40GBYU7wVjQWLw6GNq04SVZnGIUDtDGr8V9taToHCurHr1sgf4lJGsEyL pbLWB+jRlDX0MnAQcW0w8QlftaKmzB5vMwYrz23a24srevcR9DZYBECWlmiawavUR/yy lM9sUrdsEioUIqL+YAkeDJCIHZ5F69C9K0j5Do3r7PYsX1GjAZYknhUXOK5Vw1aksEbb 5a3Q== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fl12uZ8o/yOCWgQSdPpy5k35ORLGY8Lo/Z/2sz1z1GA=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=OGwGlJnHxO1AngPqDkWb53LvBIRfM1YGKF7L884GyCcF23LXRqEVp9CW+Ucf0Lrco2 Av8/m1wwTywLy6WtRAzWZ/kfL3V4ePlZrWRCvjvaOUa2DgB2YaoxZxj9CQT3ViNHdQCb kMX0wF7D2ADVvRnMxYOjqaMwC/hIGrUPs6nYLVsS3xK+xrK9xWx6i3yxENx8XxUmKdfz Q5t2ejUcOUSjLI5JR3MpGGuxBE+Guk+77prjX7sez0cUV6wFgt+5jbea02nYtLInC8dM fFhxgZjfM8u8JDV/5nnodenDbnzX5MCawDDYZ1at9+L1bMFTvjuYndVzwD7KYpustKGV C6/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=ED5xFJjn; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141010-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id pk4-20020a170906d7a400b00a4e28caf171si832276ejb.1017.2024.04.11.09.34.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:34:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141010-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=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=ED5xFJjn; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-141010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141010-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 28C3B1F20F22 for ; Thu, 11 Apr 2024 16:34:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 780A612C472; Thu, 11 Apr 2024 15:38:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="ED5xFJjn" Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (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 6ABAF1C4C49 for ; Thu, 11 Apr 2024 15:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849899; cv=none; b=P7NtlXbyZXHnz/Tqi7PE3U4rksAljHoZpxPpu3MvvWyq5fi01HFzDHgyFY5fR6B/RZxuS0fKFIDPNfd+74CeG9FmMjcIXRwkTOs0McsShhop4/o74y7cfCofCQD5RJDiiPFsbHkwBh9EA37Lc6JETNiMEel5hk2W2tvwn3Sdi7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849899; c=relaxed/simple; bh=3/V667XKBglm9im1Z9fRJ1TA+beLvb8GZxgDNkg/7F4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vBoDly/hz7W0g19cNlo99ZIwxUrrSw4awd15DE739qtmcwPb65LEX0solzzmOnSREooUctpGE+5JMK8hLDEmIzV2NA9pNPGRu4IfzklIMcc8qP1PIXk9u0H4IY4l6sEK/oVfbZMluX+QbPIt+9KgTkotMqsViTQIqPUw8qMOiFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=ED5xFJjn; arc=none smtp.client-ip=209.85.166.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f54.google.com with SMTP id ca18e2360f4ac-7d67d1073easo9837039f.0 for ; Thu, 11 Apr 2024 08:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712849897; x=1713454697; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fl12uZ8o/yOCWgQSdPpy5k35ORLGY8Lo/Z/2sz1z1GA=; b=ED5xFJjnM4a70pZfWb0JCjsA2lS6+cTWweFdg1/HnIp8cdeXHigXND7jAUYyJy2jyL HaFWmrbw0q54VZdYuvsdUQrz9XSYYchMx89CTSDYht8+9g6/R27mdr0idvoe0My+D/GQ nJGgOIJFBNcSYQlW7kQoyP20+BO3h9Vi1sQSPp7i6GUYqIktkniDLTHo1vLBpQNkZ1cW KG3V6UNduTMADqsqh/UgCF06zGWvVnEPqu2RSCx6X4hjErhI6tG1JSrZpqUcgEnojH8d J/RUOs5n2x1EQ+QSf8cdllGmFQMmN4higtk7WK8q8mhsEdDp9mbSC2PS43xPLgCk6WPz mZtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849897; x=1713454697; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fl12uZ8o/yOCWgQSdPpy5k35ORLGY8Lo/Z/2sz1z1GA=; b=Gi3HVB0mpU3FZ0z9l2d8KdXbd+D7S8aHAkJdRbh0wR+xXa5GmVgEymJT5HT3w0CPyd 7RuFqxhIXYMBEm+Z4QmpLhgsGGN373XXQ2RB0GWDg08+ZSxP50iqJ60ru7XLu5xuvYf7 xp/np96cCHTv9NZ6rC1ua++EfmgRgan6ultPIohYy7cGbJ8aO6M8u0nwqD3cD3EZpUDX omze1Y21ZKvZFs06SqkCTG7w38eoshN01DrTRJAXprIVQBMC2hdDIeYzBGoRaJakVjKU 9F4qmCCSklfU+Xt3BW9ge7OErOGENzuqHkkczXIfo3s6CVPNcQwkendgSQTCiWGvo2HJ ef2Q== X-Gm-Message-State: AOJu0YxpTLNB1kf5HDIDz8sQqvrrNIc2nYw13SHEgBNN8dIlxyTdKzYv xFiLPRnmIn4BRakweSZjRXx7nweBUjtY00A1n1A7UnLkanSPzYhnUMwL9shyCvRuZBO5GUkmvtB 1 X-Received: by 2002:a05:6602:84:b0:7d6:9d75:6de2 with SMTP id h4-20020a056602008400b007d69d756de2mr46713iob.2.1712849897275; Thu, 11 Apr 2024 08:38:17 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:38:15 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 238/437] watchdog: cpu5wdt: convert to read/write iterators Date: Thu, 11 Apr 2024 09:16:18 -0600 Message-ID: <20240411153126.16201-239-axboe@kernel.dk> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240411153126.16201-1-axboe@kernel.dk> References: <20240411153126.16201-1-axboe@kernel.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Jens Axboe --- drivers/watchdog/cpu5wdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/cpu5wdt.c b/drivers/watchdog/cpu5wdt.c index 688b112e712b..cef1d6ba6ecf 100644 --- a/drivers/watchdog/cpu5wdt.c +++ b/drivers/watchdog/cpu5wdt.c @@ -174,9 +174,9 @@ static long cpu5wdt_ioctl(struct file *file, unsigned int cmd, return 0; } -static ssize_t cpu5wdt_write(struct file *file, const char __user *buf, - size_t count, loff_t *ppos) +static ssize_t cpu5wdt_write(struct kiocb *iocb, struct iov_iter *from) { + size_t count = iov_iter_count(from); if (!count) return -EIO; cpu5wdt_reset(); @@ -189,7 +189,7 @@ static const struct file_operations cpu5wdt_fops = { .unlocked_ioctl = cpu5wdt_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = cpu5wdt_open, - .write = cpu5wdt_write, + .write_iter = cpu5wdt_write, .release = cpu5wdt_release, }; -- 2.43.0