Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp287852pxa; Wed, 19 Aug 2020 00:59:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxopxnKILS93TM/PMsL5xVPJ9y5edzgfQ+/j/glXNl4Xt6bkGTwkvGgSB4X8uznXq2FSqJW X-Received: by 2002:a05:6402:1386:: with SMTP id b6mr23234488edv.296.1597823956706; Wed, 19 Aug 2020 00:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597823956; cv=none; d=google.com; s=arc-20160816; b=t0I6De6QLfBr3U4FbJZPZzjXq3IGAtEdAY9bOBzUgySDHJMYQjmnw7mkL8/rjDR1Aj 2nfAN0yEnSvC/urhnaPA9F7plJao0CTRW9jNfbbRSQ0syYd8kgL2RdH0welRnAfgXMST /WE4sLHC5O96cO3G4/a7o8RL6qPqnsCSBC9xRfHV0bZMrhCqty4ESqpfgtL5j4uu2Tla ldq+pEcNmFLftshZ0+Ko5Y1MJizkKXKlI7qklYp3Oxv+JPxiiMl1B4GHDZtU8a5N2Lqb mqMRPdq+noSHhhqxRNC/6oXXEvcs0WeZksksIdUsqckvP0vOgPnGkK13W1IB15RmcE6f C7zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kjakXr6jSFiPm/sHzjTULPXH2oUWc22L7hE2IhP2q8s=; b=UK9LQYU/vfLHHc1B6DGwu/tX+i5gp854MNSWxEvzB57epeaIZ7qI3qPiCfIpIIVCK7 6AOYfpWVpltF7YmsjRCqWBnqKQj5rUVazPkckwC92TZNhazThmF9ymoMVxEmZklO8pZC rCxg8H1khYOzUMV1JdA8fujkMSFCRvWcZ0a/62XWjmNjUJqg8sX+y2c47RVu3rjd8PBV EKIODBl1JZKwQEYJX9DelD3d/8aB8VIRzH7FJFaWFUSIlGMKv4uCLJZhS15dE0u8NTLc bUnp2rdkVPs9f5Qq3op4GVXYa1/uk6n3LUYWqZPB29sTFHmxHDYuDjvEtLvdBiCEG+EN wjHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Sq/pOTWP"; 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 a15si15235471ejb.44.2020.08.19.00.58.52; Wed, 19 Aug 2020 00:59:16 -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="Sq/pOTWP"; 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 S1726863AbgHSH6B (ORCPT + 99 others); Wed, 19 Aug 2020 03:58:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:48018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbgHSH55 (ORCPT ); Wed, 19 Aug 2020 03:57:57 -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 E09EE207BB; Wed, 19 Aug 2020 07:57:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597823876; bh=qVY/Tr2YPJpK284bWpyAgLY0JmZ7NnQxxLDZavUFr3Y=; h=From:To:Cc:Subject:Date:From; b=Sq/pOTWPOgwCXcev5DyArofi/qfPNVyyLdFUgS01R4cHAu27P8Pp5kusPtaydsRcP hAyXEf3rnG7fVYMuR7dC2O5c/4OlfZZcrvZ5bFm3DF/8h6qdr5SQW7CZvSe3Ng2mLS WcknwwPh0V5ypA+EMiT9wxkU5Zjh365/ya/SDNm8= From: Leon Romanovsky To: Ilya Dryomov , Jeff Layton Cc: Leon Romanovsky , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH] ceph: Delete features that are not used in the kernel Date: Wed, 19 Aug 2020 10:57:47 +0300 Message-Id: <20200819075747.917595-1-leon@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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< --- 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. --- include/linux/ceph/ceph_features.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/include/linux/ceph/ceph_features.h b/include/linux/ceph/ceph_features.h index fcd84e8d88f4..922e74c84c76 100644 --- a/include/linux/ceph/ceph_features.h +++ b/include/linux/ceph/ceph_features.h @@ -72,13 +72,9 @@ * the bit ever speak to each other. */ -DEFINE_CEPH_FEATURE( 0, 1, UID) -DEFINE_CEPH_FEATURE( 1, 1, NOSRCADDR) DEFINE_CEPH_FEATURE_RETIRED( 2, 1, MONCLOCKCHECK, JEWEL, LUMINOUS) -DEFINE_CEPH_FEATURE( 3, 1, FLOCK) DEFINE_CEPH_FEATURE( 4, 1, SUBSCRIBE2) -DEFINE_CEPH_FEATURE( 5, 1, MONNAMES) DEFINE_CEPH_FEATURE( 6, 1, RECONNECT_SEQ) DEFINE_CEPH_FEATURE( 7, 1, DIRLAYOUTHASH) DEFINE_CEPH_FEATURE( 8, 1, OBJECTLOCATOR) @@ -176,10 +172,7 @@ DEFINE_CEPH_FEATURE_DEPRECATED(63, 1, RESERVED_BROKEN, LUMINOUS) // client-facin * Features supported. */ #define CEPH_FEATURES_SUPPORTED_DEFAULT \ - (CEPH_FEATURE_NOSRCADDR | \ - CEPH_FEATURE_FLOCK | \ - CEPH_FEATURE_SUBSCRIBE2 | \ - CEPH_FEATURE_RECONNECT_SEQ | \ + (CEPH_FEATURE_RECONNECT_SEQ | \ CEPH_FEATURE_DIRLAYOUTHASH | \ CEPH_FEATURE_PGID64 | \ CEPH_FEATURE_PGPOOL3 | \ -- 2.26.2