Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4033116ybg; Fri, 25 Oct 2019 12:21:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFUpKLmTtNxwgqtpLr5+FY/Lkva78BvJMjea/vvK+g/0hahbTROJSg40Z6EKA0teB3baY5 X-Received: by 2002:a17:906:27c5:: with SMTP id k5mr4951899ejc.173.1572031292459; Fri, 25 Oct 2019 12:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031292; cv=none; d=google.com; s=arc-20160816; b=0ZKbww6WUsifleoW23mtkzq3AO39RLeAb6qBVSm5G0TvW61i2mDiyIz934Q+KkHAcx c959N25AHlRfWhpqhKaFkdun/dF0cBVP2W8wANs6Ue4qOlIIQIGlINgEa9tbf+VBkE4a cj0s89c4fZe9LsvBpVKsdv8/Gdp3P0AvO55lz8AOdz2woyFygVzYuS2Rx7RaIkyKSeTT cvp4XqoeRPeRuspZfD+S7x/vweB7rvokbqFhNNfcRYlaEV4nWcHoEf5pshZQc9Y6neLh ViJdl5XSjDUaZq6sK+DQVQjzXnKZvRWEWek+fZ55DOpcK7XmxaAgg6B8KyG51uEPeJAe Y4SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=og4UwUe+IdpNdozHFTSH6d+IuI1h2CCsMk4c1RoYWD0=; b=mPwGQPfAiWRAzLRwjSbTpYCLtY4cWPLfFyhegetAuPewf/g9/sJ5rWOiAyIjOXOUqA Y5iTMzZUITlHtAzQxd8u7sb+YRm8J3OpKf2tuBlmHrXDtTyNhVe005SsLDuueW10L4gi Xdhh40qznYNvW225zu+bfnAgKro4i2UwwdWFI25m+4TmMILYCnfVWNYqGgmd1RqzhcAK H+QFxLVBP+bK1F2nLHHqgzW6oyv23qqz9rw40Z+bCCUnJD+XCFE8qjO1D6PT+5DpIp9w oUaFEX1MigLbNC9pEaREsZ3CyUrXa4QYdIodbWeK4eE6n3XU1m//Eg2Vbblqe0e6zJJN D98w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hGKpSTAf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i31si2004059eda.147.2019.10.25.12.21.08; Fri, 25 Oct 2019 12:21:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hGKpSTAf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390277AbfJYCic (ORCPT + 99 others); Thu, 24 Oct 2019 22:38:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:41386 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728416AbfJYCib (ORCPT ); Thu, 24 Oct 2019 22:38:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=og4UwUe+IdpNdozHFTSH6d+IuI1h2CCsMk4c1RoYWD0=; b=hGKpSTAfckdqYjvK9u9zIy2nf 6fFP+pD1oOAcPxZOa5hynTKk8ls+wO6dg/j82Xfi1hWoX69w/lNvfidaF0u5V/t7DLRO7pclcUkSb yBn1VwK/BWfRVmaQxEJxqYBu2jUWYnUc1izydmJZy0/VGUWeMRt/Qo/S5gcARgDqmNCXNrh7npuKm +/lkQkVZe3hUrg/cACPHYD3QAGoSEbiTz/cJ8ZGmJPYnVxqkr9T1uWkgJq32yFtvhCDdyUgU6DtTO h0zzfoN5mY2AUBxa+JcVsZlNwAuatQlhFiKXJ0Kniflwr0ZqTkV8yRrm6D8ZJtT8cc2/Qzi6JRy2E 6U24WjTog==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNpUk-0003mZ-Kj; Fri, 25 Oct 2019 02:38:30 +0000 Date: Thu, 24 Oct 2019 19:38:30 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Michal Suchanek , linux-scsi@vger.kernel.org, Jonathan Corbet , Jens Axboe , "James E.J. Bottomley" , "Martin K. Petersen" , Alexander Viro , Mauro Carvalho Chehab , Eric Biggers , "J. Bruce Fields" , Benjamin Coddington , Hannes Reinecke , Omar Sandoval , Ming Lei , Damien Le Moal , Bart Van Assche , Tejun Heo , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 2/8] cdrom: factor out common open_for_* code Message-ID: <20191025023830.GA14108@infradead.org> References: <20191024021958.GA11485@infradead.org> <20191024132314.GG2963@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024132314.GG2963@bombadil.infradead.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 06:23:14AM -0700, Matthew Wilcox wrote: > On Wed, Oct 23, 2019 at 07:19:58PM -0700, Christoph Hellwig wrote: > > > static > > > -int open_for_data(struct cdrom_device_info *cdi) > > > +int open_for_common(struct cdrom_device_info *cdi, tracktype *tracks) > > > > Please fix the coding style. static never should be on a line of its > > own.. > > It's OK to have the static on a line by itself; it's having 'static int' > on a line by itself that Linus gets unhappy about because he can't use > grep to see the return type. Sorry, but independent of any preference just looking at the codebases proves you wrong. All on one line is the most common style, but not by much, followed by static + type. Just static is just in a few crazy