Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1424726ybg; Wed, 29 Jul 2020 14:00:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXerDKSTi5dwuVPMYpOndPoUOZeQuGu+JE+9erf+JM8Md43U2nAE4OAfUDSUTC8c2qqdlB X-Received: by 2002:a17:906:b143:: with SMTP id bt3mr244138ejb.134.1596056421172; Wed, 29 Jul 2020 14:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596056421; cv=none; d=google.com; s=arc-20160816; b=X+b+A+va5xxdUZu+c25y5L8i/jEQ6Kf9FzwAswdfgvj9qUE3fPelrpHd95tQftdMnc iLLMP7ofK2YpwR9G89Rf7Dslul39LEKOBn4YAk5/5/vm9xSfFKG+5zWVjaq5g/hk2P8a IUZBazPpUFQxhKxwnssmaAfs+LPe1n2RFOX57zoCqr28wDzFQpk5e5EhmG9fIZG06wz+ 3xhUTXBahpWpu04cew8tpMIksd/jVuVvnPoyzt2717qh248UBR6QwqDfzH/IRl29hyLt 6EJfi/DDb6wsm6uzTrTNRhOTM3kAQTq+X1NVOVFjOVUhO+Ge7Dou8qLhZ4so7YDZYjgU hbxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EqhO4wUY4v/ZXId3+5gZrFZplZZHoh3O/d1qNTFPa/w=; b=I/XjqT2facgxZaDLkqgW6lKIF1RuYTX+XZqjF0GbTbDu0gqeNHV/l8ntgJf8ucDcwf Ibh0leTEyGDVpOI2VmrPB8cHJMsBg0DkHGznpuaKD6LSP4kzt9/Iw7IVTUeSsSQi5kXx sfwPzlMgdpXn/PmM9gWU6VNMxhey+oIVUke3FnvlBfASsBhU3jAzwPiRfmbEcm2aVvux Sz9H4+N/k6UlvxQ2Pv3JprJgqj17taWgsXEaEDZnt/CfHIrVJJ7P1NxEMQfB1n+YrtPb krkHWAewM8IFC1IoMz2fBeAYunKnPX4Zh26g591hDMp/LcVmtobqaYRNE2vWeD31sIrZ mCcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf25si1840014ejb.419.2020.07.29.13.59.58; Wed, 29 Jul 2020 14:00:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbgG2U73 (ORCPT + 99 others); Wed, 29 Jul 2020 16:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgG2U73 (ORCPT ); Wed, 29 Jul 2020 16:59:29 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26215C061794; Wed, 29 Jul 2020 13:59:29 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0tAV-005Crq-G9; Wed, 29 Jul 2020 20:59:19 +0000 Date: Wed, 29 Jul 2020 21:59:19 +0100 From: Al Viro To: Thomas Gleixner Cc: Christoph Hellwig , Linus Torvalds , Stephen Rothwell , Luis Chamberlain , Matthew Wilcox , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 15/23] seq_file: switch over direct seq_read method calls to seq_read_iter Message-ID: <20200729205919.GB1236929@ZenIV.linux.org.uk> References: <20200707174801.4162712-1-hch@lst.de> <20200707174801.4162712-16-hch@lst.de> <87eep9rgqu.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87eep9rgqu.fsf@nanos.tec.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 17, 2020 at 11:09:13PM +0200, Thomas Gleixner wrote: > > Needs some thought and maybe some cocci help from Julia, but that's way > better than this brute force sed thing which results in malformed crap > like this: > > static const struct file_operations debug_stats_fops = { > .open = debug_stats_open, > .read_iter = seq_read_iter, > .llseek = seq_lseek, > .release = single_release, > }; > > and proliferates the copy and paste voodoo programming. Better copy and paste than templates, IMO; at least the former is greppable; fucking DEFINE_..._ATRIBUTE is *NOT*, especially due to the use of ##.