Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1603919imu; Thu, 13 Dec 2018 19:18:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/VWPYnhGFIIHfrrrfSmxl4GCs7r9txQbGv9kRZOYAdDBMii+tq2mDJ2nqtP+gYJT4xee5sM X-Received: by 2002:a62:9657:: with SMTP id c84mr1327928pfe.77.1544757520027; Thu, 13 Dec 2018 19:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544757519; cv=none; d=google.com; s=arc-20160816; b=LdrKHWjj2l1B6EgNnggMadfJOplmKn/IL+3ExKOUi/kjNTjJmNccbLTCjLMWkzqt44 MocV++EslaYrh3GJ/E2y5lls+zGJJeLZrCkYCjyIXzMLu41dAzYnwu+a76regaP7SPB8 bHZJPEWjVhh6VvZG9YJi81P5kQob+Ny5Q9++HVh1F6+wKv2DH5nqjdGKvWj9XmH+XXAC EeXmug0QKDQaaXfZFX6Hl1Uv3N7sOzgGJNOfuSJ7Wx58eOvqAKtuf5BCEqwLT7mqqNhk X/aed+v7dSvDRZaCGWrpFUk3YnBQ8i1//IL1THdr/kjd3KyN0fSMdhb4mx22RPz3H+sF Ghvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=8MzBUwkmvzMoVYBukLnUkXbWAD2SYFB8Gsy6/Wxdwb0=; b=gN1HCV/bUrw8pz4lxgGf5DD3/ti+GYpdutU07TL5bsSObaVQJv8fbc8cK5IFq3jV2C sppEbUup+LcujENj0eW8Wliazy7yCc52gZAar50jqdQ9Dak8ctM6n5ePbz1Z57e+luXG 8NZP/2pU6nZ1L5pW1wGFv3h+72SBiUQpzMo/EnPDn6zP2pJWdu2b69kGJGa7J1wWUNPG cPZABgCf/sfRKSIoRscKEoGA6jzITIPa3p6RbPMAPAwZyUNmG5fK6U9El3nf1xa17In3 aCA429sUt5RKczmYMf/OMoD4toLwqqktBGEjqLYVtSQ7OxODrW4ddCk6UnfFVdgXkx2H JX+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22si3061339pgr.383.2018.12.13.19.18.24; Thu, 13 Dec 2018 19:18:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbeLNDQM (ORCPT + 99 others); Thu, 13 Dec 2018 22:16:12 -0500 Received: from mail.parknet.co.jp ([210.171.160.6]:42496 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbeLNDQL (ORCPT ); Thu, 13 Dec 2018 22:16:11 -0500 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id A4735161688; Fri, 14 Dec 2018 12:16:10 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-12) with ESMTPS id wBE3G9ga019453 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 14 Dec 2018 12:16:10 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-12) with ESMTPS id wBE3G9Hd018597 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 14 Dec 2018 12:16:09 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id wBE3G7OH018596; Fri, 14 Dec 2018 12:16:07 +0900 From: OGAWA Hirofumi To: Joe Perches Cc: Carmeli Tamir , jthumshirn@suse.de, sergey.senozhatsky@gmail.com, akpm@linux-foundation.org, axboe@kernel.dk, martin.petersen@oracle.com, bvanassche@acm.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] fat: New macros to determine the FAT variant (32, 16 or 12) References: <1544470917-6443-1-git-send-email-carmeli.tamir@gmail.com> <1544470917-6443-3-git-send-email-carmeli.tamir@gmail.com> <906167f7ca975d437ff9868333d8bf1e86b934a7.camel@perches.com> Date: Fri, 14 Dec 2018 12:16:07 +0900 In-Reply-To: <906167f7ca975d437ff9868333d8bf1e86b934a7.camel@perches.com> (Joe Perches's message of "Mon, 10 Dec 2018 12:09:31 -0800") Message-ID: <87sgz0dci0.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches writes: >> >> -#define FAT_FIRST_ENT(s, x) ((MSDOS_SB(s)->fat_bits == 32 ? 0x0FFFFF00 : \ >> - MSDOS_SB(s)->fat_bits == 16 ? 0xFF00 : 0xF00) | (x)) >> +#define IS_FAT12(sbi) (sbi->fat_bits == 12) >> +#define IS_FAT16(sbi) (sbi->fat_bits == 16) >> +#define IS_FAT32(sbi) (sbi->fat_bits == 32) > > sbi should be parenthesized or perhaps better these should be > static inline bool functions Right, rather this is the bug (not hit yet though) that should be fixed. Thanks. -- OGAWA Hirofumi