Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp557723ybl; Fri, 6 Dec 2019 02:26:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxAuJZci0RUUJ8MCHaabgH8+twtCJE9ZjAHeYTHTMAm+mdaoCsgqOonwKO4j5S5jMzMRHCD X-Received: by 2002:a05:6808:3c5:: with SMTP id o5mr6053792oie.142.1575628016268; Fri, 06 Dec 2019 02:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575628016; cv=none; d=google.com; s=arc-20160816; b=rswk45KRuy94LYGeUyCBy3CWQ4Yo4BtujSM+99yZJ/3n7QFTYpd7z7h3D3UKqW+lv7 i7f43AdJWWWo5HMgGFr4EOFqrO91DVkMSf2ILNXWmN7gYSOEX+zf3lQcJ5tVm/NGMmHV peUSqNSLDUS/YH7U/6hDZ/vHrmkNT4+jMJqke+AN3JVPc3L9fCb1aTD0VjdmE7HcDMIN 6/Wjj7gZxlOozpe1iP6t/U3AMHXQbrMQ7bbyXlV1lQxOtxIHArmxJXMR0/bJRjSMXj45 tUOhWSoKUxZFhe7Jd+Oc6pBgflIOLsJBSx0RHNyFknZCtatGQxtsYapOC9exKPAqTcla kQMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:mime-version:references :in-reply-to:subject:cc:to:from; bh=iTp7Q0LC13BTmcaDzvUDNCKm0YiwERAvXAhvOGv2zyA=; b=fp5HFpYIEMnjDtP+rWhCcYo7fiENH1X2Q2WWKs3vwlHGd/9QQrQlKB6tl3A5YMHSNu +4S38iX+OToBqr3pNsv1/aqic3l9sFwWQSnXZrUtduANt2+2S9AFicuSkp87iV4/+Ys3 TYMgnyKjaYzUSY0tbCi0KQuXqiGmsOAYktomN+Cs26bQ6onUtAgKYSQ9VglEIpuERigN ohduvCtM2bzwqmDmx6O3vPbl8h+XqXn4EZKEzW31RoqFoLwD1Xe/lpqDjC8EwkUo+fiS Me7usEWRsFaaxKdh8KciZG2PvDuAsU29XxbRxXT+Aqz70emdxCaHCFug8SO1k5IJUI6o QSnQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si7247366otq.141.2019.12.06.02.26.43; Fri, 06 Dec 2019 02:26:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726245AbfLFKZu (ORCPT + 99 others); Fri, 6 Dec 2019 05:25:50 -0500 Received: from outbound.smtp.vt.edu ([198.82.183.121]:58914 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726213AbfLFKZu (ORCPT ); Fri, 6 Dec 2019 05:25:50 -0500 Received: from mr5.cc.vt.edu (mr5.cc.vt.edu [IPv6:2607:b400:92:8400:0:72:232:758b]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id xB6APkUK015183 for ; Fri, 6 Dec 2019 05:25:46 -0500 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mr5.cc.vt.edu (8.14.7/8.14.7) with ESMTP id xB6APfMr019712 for ; Fri, 6 Dec 2019 05:25:46 -0500 Received: by mail-qk1-f199.google.com with SMTP id d26so4136936qkk.8 for ; Fri, 06 Dec 2019 02:25:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:date:message-id; bh=iTp7Q0LC13BTmcaDzvUDNCKm0YiwERAvXAhvOGv2zyA=; b=MLAPfV52vvQASTybEtziCIdCJDzoIXZaZ/muuOXo2SwJ/tCpWIQXrn+pR0faVnXgZW fBX27/GMdePYuQOTwWQg2az08TF0tLI9EfKO5aOttThfmYiUwGm1BvoUZqmR1NhYuHQ8 ts1i1rGqGG9y+Zj0kV+uIm90wgran3Jrhhq7jKCz52iYtOdffE8h5hPFCk0kpR1U0wMf hLzW5FRuGIVYTcBZezQ+vkKBPF1xug3+eurfWMBIHvUtdL1Ksx1Ce3OokerfJ4UyIQyS fUGadfHwps0w9fUCC0arwTTuCvX5GtFM+SeQ4CjtUNC8PKtGa2kJeX9mlaSZHnWscP2Z Lofw== X-Gm-Message-State: APjAAAUP1U85dBkne7duh16gzqXBvhONW49PrXUKam7KEASMnfFOjlS6 qLDBlkzvs1X0ns2YBZKZ6yU0oMlwGV+iUusNGxfAAqvdicv7kZVuNs7iKjxvNvzRxooNbwXKMRF nUs3QlE0+DYq5LWKiJFcC+rXI7Qwlgr5nUPU= X-Received: by 2002:a37:9a46:: with SMTP id c67mr13155669qke.308.1575627941395; Fri, 06 Dec 2019 02:25:41 -0800 (PST) X-Received: by 2002:a37:9a46:: with SMTP id c67mr13155652qke.308.1575627941082; Fri, 06 Dec 2019 02:25:41 -0800 (PST) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id 62sm5700268qkk.102.2019.12.06.02.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 02:25:39 -0800 (PST) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Namjae Jeon cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, gregkh@linuxfoundation.org, hch@lst.de, linkinjeon@gmail.com, Markus.Elfring@web.de, sj1557.seo@samsung.com, dwagner@suse.de, nborisov@suse.com Subject: Re: [PATCH v5 02/13] exfat: add super block operations In-reply-to: <20191125000326.24561-3-namjae.jeon@samsung.com> References: <20191125000326.24561-1-namjae.jeon@samsung.com> <20191125000326.24561-3-namjae.jeon@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 06 Dec 2019 05:25:38 -0500 Message-ID: <81423.1575627938@turing-police> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 24 Nov 2019 19:03:15 -0500, Namjae Jeon said: > This adds the implementation of superblock operations for exfat. > fs/exfat/super.c | 738 +++++++++++++++++++++++++++++++++++++++++++++++ > +static int exfat_fill_super(struct super_block *sb, struct fs_context *fc) > +{ > + struct exfat_sb_info *sbi = sb->s_fs_info; > + struct exfat_mount_options *opts = &sbi->options; > + struct inode *root_inode; > + int err; > + > + if (opts->allow_utime == -1) > + opts->allow_utime = ~opts->fs_dmask & 0022; This throws a warning when building with W=1: CC [M] fs/exfat/super.o fs/exfat/super.c: In function 'exfat_fill_super': fs/exfat/super.c:552:24: warning: comparison is always false due to limited range of data type [-Wtype-limits] 552 | if (opts->allow_utime == -1) | ^~ which means that opts->allow_utime will never get set. Except for the use of -1 to show an uninitialized value, all the other uses don't care about sign/unsigned, so let's make it signed.... Signed-off-by: Valdis Kletnieks --- a/fs/exfat/exfat_fs.h 2019-12-06 05:17:58.344590227 -0500 +++ b/fs/exfat/exfat_fs.h 2019-12-06 05:18:25.429222169 -0500 @@ -210,7 +210,7 @@ unsigned short fs_fmask; unsigned short fs_dmask; /* permission for setting the [am]time */ - unsigned short allow_utime; + short allow_utime; /* charset for filename input/display */ char *iocharset; unsigned char utf8;