Received: by 10.213.65.68 with SMTP id h4csp626479imn; Fri, 30 Mar 2018 12:09:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx493dNhti/m3yyA+FHNTtQ6iySS0+U2j4cwL+F482/Z1AED8bdAkXMXYkc2jnsCfXPT79hBF X-Received: by 2002:a17:902:7042:: with SMTP id h2-v6mr222535plt.370.1522436944763; Fri, 30 Mar 2018 12:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522436944; cv=none; d=google.com; s=arc-20160816; b=xDpF81i9cG7NVI8xovpfAqKU3OfmMV3BgsC71U6N54+L3uv4S+pkLhjfjuLxNmtyOp t0i2b9BsLojwLu5P2RPghhSatdMeF8vcjTfY3kEFzyggsPIxgllSPvIFnh9KSrHcSDzA JwSt5rB8wmXXo/MJFvjBvWgHRvUhHgHSVYg8fKLZIEdg9PWkvd+1vpAkZQrfx450/yx7 UMDAVxtZNPIPO2gCkc5qeSDoccFGKEtQf7c0aXvu1zjhCr18faTP2rEE4X9j5llGJfrv X5FBVoGIuLNwnWTolsms4mpbAhLf+Cza84IJR6EJcPDFdsEzh7DU3hZcqELIuKCnCgmu Cduw== 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=bnhM7jdmj2nAkYIQ4TgzDk3G68RYYt5UyHheW6/GPsI=; b=Zp25uXtxwRdXQn+BmNEwoWVDz3BDSDncLWIIAfsd9uMBLt8nA4nySxtkP4/WOIDZXs m+WbEM/glIQQsZZm0zTaue0qQ4Cd9Ch5yvmnzrV3ZMjzuh7DaTGsLtI6yfodcl9Loow6 kfokkefOE40NrGpg1hcRObfbJM/SmMZGJO+JE8+U5lmgLj7RMfx+35KMtAaZVB1OiqbL MnHlH+4zyQxigV7WYjRhvRnk43eX82v9Rs4Ch+31Kj6pH/9D1r1SCImB5dTbHtCN5DK1 9356Z2ZUDS+BfF+wlfCtXqgVJwJ0gXRAgreQDx70oWg7cVDrrTSZarkQACVA6DhDdreh ZFLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=qcOuAiEC; 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 a84si6831165pfl.154.2018.03.30.12.08.50; Fri, 30 Mar 2018 12:09:04 -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=qcOuAiEC; 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 S1752318AbeC3THn (ORCPT + 99 others); Fri, 30 Mar 2018 15:07:43 -0400 Received: from casper.infradead.org ([85.118.1.10]:46952 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbeC3THm (ORCPT ); Fri, 30 Mar 2018 15:07:42 -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=bnhM7jdmj2nAkYIQ4TgzDk3G68RYYt5UyHheW6/GPsI=; b=qcOuAiECzmvkFsa6sc62yOT8f Wku1cgmcWE9Wva1+1iV9SyVgddJhIg/JQYdaXr3D3v9G0CKgZqQv48fZLRaehJi9AgU+GiWxbjWIR iq+6h+sMy+oFCzaFU3B9an9WKxAG2/jCJajYsbVni60s/Lgn+WiA6fByel8lDrfdtozmNr9N5wg1H C7XzDL5VJ59LRhs/OAiTUUaevQ8kUDTINdc++7WJ/WaADUVJytTcQTGFVR99jwXbWKxg1HIrJhP2L PIxysM/qZ/Sw5OVWNFt2k7K2vO8SkXkslzV7d5l5frjOUgZhEl5lNiZqrR480RWDM7yXF9jdQ0C8z pnPe6HGMQ==; Received: from jsimmons (helo=localhost) by casper.infradead.org with local-esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f1zNA-0003BI-Ft; Fri, 30 Mar 2018 19:07:37 +0000 Date: Fri, 30 Mar 2018 20:07:36 +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 17/17] staging: lustre: remove cruft from libcfs/linux/libcfs.h In-Reply-To: <152229760887.27689.4035189219478811109.stgit@noble> Message-ID: References: <152229732768.27689.4800156943561963977.stgit@noble> <152229760887.27689.4035189219478811109.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-20180330_200736_540401_2E714A1B X-CRM114-Status: GOOD ( 15.32 ) 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 > These defines are unused or nearly unused, and do not > help at all. Reviewed-by: James Simmons > Signed-off-by: NeilBrown > --- > .../staging/lustre/include/linux/libcfs/curproc.h | 2 -- > .../lustre/include/linux/libcfs/linux/libcfs.h | 17 ----------------- > drivers/staging/lustre/lnet/libcfs/tracefile.c | 2 +- > 3 files changed, 1 insertion(+), 20 deletions(-) > > diff --git a/drivers/staging/lustre/include/linux/libcfs/curproc.h b/drivers/staging/lustre/include/linux/libcfs/curproc.h > index 4702956805a6..d6e4f47b5daf 100644 > --- a/drivers/staging/lustre/include/linux/libcfs/curproc.h > +++ b/drivers/staging/lustre/include/linux/libcfs/curproc.h > @@ -43,8 +43,6 @@ > /* > * Plus, platform-specific constant > * > - * CFS_CURPROC_COMM_MAX, > - * > * and opaque scalar type > * > * kernel_cap_t > diff --git a/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > index c39c34d74382..0dbd01617865 100644 > --- a/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > +++ b/drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h > @@ -81,8 +81,6 @@ > #include > #include "linux-cpu.h" > > -#define LUSTRE_TRACE_SIZE (THREAD_SIZE >> 5) > - > #if !defined(__x86_64__) > # ifdef __ia64__ > # define CDEBUG_STACK() (THREAD_SIZE - \ > @@ -114,19 +112,4 @@ do { \ > #define CDEBUG_STACK() (0L) > #endif /* __x86_64__ */ > > -#define __current_nesting_level() (0) > - > -/** > - * Platform specific declarations for cfs_curproc API (libcfs/curproc.h) > - * > - * Implementation is in linux-curproc.c > - */ > -#define CFS_CURPROC_COMM_MAX (sizeof((struct task_struct *)0)->comm) > - > -#include > - > -#ifndef WITH_WATCHDOG > -#define WITH_WATCHDOG > -#endif > - > #endif /* _LINUX_LIBCFS_H */ > diff --git a/drivers/staging/lustre/lnet/libcfs/tracefile.c b/drivers/staging/lustre/lnet/libcfs/tracefile.c > index 129430e74d00..514e1845740e 100644 > --- a/drivers/staging/lustre/lnet/libcfs/tracefile.c > +++ b/drivers/staging/lustre/lnet/libcfs/tracefile.c > @@ -328,7 +328,7 @@ int libcfs_debug_vmsg2(struct libcfs_debug_msg_data *msgdata, > goto console; > } > > - depth = __current_nesting_level(); > + depth = 0; > known_size = strlen(file) + 1 + depth; > if (msgdata->msg_fn) > known_size += strlen(msgdata->msg_fn) + 1; > > >