Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp54324lqj; Thu, 11 Apr 2024 09:38:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUM08JedFhmHqrwbLN80MtLhMGa5vzu+UiR0BaEO2JTzkdAVCZv4mll+rlnXON2GlxR68DXQxxmQGzZRF6uyIph971kvCmggTetNp7wvg== X-Google-Smtp-Source: AGHT+IEhr0WUiYuDJLCw68dM6dRbOtHrNz2Fl2fMTPBSEAmnSgTwElUe1v1C6I7TEeSwMxzT7i5y X-Received: by 2002:a05:6402:5213:b0:56f:eea2:43e5 with SMTP id s19-20020a056402521300b0056feea243e5mr1130473edd.7.1712853522157; Thu, 11 Apr 2024 09:38:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712853522; cv=pass; d=google.com; s=arc-20160816; b=pBAzUZkDNqIgm4K7heMkaHgkQ3MNBUyq9e3doTZKU847/w8JAxtCRxIWLSRnLy71IB bc4cAuXaPip8sJC3fQGlgkPsHuNX91lyxm2E3XgeSI8rDqrVFApgdo8Vc5VnDNjS1enB t/BtXs5enf2BQEY4Ika/pdg9DB0peM1SPc1LtSfRN0UfptswKVGuzTarXHGVhd80Fnow /T02hPEOJeSoVaze545xt/65T3rZkS5OtujomC6s1btYFklhI49RaM7AkY03PqRBuVGW HbG04iQA8WovWpwMM+IcwZGkXfL8GBJhfRSV/m0TKE8VN0i3faKIkJggp9UcgjEgJ2vA KT+g== 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=OlTiJyqp1UTe69uWYXEk00kh5Kvuj6AMI5UGQjYjQno=; fh=2FInBIgEh7xt9W7JS1z2wQ7fUhvLHtwfAfkXluU3JoI=; b=VB/AhjSAQRN5iCGuWKg0TrSFs4nCvpZttmlB4ssTgpONAVTvpzZaBRnT+WRnrgwsaO Y3dqj4hTagxJKIy4NqkvkBhTiarOYLrwRf2iBh/sR2Wcy2/bZsbGohmG4tQB86a2Po1z vMJQyr8kpOKBNO9o6hmC0UN6LoprZWq1YYftSuiRw+NfaWCLzZ+H0nScP5u9aEgzhPVH RJ/GHKC9DUWuCfXhg+0vlngOjSMlwDJ1GxzuUgwGoksMPAegL6Z33n+BuHFSjxlti6G/ jzf6G/9IToo6SMJAW1sLoynLtW25tPyxFUQZlBLV7FQ0k/by31WcJKNvKfTulBZZEGQj HTsw==; 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=vahgsLwS; 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-141026-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141026-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h6-20020a05640250c600b0056fd7e5610csi929848edb.393.2024.04.11.09.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141026-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=vahgsLwS; 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-141026-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141026-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 AABB61F25DED for ; Thu, 11 Apr 2024 16:37:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71E7942075; Thu, 11 Apr 2024 15:38:43 +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="vahgsLwS" Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (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 633B017D15D for ; Thu, 11 Apr 2024 15:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849922; cv=none; b=cvXgMzR4Akmi6l6WXxAr4UiOp5g2iWipzKK5uLt40nUtSu5uGiy/Y54YA32QFH5J1j5gaPVoacMNJggL0sFRa75KI89JJ3LCsXiS6n+SgY+8XLpGD+m4SI7Avn5BbxyhuQugOgOd271UbsFPJVQwP8efBfu6DLy/ogaMzVVQuHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849922; c=relaxed/simple; bh=yvj6Fx2S8MgjUf4sPizIzz/1gQ6nUrv6shwg9v2Oi2A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E6067YNy1oN7S12yIFGxec0kqSOmyceGFr8uxWrMxJ2yH7oCC4LXBaQDj181tryiwgWYywuk+uBg1uyQaVmmr+Dp/ZxIii2guA7DU4PjuauO+9BL69c26pGY2wf5t4TYJyAGM0xXRyhkcxk6JCW52eZlaSKxtIhUnAT/aNZ7i9c= 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=vahgsLwS; arc=none smtp.client-ip=209.85.166.53 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-f53.google.com with SMTP id ca18e2360f4ac-7d6812b37a6so8998639f.0 for ; Thu, 11 Apr 2024 08:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712849920; x=1713454720; 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=OlTiJyqp1UTe69uWYXEk00kh5Kvuj6AMI5UGQjYjQno=; b=vahgsLwSyGC3CxbEGGMrVeGszY5AKTXii26wQKBcmOxU5ow5G0OxGveTUvBOthj78V N1sao+6Nl4dOC6pFINkdabN7PwJ60vc2+DMCmyJ3u6q+S8Fk1HUAt4A6JyVliWSHg77c dFqMobX4UAA0apqNu2pGR+PUPnH/90CGufjUQNTjcXNdMqaqW8LNlb2uGBg3Dd6JAwST 3lAfOQfwa4v5kngiUp0wtgV1U38DnDoBQppypJYLgc904D/M4pTHXsh3w82SRvjp2DIL fESB+PhAHpe5L3gAu0vSuiEtknR/jR+hm8IlqBf2VB6X/zVI6DD8xKgutdjssJv0Svkg Qmdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712849920; x=1713454720; 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=OlTiJyqp1UTe69uWYXEk00kh5Kvuj6AMI5UGQjYjQno=; b=cAYdyg3p1DJzHjaEqFgxmy24ZHAOvZhfq4a5YxgMNiG7MbYhbYwuuRtEPxsLcyMRAk B5qct4SQ7k4785qNjOcfXtUy09Dh7TtlFjcmQq+T+cZ0iuLcCcqwP/pVtUplnPIjdKlD MMIIDD8lahLCbcNr57pX+b8k2n8qbWRCINaLGNiwEiWWiMTu+BJWY7cb5ZW7zAyL4NRt JRYr1plWdtDOCGETnOU3Y30ityj8xQ2DHfk8JeDFAiQ76nGqkvJgdSfX2cUvMspgiCjc cR9Y9PC4QZNC3ieoF/Js7hWv82pr+BvsvAUcRutLK/zmqvcXP7qNDU6o6s68rBCfTkbp 3zUg== X-Gm-Message-State: AOJu0YzG3GjOG/T8IhaPG4udZD54rifRlg6hVGly1ENZiGQB5MFqMtbN O8e31y6Vw9dgRCxqBPAkPspnOoq/6AQLUMyWfU73bI43VjRWwzJ9ZDWhJLYlmWHc3640UZjdEEr P X-Received: by 2002:a6b:5b10:0:b0:7d0:bd2b:43ba with SMTP id v16-20020a6b5b10000000b007d0bd2b43bamr228148ioh.0.1712849919961; Thu, 11 Apr 2024 08:38:39 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:38:39 -0700 (PDT) From: Jens Axboe To: linux-kernel@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 253/437] watchdog: sbc_epx_c3: convert to read/write iterators Date: Thu, 11 Apr 2024 09:16:33 -0600 Message-ID: <20240411153126.16201-254-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/sbc_epx_c3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/sbc_epx_c3.c b/drivers/watchdog/sbc_epx_c3.c index 5e3a9ddb952e..6bbb9db5e57e 100644 --- a/drivers/watchdog/sbc_epx_c3.c +++ b/drivers/watchdog/sbc_epx_c3.c @@ -89,9 +89,9 @@ static int epx_c3_release(struct inode *inode, struct file *file) return 0; } -static ssize_t epx_c3_write(struct file *file, const char __user *data, - size_t len, loff_t *ppos) +static ssize_t epx_c3_write(struct kiocb *iocb, struct iov_iter *from) { + size_t len = iov_iter_count(from); /* Refresh the timer. */ if (len) epx_c3_pet(); @@ -154,7 +154,7 @@ static int epx_c3_notify_sys(struct notifier_block *this, unsigned long code, static const struct file_operations epx_c3_fops = { .owner = THIS_MODULE, .llseek = no_llseek, - .write = epx_c3_write, + .write_iter = epx_c3_write, .unlocked_ioctl = epx_c3_ioctl, .compat_ioctl = compat_ptr_ioctl, .open = epx_c3_open, -- 2.43.0