Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp233532imm; Thu, 20 Sep 2018 22:33:38 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb+YI2UqrLg+ELZhZuAlKhwWl1HXYEhLNT4FY2DhdFHFDXUX02BvmNrR0rK+YZLcsC0vdQs X-Received: by 2002:a63:d518:: with SMTP id c24-v6mr38183181pgg.357.1537508018208; Thu, 20 Sep 2018 22:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537508018; cv=none; d=google.com; s=arc-20160816; b=BsvbqkLyn/mgi7/1kDXqlt3Y4eTRCjfzcWjyZKyfGdoPP6vosASgLO/XhTiCAdTJUq E6W9Oms7vdElvYpGeQGUHO2L6LYs8V25FzWmJTBQtzCT37wy37sQbtejEXHKB7PPlSGa GYfUYxCuWsPcP4wspfeht0va0sVflFtuyzM0KkeOtFiiW6EMC+6MvC7hsjnTYke2LOmK R1oxWdGPB+VK5uU41LMK9inGV1sztQ0DmXgcl+shiZLJL/btxse+jIlAMO+Ng5JbzPtZ gLFw4rbp1bV3A5GoSHMxqVg0tIFvMnr7Xxc692i8MfZSsn/lf1ah75+pQ0mCmTYcs+6X HiHQ== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=o6poL5oOGRQ0PQHCaa5fYUG3QkfsQnsy9lsMKh0Nzqo=; b=sp2jAPNKDvQsAq1vCLt1cbKmz9IqilEdsaQ4eg0EIfiXVYtc8GNqBJVEVYJQxUd+Sz oLD5sxnNcwcAfhDYx5fAnLWv/+XoZJJeZGUnbt6TwhS2TDiGjp+36DSPt+Q/lc0CTwRT mQzCicMBrD8ZlfZsyh7yY2rmjDOno8FqWvft/sCLrHgwOCmHJVZkjAotUNiXAJzJzfAP L/a4MpkW793FEECZAlcxADkuHbQPUor1PLbuBSDTB/k4cNmahNCcYTLzPmbh+o0EBtMk 2Uk0gy0BKvphFOk5WRIuPF8w06EvsaUVTOBg3XUcXCZzHW1wX5KIy+M2Nm2Ll4gTjbMn rcWQ== 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 e185-v6si26134505pgc.318.2018.09.20.22.33.21; Thu, 20 Sep 2018 22:33:38 -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; 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 S2389076AbeIULU0 (ORCPT + 99 others); Fri, 21 Sep 2018 07:20:26 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47871 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726479AbeIULU0 (ORCPT ); Fri, 21 Sep 2018 07:20:26 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C58D0F3C27468; Fri, 21 Sep 2018 13:33:10 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.399.0; Fri, 21 Sep 2018 13:33:08 +0800 Message-ID: <5BA48294.8090503@huawei.com> Date: Fri, 21 Sep 2018 13:33:08 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Bhupesh Sharma CC: Baoquan He , kexec mailing list , Eric Biederman , "Linux Kernel Mailing List" Subject: Re: [PATCHv2] kernel: kexec_file: remove some duplicated include file References: <1537498098-19171-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/21 13:21, Bhupesh Sharma wrote: > Hi, > > On Fri, Sep 21, 2018 at 8:18 AM, zhong jiang wrote: >> We include kexec.h and slab.h twice in kexec_file.c. It's unnecessary. >> hence just remove them. >> >> Signed-off-by: zhong jiang >> --- >> kernel/kexec_file.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c >> index c6a3b68..35cf0ad 100644 >> --- a/kernel/kexec_file.c >> +++ b/kernel/kexec_file.c >> @@ -25,8 +25,6 @@ >> #include >> #include >> #include >> -#include >> -#include >> #include >> #include >> #include "kexec_internal.h" >> -- >> 1.7.12.4 >> > Nice catch. > Reviewed-by: Bhupesh Sharma > > BTW while we are at it, can you also send out a separate patch to list the > include files in this file (i.e. kexec_file.c) alphabetically (similar > to other linux source files - see > for example). Something > like: > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include "kexec_internal.h" > > This will improve readability and also reduce similar instances of > include files being added twice in this source file in future. > > Thanks, > Bhupesh Thank you for suggestion, I do not know whether all of maintainer care about this or not. Anyhow I will try it. Sincerely, zhong jiang