Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4376289pxu; Wed, 9 Dec 2020 15:54:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwV6GzEoNIsyj+DwhaWCAI7uwHX/zFTDVq6ufqkUklPGjHXo2BNKhI3W4xs0kwMisoMR5d7 X-Received: by 2002:aa7:cfd7:: with SMTP id r23mr4250165edy.298.1607558048876; Wed, 09 Dec 2020 15:54:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607558048; cv=none; d=google.com; s=arc-20160816; b=ZqLR6HwNNQctT0qLKXJTCsXjpxXYDdjHVyE3JaDiy8NojCgzhE065H06O7qpSAwtjL cE69OHNUk12vKZ/QuG8QUc1vrkVT2ts7Dpe66kf/nbxoWnVTSQLdS2RD8412l1b+hGy4 Rwn55GAoAJDZZfoHlu+cSjkAIUpKL0+Ol3Y4bhA+UJxjYYyZpw8EdGJbjwdF/x0zCrza IFD0r4g9VwzQMGOzqyRk5v74je5d+uNy+wtqFTK68nqxN+ZyQErtKC+wyAr3itx6/p++ /tQ94A0tn/5Biu7J2mPJRzWx35qWqsKthVytITA3oO+FvydB0RmgGvPM6CKTVpXh1hku JKsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=8wQM6SGZhatAmTI9tOUrGWUVSmmno5n0WNRbEje9OEI=; b=nF3jagdFswHNfRe4Ed9th9Urlhq6b6r0AQi6NDRzFzlNIg+d12FtXwoKEoEqp1c7wF AF1v/nEM1RyS3Zvxz3Hew/robT6rLc0gy8lL/omCy558T3Mbs5SCYNW/rfkm3Jle63+0 II5MTC2iXC0PiXTw5SArEc7A0LhV5AqJvLGISGWn0ekFeE4MThoEjLrHvlSBAYfwFk1I akRggUZrEw2wGKqcx+n5bmi6Xq7DUNqnPC/m0tKL6C1tes5UWxTxEqX3NjDjnMeD5F+F vbK7la7lBwRc1aorHWbmKdYyfyF2vQDgz4Q9JAvfn6eXm1cV1yucLw9pq3o6je7nrfNc +gQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mknZQBlU; 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 p18si1992768eds.125.2020.12.09.15.53.47; Wed, 09 Dec 2020 15:54:08 -0800 (PST) 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=mknZQBlU; 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 S2388867AbgLIW1B (ORCPT + 99 others); Wed, 9 Dec 2020 17:27:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388803AbgLIW0S (ORCPT ); Wed, 9 Dec 2020 17:26:18 -0500 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3122C0613D6; Wed, 9 Dec 2020 14:25:37 -0800 (PST) Received: by mail-pg1-x542.google.com with SMTP id v29so2239068pgk.12; Wed, 09 Dec 2020 14:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8wQM6SGZhatAmTI9tOUrGWUVSmmno5n0WNRbEje9OEI=; b=mknZQBlUBpIaNmmNfvrzMywLKXW4Mw/vpLFSF0lCvqdUXWAbNTm6tJpl1wSsvVVn1p rfOHDGKYlBc3jpgydISN+WfsMekyHOepRVQuW4ZF2LqzlHoBZ3ypp52MJdrXtUa2gn+H pGfyNBh2DI537zi05lWJXgZR4Ed6EGm29VuhvKL61xa3nkhPnIbG+BlqybWBiIPkHZsx A39rfywAUbdFqRGkZ1S/nDWr0bpmBrC0PhPPoojGO8lTmq8BnFMICRei04QLHP5J3wgb w+JK2dj44tukjDJs9x6PUsqZ+JvSs+XIVgif168fbGvwLUKzXoYXuMUDLt/qxs/dR5mG tuAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8wQM6SGZhatAmTI9tOUrGWUVSmmno5n0WNRbEje9OEI=; b=qXPLPF3PtrOK3VWt7E8l7aHotNgg1Gbw52YJ5KAK4F/5M6DP7713P+r8y/q54hQcM7 pS0+OGTyxyqVXdJVIoWVwPIYJ9qdSqNtdbghMk2lVRqxmyGUAD9DVzojGC75QHOPbGry lqxuBn3sLfd31zI/wbwvXdgg4KQ3bvLADKcfjp54iUuiWRNYqNAusoUPDZGhdLNwxBIN X5exRxcvVsRM/4fAiaqtm200yp9wXJdO6OutDX9ZOlQ6BsPVLrbiND/Q7K7g7GS28BWW pIiBMh9VvAiYfV9klmBkDjGIxU+i3EkmZWlVaicOxEzLr1zdkiRuycGOUnEyN7ncEE/I h2JQ== X-Gm-Message-State: AOAM530acbeWAyWUfh++lIvajnqPCQFSFpaWY1b0+otq9/PlIpiYIic2 /cML1Ns8Q+vdSQ5tY0ejieOkXI2j0d8= X-Received: by 2002:a63:1c21:: with SMTP id c33mr3854626pgc.161.1607552737093; Wed, 09 Dec 2020 14:25:37 -0800 (PST) Received: from carrot.localdomain (i118-19-12-158.s42.a014.ap.plala.or.jp. [118.19.12.158]) by smtp.gmail.com with ESMTPSA id c66sm3902852pfa.0.2020.12.09.14.25.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 14:25:36 -0800 (PST) From: Ryusuke Konishi To: Andrew Morton Cc: linux-nilfs , LKML Subject: [PATCH] fs/nilfs2: remove some unused macros to tame gcc Date: Thu, 10 Dec 2020 07:25:33 +0900 Message-Id: <1607552733-24292-1-git-send-email-konishi.ryusuke@gmail.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Shi There some macros are unused and cause gcc warning. Remove them. fs/nilfs2/segment.c:137:0: warning: macro "nilfs_cnt32_gt" is not used [-Wunused-macros] fs/nilfs2/segment.c:144:0: warning: macro "nilfs_cnt32_le" is not used [-Wunused-macros] fs/nilfs2/segment.c:143:0: warning: macro "nilfs_cnt32_lt" is not used [-Wunused-macros] Signed-off-by: Alex Shi Signed-off-by: Ryusuke Konishi --- fs/nilfs2/segment.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index e3726aca28ed..cd4da9535aed 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c @@ -134,14 +134,9 @@ struct nilfs_sc_operations { static void nilfs_segctor_do_immediate_flush(struct nilfs_sc_info *); static void nilfs_dispose_list(struct the_nilfs *, struct list_head *, int); -#define nilfs_cnt32_gt(a, b) \ - (typecheck(__u32, a) && typecheck(__u32, b) && \ - ((__s32)(b) - (__s32)(a) < 0)) #define nilfs_cnt32_ge(a, b) \ (typecheck(__u32, a) && typecheck(__u32, b) && \ ((__s32)(a) - (__s32)(b) >= 0)) -#define nilfs_cnt32_lt(a, b) nilfs_cnt32_gt(b, a) -#define nilfs_cnt32_le(a, b) nilfs_cnt32_ge(b, a) static int nilfs_prepare_segment_lock(struct super_block *sb, struct nilfs_transaction_info *ti) -- 1.8.3.1