Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp617836imu; Fri, 11 Jan 2019 06:17:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XNZ+a7TAv1P/30h/J8VyWxJGHM1exkW9X9s1Ykwgb9Ez/g3yqsE5p+8F0Oaaxw2lhBNtp X-Received: by 2002:a63:bc02:: with SMTP id q2mr13617910pge.116.1547216241418; Fri, 11 Jan 2019 06:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547216241; cv=none; d=google.com; s=arc-20160816; b=Nk5K9keZT2XaXx1k6QUQ4MqLB7BB8pngSXtu1m9NJlwWIvT9m01UZfIpkVBInXBQlq zMZQmow5vuFwyeS2JqJPqRKqlm1aazTSX/4XWN+iHp9MUWgvSvFAANStIK79ByYxPleX mLyxKe4aL1dUUSF4Jf8ruV23cZ9LUpW/lSKm6lMjNte/hKfYfMBVOxSHfwPAK51MRFNp M/HdDteFPeKBxUK8waly3kBPxYhQw2dinnmU40UFrPTlxK+XdYkwNkafK/aK0ysQ2IXh JIO6SETONfidVoRjpJIF7BPBl7d0BX7/ebopQeTxKdbT2mUZRs9U7KNmIIwSqqq/34hM rMKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=NX3fbEmXkV5O84Kcpb6NcA3JkvkCSSZZU/dJ1ObkoVg=; b=r3/V2+Wxf40Dx6+0+DJqVhmlDGSlGoJLq5PN2c9r49iQOVR7BqJpG9iBnlAbSuIeKh gJ/gdQcNy2jUSxyX11IrNQoUmsrs83xGxWsArhmwZJ9lnCUwOoUQtDdO/8oRZQhaGucU rkMZi1NQZezDzUpVGo/1EwtnxSyF1J5EEXKbcxgjnzrjEHBa964gHnvdCiIHJaPplP05 1PoLPVDaSr+VNTGh9B6/5shFQV72bipEYy4Yk94JGXdeEljSEY8vdhNQJFcjPPH9adv8 75anpVunyHmcwq3rWkAyZVQl/2fDnqkQQy4nTYdZVGNIsm5agSKqSWjl7W6AzhpjPkYp vHyg== ARC-Authentication-Results: i=1; mx.google.com; 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 gn20si10050694plb.98.2019.01.11.06.17.05; Fri, 11 Jan 2019 06:17:21 -0800 (PST) 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; 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 S1729750AbfAKLKK (ORCPT + 99 others); Fri, 11 Jan 2019 06:10:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:36086 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725801AbfAKLKJ (ORCPT ); Fri, 11 Jan 2019 06:10:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6F859ADD7; Fri, 11 Jan 2019 11:10:08 +0000 (UTC) Message-ID: <1547204392.4054.7.camel@suse.com> Subject: Re: [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header From: Oliver Neukum To: Greg KH , Sabyasachi Gupta Cc: brajeswar.linux@gmail.com, jrdr.linux@gmail.com, usb-storage@lists.one-eyed-alien.net, stern@rowland.harvard.edu, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Fri, 11 Jan 2019 11:59:52 +0100 In-Reply-To: <20190111091037.GB15610@kroah.com> References: <5c36f6ef.1c69fb81.9d82d.5592@mx.google.com> <20190111091037.GB15610@kroah.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fr, 2019-01-11 at 10:10 +0100, Greg KH wrote: > On Thu, Jan 10, 2019 at 01:10:25PM +0530, Sabyasachi Gupta wrote: > > Remove unusual_sddr55.h which is included more than once > > > > Signed-off-by: Sabyasachi Gupta > > --- > > drivers/usb/storage/sddr55.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c > > index b8527c5..96bf7ee 100644 > > --- a/drivers/usb/storage/sddr55.c > > +++ b/drivers/usb/storage/sddr55.c > > @@ -62,7 +62,6 @@ MODULE_DEVICE_TABLE(usb, sddr55_usb_ids); > > } > > > > static struct us_unusual_dev sddr55_unusual_dev_list[] = { > > -# include "unusual_sddr55.h" > > { } /* Terminating entry */ > > }; > > As Oliver said on the other patch, this breaks the code. Please do not > blindly make changes without understanding what the code does. Maybe this should be explained. The file that is included does have a name ending in .h. But it is not simply declarations, for which newer trendy languages would use a a statement like ¨import". "unusual_sddr55.h" is a list of devices. This list is used in multiple places. And it needs to be identical in all those places. Hence it is included. These are true includes. There is nothing wrong with that code. Our complaint is not that your fix is wrong, but there is nothing wrong with the code as is. Including this list is the good thing to do. Your wish to clean up the kernel is appreciated. But please find a place that actually needs to be cleaned up. Regards Oliver