Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp981674pxb; Thu, 5 Nov 2020 19:49:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGUp8i0VHGl4ZsoCGWToQ8DROFb3PoGKwMMLG9sVZaUacXXOs0hQsPru2d0eGg4b59MSZJ X-Received: by 2002:a05:6402:195:: with SMTP id r21mr37692edv.164.1604634577927; Thu, 05 Nov 2020 19:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604634577; cv=none; d=google.com; s=arc-20160816; b=grX49skhrnOhfshiw6PJdwzZStyNWYz/v1D5p3Ot7rZkcEcJNcPmhMuX0l9YTYBVc+ Plt+NIwxTxP6HDZ7TZTds1dagIaYwCjGIKqq161F0cmDzPv0WHyqvajqm7G1CQKsV4lU 3E9if8HTjtNVKoeL+UAh31wQ36rvJjg3hBduzZpZX6bFzJUwLsPzJ8NDhlqX0MYzoBcw CMdUeljEZGEFJ7z9aPksh9Nl/kOmQGF7M5oGL+egvY+lsQepni4vV7wXCr+WsLXHIG3H 3n25lH8/8P5W2x3UGCYBB0tSMbx4fsVn5GqjmJbX3R5A0QybR2NY/L/H1mwksdflnn19 xs5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:message-id:date:subject:cc:from; bh=mI/QU1oaLp3o/vRQasgw9+weyu3hV2FsK7ApdDLQtac=; b=b3s3VsFoNXPP4RLsQjPvS0Uz3ODimW6TRS7FwWTq4WuEiPa66c0+gx4iigzBWE4/bo +yULrEY0lue4WJ4G7Kwbt1dsQGR/SFOv/PcnVhszz0r+Ey3dEbWeH8A9At0XlvKBrQp+ Sv2sHT9g6tiMchGhZTdNn24hllKgXFh2/huZngly/85VoyibG+1abSJAYpgcnEgRnb0B cHcarfvNUuAzU39BuR1HqTzdX5Eg/InWX7zy5fpnzpDDxPJ1i7qWv9gXbJM2oiWqpIYL 2aE4FUy7dD/qo5SsufEjMYI5gAoyg2gRStpdURm4pFFcDItvSekbIETDQWC91p7au/sB cvXg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi25si1685723ejb.21.2020.11.05.19.49.13; Thu, 05 Nov 2020 19:49:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725875AbgKFDrw (ORCPT + 99 others); Thu, 5 Nov 2020 22:47:52 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:38722 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgKFDrw (ORCPT ); Thu, 5 Nov 2020 22:47:52 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=2;SR=0;TI=SMTPD_---0UEO33AN_1604634469; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UEO33AN_1604634469) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Nov 2020 11:47:49 +0800 From: Alex Shi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/hfs: remove unused macro to tame gcc Date: Fri, 6 Nov 2020 11:47:36 +0800 Message-Id: <1604634457-3954-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Couple macro are duplicated defined and they are not used. So to tame gcc, let's remove them. fs/hfsplus/part_tbl.c:26:0: warning: macro "HFS_DRVR_DESC_MAGIC" is not used [-Wunused-macros] fs/hfsplus/part_tbl.c:30:0: warning: macro "HFS_MFS_SUPER_MAGIC" is not used [-Wunused-macros] fs/hfsplus/part_tbl.c:21:0: warning: macro "HFS_DD_BLK" is not used [-Wunused-macros] net/l2tp/l2tp_core.c:73:0: warning: macro "L2TP_HDRFLAG_P" is not used [-Wunused-macros] Signed-off-by: Alex Shi Cc: linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- fs/hfs/hfs.h | 2 -- fs/hfsplus/part_tbl.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/fs/hfs/hfs.h b/fs/hfs/hfs.h index 6f194d0768b6..12a807d9dbc0 100644 --- a/fs/hfs/hfs.h +++ b/fs/hfs/hfs.h @@ -15,11 +15,9 @@ #define HFS_MDB_BLK 2 /* Block (w/i partition) of MDB */ /* magic numbers for various disk blocks */ -#define HFS_DRVR_DESC_MAGIC 0x4552 /* "ER": driver descriptor map */ #define HFS_OLD_PMAP_MAGIC 0x5453 /* "TS": old-type partition map */ #define HFS_NEW_PMAP_MAGIC 0x504D /* "PM": new-type partition map */ #define HFS_SUPER_MAGIC 0x4244 /* "BD": HFS MDB (super block) */ -#define HFS_MFS_SUPER_MAGIC 0xD2D7 /* MFS MDB (super block) */ /* various FIXED size parameters */ #define HFS_SECTOR_SIZE 512 /* size of an HFS sector */ diff --git a/fs/hfsplus/part_tbl.c b/fs/hfsplus/part_tbl.c index 63164ebc52fa..ecda671d56a8 100644 --- a/fs/hfsplus/part_tbl.c +++ b/fs/hfsplus/part_tbl.c @@ -23,11 +23,9 @@ #define HFS_MDB_BLK 2 /* Block (w/i partition) of MDB */ /* magic numbers for various disk blocks */ -#define HFS_DRVR_DESC_MAGIC 0x4552 /* "ER": driver descriptor map */ #define HFS_OLD_PMAP_MAGIC 0x5453 /* "TS": old-type partition map */ #define HFS_NEW_PMAP_MAGIC 0x504D /* "PM": new-type partition map */ #define HFS_SUPER_MAGIC 0x4244 /* "BD": HFS MDB (super block) */ -#define HFS_MFS_SUPER_MAGIC 0xD2D7 /* MFS MDB (super block) */ /* * The new style Mac partition map -- 1.8.3.1