Received: by 10.192.165.156 with SMTP id m28csp188138imm; Sun, 15 Apr 2018 20:37:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HJQbSyjdghYcV5vDHpSdKmFaq0viuBowCEWZYbM7u8CTVB+7nEOBS0e9Jjnedi4jUcItJ X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr13532039pld.379.1523849831818; Sun, 15 Apr 2018 20:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523849831; cv=none; d=google.com; s=arc-20160816; b=duS33rgsPP/jKBjR7mWoOSCmjEEw4WTJ0rgfdK6SZYZ9d2HrSi/SmL1KaIMagFBWRJ 4gORVYGVocuSZI3yjGAFD/MLeB7mwmhrLNMPF7C/muBPulN4A9ODC5YMsirj3Kb2Grng GXf7/2nADus8btJVziKGSoRWUFXAbe1r/Kdy6PzcAA1Y06Fkg1AgjD1lFYKmEvv829yJ RIbwkuEYgElt5fSbg78o9+fUoYjA3pWrOqHqiJwYSXdqdZhqNpdbzvRXL/GIFtYPwLjP SQh2E1NLyZygLWZQjZkUOXt34fQK7Q1PGOUvkIIVFSu2+a28MOpG7GbhLDfqh46xQuPH VX0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=biPMY7ARFWvaeojhA43tshK1kDJtUrVoyMRO06OYpog=; b=f//JAIZ4bBUI/zVfpd7jQp96YZ1XMev6StDCVefxL83epYozrJtaLCSABWePfR+w/d gPxnAvCjny+8R62DILWTUk1+mk/PwCnFFfuGw7xaPFuO+NkRJGghzLsCcMVRyUOele5i uBdVHzqVYzKSDFwKw/o5iLv67o0OhaM1TuR0agtGNVCYDv/WZe+j8jubbBvwjrqidHAx xAuCWFP/ux6sj6AMBLDaAz9lypzbnxuWEC8xYdkaPDYhbXYSzeOWxtcutf9UhUQkCpLR 3VTqGIxUVjmRnU/Gin+XBukY8AJ+7QnbQZWapFAtqJnLcsHBgIxns5/eTerQnTPKVGLW vMNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=K89Th4fS; 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 x64si10551976pfj.318.2018.04.15.20.36.57; Sun, 15 Apr 2018 20:37:11 -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=casper.20170209 header.b=K89Th4fS; 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 S1752898AbeDPDfy (ORCPT + 99 others); Sun, 15 Apr 2018 23:35:54 -0400 Received: from casper.infradead.org ([85.118.1.10]:49354 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752639AbeDPDfx (ORCPT ); Sun, 15 Apr 2018 23:35:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Message-ID:In-Reply-To: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=biPMY7ARFWvaeojhA43tshK1kDJtUrVoyMRO06OYpog=; b=K89Th4fSgyqwL7H5xvlH5eXn/ Rd5UxI/f6ISrKkFdy2ORvVJjfY5Icaa/VN6l9tNumcoDO7fNup/g/DdcHm5TZ7udQ8c9Y+u1V0fcr 0OBqAZFyAMbp9TtAUnGELQZ7s4XIfbT+zm71jvwHzwrYP/76Ii13/BkkJW8BWTl5b9359tG3d2t76 zMahfJGCpB0txGfkHsGJCZemm4fz+OYx6AUUuq4PzpwXxixfur2bHJGQqu2CE3OR5Q8zfklv10eHc KPiF2LVuFsMDapgOGMxLb8lhzgeDe8Ls0CvjC3EAA6wA961cOtkQmLgCDxNdtUnGifDKrEKhgoWvI tTzsPuY+w==; Received: from jsimmons (helo=localhost) by casper.infradead.org with local-esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7uva-0004of-B3; Mon, 16 Apr 2018 03:35:40 +0000 Date: Mon, 16 Apr 2018 04:35:38 +0100 (BST) From: James Simmons To: NeilBrown cc: Oleg Drokin , Greg Kroah-Hartman , Andreas Dilger , Linux Kernel Mailing List , Lustre Development List Subject: Re: [PATCH 2/6] staging: lustre: remove libcfs/linux/libcfs.h In-Reply-To: <152383935734.23409.11654775387996961581.stgit@noble> Message-ID: References: <152383910760.23409.2327082725637657049.stgit@noble> <152383935734.23409.11654775387996961581.stgit@noble> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180416_043538_388586_19DD8FC0 X-CRM114-Status: GOOD ( 27.36 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 NO_RELAYS Informational: message was not relayed via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > This include file is only included in one place, > and only contains a list of other include directives. > So just move all those to the place where this file > is included, and discard the file. > > One include directive uses a local name ("linux-cpu.h"), so > that needs to be given a proper path. > > Probably many of these should be remove from here, and moved to > just the files that need them. Nak. Dumping all the extra headers from linux/libcfs.h to libcfs.h is the wrong approach. The one header, libcfs.h, to be the only header in all lustre files is the wrong approach. I have been looking to unroll that mess. I have patch that I need to polish you that I can submit. > Signed-off-by: NeilBrown > --- > .../staging/lustre/include/linux/libcfs/libcfs.h | 43 ++++++++++ > .../lustre/include/linux/libcfs/linux/libcfs.h | 83 -------------------- > 2 files changed, 42 insertions(+), 84 deletions(-) > delete mode 100644 drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > > diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h > index 62e46aa3c554..e59d107d6482 100644 > --- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h > +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h > @@ -38,7 +38,48 @@ > #include > > #include > -#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > #include > #include > #include > diff --git a/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > deleted file mode 100644 > index 83aec9c7698f..000000000000 > --- a/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > +++ /dev/null > @@ -1,83 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0 > -/* > - * GPL HEADER START > - * > - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. > - * > - * This program is free software; you can redistribute it and/or modify > - * it under the terms of the GNU General Public License version 2 only, > - * as published by the Free Software Foundation. > - * > - * This program is distributed in the hope that it will be useful, but > - * WITHOUT ANY WARRANTY; without even the implied warranty of > - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > - * General Public License version 2 for more details (a copy is included > - * in the LICENSE file that accompanied this code). > - * > - * You should have received a copy of the GNU General Public License > - * version 2 along with this program; If not, see > - * http://www.gnu.org/licenses/gpl-2.0.html > - * > - * GPL HEADER END > - */ > -/* > - * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. > - * Use is subject to license terms. > - * > - * Copyright (c) 2012, Intel Corporation. > - */ > -/* > - * This file is part of Lustre, http://www.lustre.org/ > - * Lustre is a trademark of Sun Microsystems, Inc. > - */ > - > -#ifndef __LIBCFS_LINUX_LIBCFS_H__ > -#define __LIBCFS_LINUX_LIBCFS_H__ > - > -#ifndef __LIBCFS_LIBCFS_H__ > -#error Do not #include this file directly. #include instead > -#endif > - > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include > -#include "linux-cpu.h" > - > -#endif /* _LINUX_LIBCFS_H */ > > >