Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp56231lqj; Thu, 11 Apr 2024 09:41:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVULvHc30sAh1hKk30scDK3jzZPeuHW1VRVZyJmDHRP7ldPtyJCYBz+5Q1+SepRp3uXrkV/Zf4mUDeejdfiCLXiq4pyt62U9D010HZMdg== X-Google-Smtp-Source: AGHT+IFMHVW/CYmUiHmg6qnyoFW4Rs1AO2Y/+hu6csdmy2TfNEA4TifuXMsnIwwx2hGLp1kNpFfx X-Received: by 2002:a05:620a:564a:b0:78d:69c8:7a14 with SMTP id vw10-20020a05620a564a00b0078d69c87a14mr202126qkn.42.1712853700740; Thu, 11 Apr 2024 09:41:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712853700; cv=pass; d=google.com; s=arc-20160816; b=PQJfRVuAjIVcrL8i2skZ0Cz69JR1IfZ7WPRRQ28kNdtbPWjkogYmkB1IUSPQ71W1qe RKqT6s0Q60woIl24xLV3rbVraVQy9T/i3G5qCTy2dZM8QZkNS9JzrbQf2iHOIXzqEHBp LLtrwEYykffT3tBkd7Svq3FeEjttZK10CYgWleajJI8iKUYW5gK99XBzuFhbrqqxvxjq Fyt8CiaOnssEP8U4yThe8x4D/6ZIy0dImIF+lhaxi2LzCnytiK8Wh1Z6UaGcG6wiwHM5 zWq6jPu/iKi9eIPWmQ49ZPmgQ0y9fqpy7rZBmEX4cKgDxYm1RD1VX08JBXS6baB++nGH cGOQ== 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=PmEx9YmC+id1TZPj4p7DnNRAPC699v0oUB7DGNRCskA=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=ojM9aoxPLX4976KbnPUWYdwGOIrv6U+oJEwSfq4hTfX+/MwnTj/FTpZMLveeX2fOcY lL8VRZRDZdkIhgBSG4qeBl3GVuZgGA1NXRf2X8XOth2NgX5/FJxPR09MUm3DFhLishky OJ3ifG2lEwXT6x3MQj4LSUDTooewPxA1qiGtqQHGOq/jZ7l3iahw8qtsZ0OJfWL+tSMS 3Za+1cIPuN2aXHsHUWUJRRLTr0nBa6hJz2KMB8L1qB5SGiXmhxJcJRkUXFN5/1Sf6tZi S3fPZJp/G7pv/sENRfTVyzbudWruzH060zSDoKBrW/c3EBfLqtUDtWxYHjCL8attSZX+ Y3bw==; 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=O5kkwLrA; 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-141043-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141043-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wj4-20020a05620a574400b0078d5e6849edsi1852195qkn.57.2024.04.11.09.41.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141043-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=O5kkwLrA; 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-141043-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141043-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 005731C2227F for ; Thu, 11 Apr 2024 16:41:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78A191CEC1E; Thu, 11 Apr 2024 15:39:12 +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="O5kkwLrA" Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.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 557DF1CEBE4 for ; Thu, 11 Apr 2024 15:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849951; cv=none; b=a/cqu7vLxbM0+YRDzkuh6GuKxIBgRY2wJFT8LhwQHUSLM7ijrqdNKIjM+ebRcNwDRYTjp49+P/PFgFwr4S5p6+X1nOOFIPYq+VhwfAnlQOPkBlfdMXrzd/LLD89TsulqwIZVg+tNxpCCWyvezHdO84adbWUyoVTPoWisJgP4Zy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849951; c=relaxed/simple; bh=X6nzda4eNRoIOHJaJaQB1VJEo53IsCvtdTl+QikkZdE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MTaeuj8bihLggiuCAdSs8TGGWHRER4jxhvQ6f0hmH55DQGTuhd20kCztgs9PNfvxGHFRryIidBmVf4tiUQ7i84NxykGA5f58ECtfC/Hb2p/Mo/kGFrYsA+UBp3vrN0GnUt/zA8fGMvUQDNp/Fcujz4l64uVfqajuXcVvbS+xlOs= 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=O5kkwLrA; arc=none smtp.client-ip=209.85.166.51 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-f51.google.com with SMTP id ca18e2360f4ac-7cc0e831e11so170571539f.1 for ; Thu, 11 Apr 2024 08:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712849948; x=1713454748; 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=PmEx9YmC+id1TZPj4p7DnNRAPC699v0oUB7DGNRCskA=; b=O5kkwLrA15lnRv/g9lRYbJD5pSCcEyOJ+CpxEW44wbiLtXRfBoLeUwLnP0cZVddYad rEpM49Tvngi5//98JfU9cjq82AYkZNbNxCmEfiGgPHVBVQ8+i7YrckpCPEMJwIva30pG JupnD4ePrb6WMI1rixTKbvnIeS/1P0LjmrmQNW9AE0WhinvzzdszrwuIHLNxlCatbM/x /DKD+ENycLf8BCEBlpkmEKlTQajt5frGYXgqEEKkE8nKqG7tGo+Cz9laD23xa8JnSrAa 6GH1DwXanPbbrXumFU+lrPdukYllPTMgSodWd6jw6BVVVnmdUErBFFn03G4yerjTS047 dzwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849948; x=1713454748; 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=PmEx9YmC+id1TZPj4p7DnNRAPC699v0oUB7DGNRCskA=; b=enMio4k+CIbB53kA21v7Xyn0bEDfRCAeWQGPGnxylfZB0x9TMb6GOyOWYCIFnTK9fY HvQUDIf0Wjckqz3EF5QUN80AP0s5/k3GlJyVvtRTfdob32eV9GnFJzPdJVSSdJ6WW+QT 6cULWrirEF0vXXpjlhLvdVfcy2byGj9T1MT3PjY5P4mTLXE6NJZ1H59S2tfbY/JKdZYQ lrjq6FWHvZ/o4omm+np2KK6aQdup5Vmp2FawGCxoExEqXokvaX8ZsE3zYmGOs7wdFbZJ qTeDqe0JxroOsBBWK/CtAseQtkmpDDCD729qmu9ZLJ+39xUCi3QTRvVlbnlp7kAzO6b3 QoBA== X-Gm-Message-State: AOJu0YxHUx00KZwfcOTx9DEJe6B/3toSsw8tTWIvKG2TipiYl9IYi0IT 8qORqFyORpm+CuKgoH+HGY03YkaVwU7aKS8l2wYagtPn8Ua3L5DO1KAuYqy3I4X8iJIgDZ4NGVd 9 X-Received: by 2002:a5e:9907:0:b0:7d6:751f:192 with SMTP id t7-20020a5e9907000000b007d6751f0192mr188842ioj.2.1712849948652; Thu, 11 Apr 2024 08:39:08 -0700 (PDT) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id jc25-20020a056638891900b0047f14b7f6c0sm457056jab.5.2024.04.11.08.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:39:08 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 270/437] watchdog: mtx-1_wdt: convert to read/write iterators Date: Thu, 11 Apr 2024 09:16:50 -0600 Message-ID: <20240411153126.16201-271-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/mtx-1_wdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c index 152e41ecbb14..1d7f5154c144 100644 --- a/drivers/watchdog/mtx-1_wdt.c +++ b/drivers/watchdog/mtx-1_wdt.c @@ -166,9 +166,9 @@ static long mtx1_wdt_ioctl(struct file *file, unsigned int cmd, } -static ssize_t mtx1_wdt_write(struct file *file, const char *buf, - size_t count, loff_t *ppos) +static ssize_t mtx1_wdt_write(struct kiocb *iocb, struct iov_iter *from) { + size_t count = iov_iter_count(from); if (!count) return -EIO; mtx1_wdt_reset(); @@ -181,7 +181,7 @@ static const struct file_operations mtx1_wdt_fops = { .unlocked_ioctl = mtx1_wdt_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = mtx1_wdt_open, - .write = mtx1_wdt_write, + .write_iter = mtx1_wdt_write, .release = mtx1_wdt_release, }; -- 2.43.0