Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp225347imm; Thu, 20 Sep 2018 22:22:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaEFIlNo/OH4piJ3YhKm4inVMPmfK6c4NIZgCsnqvZvcKMQ5ig/D7/umRMfOLCjloaRVu0R X-Received: by 2002:a63:6445:: with SMTP id y66-v6mr9354986pgb.443.1537507334256; Thu, 20 Sep 2018 22:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537507334; cv=none; d=google.com; s=arc-20160816; b=t6+LGhqJmbVtU3uIsItjWJ68eUEF6e2wIbwYRYrBlqicUdyWaSmfmDEvIADFsteFYs mBqTI6TX7aAdkPUhmDlqbOsZg3vTCpq1JzBI+vz/c/SI5VPov/WPbBlgJ+0GksxZmz9l nACNOiQLVjYPwxbSsoCHZiJkZ/730CFzjqLOd0ATDVnRltUGcX1dJYny9WgrnuZ7BoBg KiahLTRqlv8oZVUAPhJ4HnmAktWSKChkuKejdYBnVW6Vsl4i9IplP4CyCa71mBxw34mU laCAKRaDx5qUdwDOxWIdp/jxkiDKIuPpPzsU7H//wc3F/z0Wsz90p8maRyhyKqtEpSsZ H3ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version; bh=c0TDchje/syqfRtebHaI3EvmqKT532k1o/d7yAmvdw0=; b=knH+cC5iQTC2ARWvty7u+/WlLRN9GuWg34PjXfhwvQVr3beWJSLfJrEST1GPUwJ/pT xhOSR57ydb8yXORjvqJ8FlQhRZLF3c4MVhAjRD2aHI6bkBmTva9f5+58BauIxyBuPhCO vXhKifmHK4nJmpUqKbWtthsDm3UQ57SVDBkjm2rwtEdK3I7cZpmk788BLVMMblzLaftM lquyUl2+5Wmw9hj4xPY2lwciLrpKic/wWph1nRcx49g5BFONpWoAS/CTNvDq0EXacNz4 nTFqP/z3F2UZyhD+YuXGYlNgR6UCr7r932aASIY13x67E65yFvo+T1RrYyzsRmxBqJMw jkZg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si26669486pln.465.2018.09.20.22.21.58; Thu, 20 Sep 2018 22:22:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389022AbeIULJB (ORCPT + 99 others); Fri, 21 Sep 2018 07:09:01 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:38332 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbeIULJB (ORCPT ); Fri, 21 Sep 2018 07:09:01 -0400 Received: by mail-lf1-f65.google.com with SMTP id z186-v6so10385305lfa.5 for ; Thu, 20 Sep 2018 22:21:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=c0TDchje/syqfRtebHaI3EvmqKT532k1o/d7yAmvdw0=; b=OgCgHSdwuE0zNRBmNqwx0IspgD0DmEdVGFl7p1v36+4uKivaQ5w/yvZH9citwSFm98 GUtT5PJzASUB/ZpT8xWjIWfxcR7GCrPit+h6Q5ifILpjSNnZmSToNaHyJ0el7A4sHf0z nruACvuX+bhWQpe0dMDMeHtJgPAiG/6eKn3eqGJj4cHSNmuJbFMybxWj0BKIjs/xi4j4 kEadCJvRFCTekYtU7hmsX8+wCty19WuEoGPkZ9a7TKZAZ6kNNPmjp/P7juLUTbUBN9UB phVumedWrBt2uwiH3uPK1wlykJvCltmq3PnCyE4HmBUZgbUEMJNTFNsC9WZpMcMi9c0j 5bbQ== X-Gm-Message-State: APzg51DnWqeETc6AH3p9GcjfL5dzW310IYNdPZHtG1hD72N+Spg4wISP KuQAbAtlUufGSzFDRARikvb0VhZR6yXXfG1iqBkQQA== X-Received: by 2002:a19:5a8f:: with SMTP id y15-v6mr12594984lfk.15.1537507310232; Thu, 20 Sep 2018 22:21:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:9357:0:0:0:0:0 with HTTP; Thu, 20 Sep 2018 22:21:49 -0700 (PDT) In-Reply-To: <1537498098-19171-1-git-send-email-zhongjiang@huawei.com> References: <1537498098-19171-1-git-send-email-zhongjiang@huawei.com> From: Bhupesh Sharma Date: Fri, 21 Sep 2018 10:51:49 +0530 Message-ID: Subject: Re: [PATCHv2] kernel: kexec_file: remove some duplicated include file To: zhong jiang Cc: Baoquan He , kexec mailing list , Eric Biederman , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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