Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1058738pxx; Tue, 27 Oct 2020 07:20:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyibAHYlck6gpjOUpMLSxk762LAeLydSeWPlhM2/z6JQ5R8bztYVvSlnCBeDsVhbEg1yhxm X-Received: by 2002:a05:6402:50c:: with SMTP id m12mr2375631edv.183.1603808452711; Tue, 27 Oct 2020 07:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603808452; cv=none; d=google.com; s=arc-20160816; b=jqPjPMFNfWJqfAkuM1EWGJso63hFPPlbX7nA+0Jjv5q/tZ5wHvkkCJocKNhqqbBFpU jekHGbZrMSUwXHKRBgYPTK09/JDKa0bwvT1tQohNVZQidSo+eBprJ8Jtoam/heC/NJvz zA2ZZfXcmc23COu99KB4+L7oy6FnEutlPsqo4adeV6B0Jj5DDySqNr/71MbxcHgtAsgz JEEKMWLLhCjeBhwPzRxcIaRkAY7WdYQDe3knu0E5m3lmqMCbhUXF4hEc66bbnhjeS5f1 GhQ4CTomuVa3saEYDN7oN7qaM6fzDKaVa+SM0BQeoaDIPfFRVuCK2CRVWiQRiY91g6iA FGiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fSWpZLWK6a50bQhHF7Ngx8fWlq2jDUcqwsZZ4Vyxv7g=; b=HeOWIPYobfKpd+YQIT6fCKly9BYLCRo5Xgzy49qygnszXkeHSV+EwYvFz2m8X67oEW TB2cwxHg1gh33f4UwMy+/5ugWsxgqj4GwbTug2rbpv7fgZClPru647+kD5GuSk3LHZoa xbKfx9Mn92NU96xt/6yjwg0oT7eOjxNf1DfaTcMI4X7TQeOc+USQj9yU7JB5c5b4g9qS K9bGIzjV19pS+iDro46SwifhCt3qwpaztitL2XyrNXRRhN6/hxE22/DUeBZFtDDHQGwH YY+ryF77t/5sGhY6fhYFCPt6PxzVy0eefnEhmW72CXbIZ2vYgzGme+zVUB+f7YO1evHz BXtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vGHUAbwt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si897673edy.250.2020.10.27.07.20.29; Tue, 27 Oct 2020 07:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vGHUAbwt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895050AbgJ0IwA (ORCPT + 99 others); Tue, 27 Oct 2020 04:52:00 -0400 Received: from casper.infradead.org ([90.155.50.34]:34938 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2894680AbgJ0IwA (ORCPT ); Tue, 27 Oct 2020 04:52:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fSWpZLWK6a50bQhHF7Ngx8fWlq2jDUcqwsZZ4Vyxv7g=; b=vGHUAbwtRoi7FpOwEWJanX7hdN xQK/hI9J8zJv23Nahp1/fB+NmsiJU8yXJfFgzIhV+dWKbcu7pJYtjkH54YhBs/zBxaxqx5tnup1gE sSf3bEU1hm/OWwBDTLdnrHXZ5wvGukI3WU6/3TrKKIgsm6H3HBirQPXx3zexASq+A89+3oidV0gFb YsR6swbQlscxykecfRepR+BdcKEhR2Zmd67TC4vrh8hf3tfGqG/nG2UdIkplGN91/7uq8Huq0/qDB vfuwiD/cyT1dF1XnjjYhufu6uLeR7f8cGVLWwaRIAzagBh5QTT1VPoYij7dZnYDx0VTqnc4kfgHo1 yD+lkSOQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXKhs-0003YB-AW; Tue, 27 Oct 2020 08:51:52 +0000 Date: Tue, 27 Oct 2020 08:51:52 +0000 From: Christoph Hellwig To: Viresh Kumar Cc: Alexander Viro , Vincent Guittot , anmar.oueja@linaro.org, Arnd Bergmann , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: [PATCH] dcookies: Make dcookies depend on CONFIG_OPROFILE Message-ID: <20201027085152.GB10053@infradead.org> References: <51a9a594a38ae6e0982e78976cf046fb55b63a8e.1603191669.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51a9a594a38ae6e0982e78976cf046fb55b63a8e.1603191669.git.viresh.kumar@linaro.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks good: Reviewed-by: Christoph Hellwig Is it time to deprecate and eventually remove oprofile while we're at it? On Tue, Oct 20, 2020 at 04:31:27PM +0530, Viresh Kumar wrote: > From: Arnd Bergmann > > The dcookies stuff is used only with OPROFILE and there is no need to > build it if CONFIG_OPROFILE isn't enabled. Build it depending on > CONFIG_OPROFILE instead of CONFIG_PROFILING. > > Signed-off-by: Arnd Bergmann > [ Viresh: Update the name in #endif part ] > Signed-off-by: Viresh Kumar > --- > fs/Makefile | 2 +- > include/linux/dcookies.h | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/fs/Makefile b/fs/Makefile > index 7bb2a05fda1f..a7b3d9ff8db5 100644 > --- a/fs/Makefile > +++ b/fs/Makefile > @@ -64,7 +64,7 @@ obj-$(CONFIG_SYSFS) += sysfs/ > obj-$(CONFIG_CONFIGFS_FS) += configfs/ > obj-y += devpts/ > > -obj-$(CONFIG_PROFILING) += dcookies.o > +obj-$(CONFIG_OPROFILE) += dcookies.o > obj-$(CONFIG_DLM) += dlm/ > > # Do not add any filesystems before this line > diff --git a/include/linux/dcookies.h b/include/linux/dcookies.h > index ddfdac20cad0..8617c1871398 100644 > --- a/include/linux/dcookies.h > +++ b/include/linux/dcookies.h > @@ -11,7 +11,7 @@ > #define DCOOKIES_H > > > -#ifdef CONFIG_PROFILING > +#ifdef CONFIG_OPROFILE > > #include > #include > @@ -64,6 +64,6 @@ static inline int get_dcookie(const struct path *path, unsigned long *cookie) > return -ENOSYS; > } > > -#endif /* CONFIG_PROFILING */ > +#endif /* CONFIG_OPROFILE */ > > #endif /* DCOOKIES_H */ > -- > 2.25.0.rc1.19.g042ed3e048af > ---end quoted text---