Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1386078ioo; Sun, 22 May 2022 12:49:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJqmF//dHaM9o00cI075WQjhBNxuCm7rOOqAZlq/7FF4dwv0TVR7V7Qlj4C2nYrBxxBUAB X-Received: by 2002:a17:907:971a:b0:6fe:bdf6:b67e with SMTP id jg26-20020a170907971a00b006febdf6b67emr6260942ejc.312.1653248987232; Sun, 22 May 2022 12:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653248987; cv=none; d=google.com; s=arc-20160816; b=QZasWyqz5fDMugb9duELVB92wNU7v6mpMeofuWTbKD4z/AnmatGBaFtKoRVxJpb+uE PfzHy53qGQ853hqPCh1gzMreFZs9rlcvgErfRCRy0KquPIT8rm/3o/nFyfWBewXMhcY7 RtWt0C7fzoLLruoJvi/6dsmaUoCtxCMfIWFjLXJ7JJR4eNZbqeomD+r+UZNkl3n6wzxE P7cpYYPLmAm4qB+DiKh/ZVomXUToWlqhrK0v5kO1lHN7J+UWADa4UxxLD1Ifn/xeif3S u9Wrv1bhy8tHlkaObw0bi441izGxrnlTqZubhrDtQ07c/CVTHaj5KyZyJOaGcjRIJf/V vHzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=9Ssgv9imXNbu6BbEi8XDoZyaLG/tsht/Ay9PbMzrlyo=; b=gPmlZdZ7GOI3ANWsKL30IX7A0sQrEr8KQyB+GsutHhhzNutgFKORjP2tWegVW8LLyG 07KjuJ1l7AukUMIj0tnR00h7xPHXK8kWRWKLD6xzercFkEKRCz3G9HkyruC+RgnRBkLy AzmWTvpxw+7hod9/4vYi7qqr7eTksEf75hH/9UV9efj0oVkLM17zHqA6P52bzlWsqQBy A8khf9Fe2mIARF1MankmJT2fpCp58dkW3jxLAnE9+UD6oS9VcglMmMmI9+vODuKhSEPj xIrXBxntVE30FrajZ9oeWghWiO6oSxo8fKTO0GnhX5DvHtryI5pwtkTucuPlvYBJhYQp 96UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=TWLjNSQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r7-20020a05640251c700b0042b5cd33284si3074839edd.263.2022.05.22.12.49.19; Sun, 22 May 2022 12:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=TWLjNSQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349860AbiETNhY (ORCPT + 99 others); Fri, 20 May 2022 09:37:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345592AbiETNhX (ORCPT ); Fri, 20 May 2022 09:37:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF9BBABF69 for ; Fri, 20 May 2022 06:37:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9966CB82B05 for ; Fri, 20 May 2022 13:37:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9543EC385A9; Fri, 20 May 2022 13:37:18 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="TWLjNSQQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1653053837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Ssgv9imXNbu6BbEi8XDoZyaLG/tsht/Ay9PbMzrlyo=; b=TWLjNSQQhNiLeb03cZpOku8Fj9Hf1lDyPh4PmP29XsLyXT23g5wdxYt9CoeOh/qTYRuIrx nwrM5AqMNXV9CAPLJHlk6RzQaPKQ5fdpCiuf6KvMB5AorTUOvUhvu3em2/L+LMeqj4bQQH Hy1WClUG6bo7XzwAYbdysjZhLRsl9NQ= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 26eb1d9c (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 20 May 2022 13:37:16 +0000 (UTC) Date: Fri, 20 May 2022 15:37:15 +0200 From: "Jason A. Donenfeld" To: Jens Axboe , Theodore Ts'o , Christoph Hellwig , LKML , Al Viro Subject: Re: [PATCH v4 1/3] random: convert to using fops->read_iter() Message-ID: References: <20220520094459.116240-1-Jason@zx2c4.com> <20220520094459.116240-2-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220520094459.116240-2-Jason@zx2c4.com> X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2022 at 11:44:57AM +0200, Jason A. Donenfeld wrote: > const struct file_operations urandom_fops = { > - .read = urandom_read, > + .read_iter = urandom_read_iter, One thing I noticed is that drivers/char/mem.c has both the .read and the .read_iter functions for /dev/zero and /dev/null and such. I wonder if the .read ones can be removed? Jason