Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp311690pxa; Wed, 19 Aug 2020 01:50:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoaNn8aCvFZqQoX+4myzvwgtFtywkqu3nvvTI2oWXCT1uFrxWurEkOAYpEJV+KTRiDe6GO X-Received: by 2002:a17:906:8748:: with SMTP id hj8mr24925980ejb.477.1597827043024; Wed, 19 Aug 2020 01:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597827043; cv=none; d=google.com; s=arc-20160816; b=K9PECg9cqwko5qWltjOCi+a/W6UmZTht7a93LGS6zWfHnIfd5qOy+Im7aN91amrTvb 7AEsOcqHuwptpxAJiieQSxX+ZCAbbJws73SNXyMiuzY4UEx4zuAu9ms01X6r8Qi+i8Ch qqotCnKwDtYcI7lrxNc3UfozEdPFXtm0D+rZ6xEpVM9zovSoBzMhLQcczZoHlPPKefuG xqTEtNrPit8XwKFXmwqt83rBUqDBFzDXYLL/NjIpETKGJKUIpgFqMgyBNMbXST8foycO JTgVImyLYO+BBt3HtDq3IekY70ChqgL3LE5W8JhM7d/a9KiIo9BUPeaFNof+/5/tbBeb rgEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2lLTCczrQh62kbn0LV4P/GWYE36PPuwRyteP+zzX8wk=; b=HLBEXUiWcNbYwCHufAmEUc94Ss1YOjT7soHJarOdop5Vl7mustVD8t9NClAczsqRMB XIkREmH56wggh8ZMNcvYTRzno4wRcYEIR5gsBQUePotClVDHsFE6HN8b0YGyb3gN1+gx S3Y9DQbkvII7r9k77+OX4j3AcWS2jwGN+CPakFwmIFzRvz0zjJso9UrHX6ntkHkctitC DDVhfhktL0ZDQRr/eE3/hzME6x5RzSFPGSMyo5ZE5ebtqo17P8JH55zM6m1yoqA6ej0K tJrW7MoKGrGk0/E1EuExeRLtsKcrspMF4TjlBdrZ59/pJ69S28CZ9kYrU7LOyHqoST7j Ifeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=McYBa+sS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e5si15276962ejc.182.2020.08.19.01.50.19; Wed, 19 Aug 2020 01:50:43 -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=@gmail.com header.s=20161025 header.b=McYBa+sS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbgHSIrd (ORCPT + 99 others); Wed, 19 Aug 2020 04:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbgHSIrc (ORCPT ); Wed, 19 Aug 2020 04:47:32 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34FAC061757; Wed, 19 Aug 2020 01:47:31 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id a5so23841226ioa.13; Wed, 19 Aug 2020 01:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2lLTCczrQh62kbn0LV4P/GWYE36PPuwRyteP+zzX8wk=; b=McYBa+sSZfjCaQIc93lGAw+k/ndlaabNewGv30b6LXpCync6L5z8r9ImHnUSlpklJy NUUMOYznxFZuN5sVFdbCVfqA375t/McRjJkBEDG/XkTT92S2PoI7L3zjHiQr0xYAiHND 8z7RRZPlHzwhEdBfgm90GckDUuywceWVq/U1xlvWjgQHTVHlgBoilk85pN3rf3FTOYGv etpvUCxjmmda7BvZedieH1C/IIAPNaIA9Nkvv8Px0VGJzKIisEEILwE3C1t4VrjPaGnM x7LqUElinnzm31XGUH6cV/3dAqzHH4mjFFjnjxxWMJBOEOF72jnH5WiHPHAiRP+f8TzK 8YXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2lLTCczrQh62kbn0LV4P/GWYE36PPuwRyteP+zzX8wk=; b=sO6iBK9Ur6eNbbgaB3/8nLTT4XbSVtmYak5/HbmUI1+ksOpI+rIIoJouD+RsOGXXVN LG8PuMzmH9Jq/hNniMg/GoiCMA2nVznxgE8z67xhZ9TiXeLUNTkTtW/YsxvsWQmfK515 CSU6h5GuKwt5r9zmFJWYR/qFnEtEvGBFQhR2HC1WjjJCw0cbe2SuxHRRtM7GLQYptkdO U5f2Ig44QLzyPV1Kct+iFqBS2anAoTZQctYbgIe/lJLo0R/h9M4ENqPR1yPi/PdMw2eY oweZhzjgb2k2Rek/UWgosImydLdXYalhpIo5kD6Zg+pu0p/c+NmC/K0rO26GbWB7P1mo 93jg== X-Gm-Message-State: AOAM5317Y3pEJKziE5Lb5m0wa6ldWZoYHmjRLGX8x4cbuuo1M4WY3Scg UU7pIcJHXyWlBz3PE5PhrzqA9IkDFe1uivj0MW9C7imd4Ic= X-Received: by 2002:a05:6638:12c4:: with SMTP id v4mr21973953jas.11.1597826850919; Wed, 19 Aug 2020 01:47:30 -0700 (PDT) MIME-Version: 1.0 References: <20200819075747.917595-1-leon@kernel.org> In-Reply-To: <20200819075747.917595-1-leon@kernel.org> From: Ilya Dryomov Date: Wed, 19 Aug 2020 10:47:38 +0200 Message-ID: Subject: Re: [RFC PATCH] ceph: Delete features that are not used in the kernel To: Leon Romanovsky Cc: Jeff Layton , Leon Romanovsky , Ceph Development , LKML Content-Type: text/plain; charset="UTF-8" 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 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, Ilya