Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp336961pxa; Wed, 19 Aug 2020 02:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymEKwaVV59TqcRv9M0a5K/dCMXaaENYoRovwTpyF2Y7dW7ZtLWSNIQZYLwhUJNtmAovlk+ X-Received: by 2002:a05:6402:3193:: with SMTP id di19mr24271831edb.224.1597830217289; Wed, 19 Aug 2020 02:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597830217; cv=none; d=google.com; s=arc-20160816; b=mldVDb3lctLHEdwJvVQxkXO9f/BoH+K7nbUzn3gKEkbJKGNRTSJapwBdYFD9wPVNrS LsZlw2zGLxyjJ4NkWpO4dVX6bOMUzv6MYe0ZEWumdRNRCzwAU+h4QHDk7uU6laZDzwke w18y7d5POd/Zd++Uk7LEgFcda0Beu8/kbUIFJmBiW4VFIFVlMNcBJyAJsiHzlasQBphH Ni12lUNjBIA/IxkYrnQPWhP0Fi3HfDhI3I7sOeBsDCe6VBz8r7j/pTfkZmOD1Lo//f9/ joBpL+6FAjhX2QlBXseFRFwcORjOZL84Ep/ZdheOIFCZ/V05+KZNt+3Uey7nW+exGLna KYsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sU/5yn1Ws7MMOfl1AKOnFfbR7tiZspP+WjhbubR5Ank=; b=XtQeG+dPTPe9Syv8yZ6nWlDqfOSg/O85B8Ik846ieR2CElVPI2Tfa+6ASF9bfez1Iz hvUP6WuKxiQMNgxNQy90VLFY96J9vKxt2S/GOXwiXxPVhv4/KfeYyQaV1DXQQ8K7YE/U gcUVnrVvxs2aQrQ/t5FkCoZZ4pv9z1EbfDg6i4RKPeaV0oA4W0hTjdqKm1N47ZCeHAX2 Y6n7VgB8Qcg+EdCKMAjy3xMWvIvqw0dSOOykQZHxT2ffk5GVyv74H+bvdM7vEMWWBLEE WkhLPgVLTXdtxMMZmd82vBoawgkeWSiwgloM5vChuuezuRPQ1TWcAaMVCiZzXl3jCOAU vLzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F1Ozp2FM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os25si747281ejb.448.2020.08.19.02.43.13; Wed, 19 Aug 2020 02:43:37 -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=@kernel.org header.s=default header.b=F1Ozp2FM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727019AbgHSJkl (ORCPT + 99 others); Wed, 19 Aug 2020 05:40:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:43138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgHSJkk (ORCPT ); Wed, 19 Aug 2020 05:40:40 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D803C206FA; Wed, 19 Aug 2020 09:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597830040; bh=zWlnnmPKekpNj9Y7nF8x2xH0z5eGvfiJTnebm6MK6iE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F1Ozp2FMCiu1nGYJ0WKQtL9pUQLIznu7r34psjTtEfcJa6NbQFH0nrK4XvfeDqivJ 9CCVmcn1TzRIBgLeNS24FrB5zlUZ1KMQKfkKiRFmvkIQyPIz7v+OzhSEP0YBY5v/2a L8q02eB904x3nL8639fpF5sQY9wieu352DVPKO+A= Date: Wed, 19 Aug 2020 12:40:37 +0300 From: Leon Romanovsky To: Ilya Dryomov Cc: Jeff Layton , Ceph Development , LKML Subject: Re: [RFC PATCH] ceph: Delete features that are not used in the kernel Message-ID: <20200819094037.GT7555@unreal> References: <20200819075747.917595-1-leon@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 10:47:38AM +0200, Ilya Dryomov wrote: > On Wed, Aug 19, 2020 at 9:57 AM Leon Romanovsky wrote: > > > > From: Leon Romanovsky > > > > The ceph_features.h has declaration of features that are not in-use > > in kernel code. This causes to seeing such compilation warnings in > > almost every kernel compilation. > > > > ./include/linux/ceph/ceph_features.h:14:24: warning: 'CEPH_FEATURE_UID' defined but not used [-Wunused-const-variable=] > > 14 | static const uint64_t CEPH_FEATURE_##name = (1ULL< > | ^~~~~~~~~~~~~ > > ./include/linux/ceph/ceph_features.h:75:1: note: in expansion of macro 'DEFINE_CEPH_FEATURE' > > 75 | DEFINE_CEPH_FEATURE( 0, 1, UID) > > | ^~~~~~~~~~~~~~~~~~~ > > > > The upstream kernel indeed doesn't have any use of them, so delete it. > > > > Signed-off-by: Leon Romanovsky > > --- > > I'm sending this as RFC because probably the patch is wrong, but I > > would like to bring your attention to the existing problem and asking > > for an acceptable solution. > > Hi Leon, > > Yes, removing unused feature definitions is wrong. Annotating them > as potentially unused would be much better -- I'll send a patch. > > I don't think any of us builds with W=1, so these things don't get > noticed. Thanks, W=1 is our default compilation level for Mellanox RDMA submissions. > > Thanks, > > Ilya