Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1114294ybl; Wed, 4 Dec 2019 17:18:31 -0800 (PST) X-Google-Smtp-Source: APXvYqytlnsbiCM23XuP9f6lYVMtQFWS7GN44Mg/4gdWt8inyDmxwiHUgbH3ZdJ8LZiEDWIfJNj4 X-Received: by 2002:aca:ecd0:: with SMTP id k199mr5419335oih.158.1575508711183; Wed, 04 Dec 2019 17:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575508711; cv=none; d=google.com; s=arc-20160816; b=KF0fl9vBc8lb5+OkOsdsZJS9JyC3DO/330bwKKwafjL/LAYbF7v4fD/ovhH6n6jnjm FZt7gvCxvh/Y5VyEV5Da1XMgRv9dvc4+NjxKpeI8k1kFcBQEe1m7/oSTNpubaVAVyqlw DJdP7G6KsLywR5ph3hTa2MZg9i8+QCuFdU2mpY5tMEkU9vpni6g926hUyCHWXQXUPqko XZyKX02LdqpGoy8aYt+n8K8tNOwgGW/LYtMJgezZlZE46EDKTFLiPPBRd1r47hKNNRsq k/BfumLGwVbV5pqtGjwQFy4T5hSzGR1Bcum1P4lcdvX5Pok/wI0AcOVqme7CMlINTmcx 3SLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bDleUB60rHdPRMB5tvec0XB6KGArml+toMw5kPow3z8=; b=Rp5AvH2DJbOJhC/owD5h++8hKjjNfNEZx8g4/FrkGaUqBdZ92VdcUcsiyhE4lUq/RG EOvz4ft0BkCvdDowbu2vSDyHU5YzHpe1ZP76Yo7BoGlgPnpmEBkPMxidwL1ZXfprfmkN Hlm6zq+mF6Y3N4TXsiVFkckkAkFoEb5BsC1Nomk/aziGaCyEeFO3JA/EtMT2GnJ2cJXb 84WBTXV6u/jiJMr2f8qF1iougLR8A8cdPKsxY0F8/vn4f7XSNc/C/smr5fqWMJSSSmpB /dVdJvXu2Y9qrht1TmGtRuRkqjonLXU6+yPHNQADlTj7v2WqQofjtrAViDTNtJQ8ICce 0mCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si4108301otq.250.2019.12.04.17.18.09; Wed, 04 Dec 2019 17:18:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728098AbfLEBSI (ORCPT + 99 others); Wed, 4 Dec 2019 20:18:08 -0500 Received: from mga03.intel.com ([134.134.136.65]:2377 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727146AbfLEBSI (ORCPT ); Wed, 4 Dec 2019 20:18:08 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2019 17:18:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,279,1571727600"; d="scan'208";a="208989540" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 04 Dec 2019 17:18:03 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1icfmJ-0009QL-P1; Thu, 05 Dec 2019 09:17:59 +0800 Date: Thu, 5 Dec 2019 09:17:15 +0800 From: kbuild test robot To: Daniel Rosenberg Cc: kbuild-all@lists.01.org, Theodore Ts'o , linux-ext4@vger.kernel.org, Jaegeuk Kim , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , linux-fscrypt@vger.kernel.org, Alexander Viro , Andreas Dilger , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com, Daniel Rosenberg Subject: Re: [PATCH 5/8] f2fs: Handle casefolding with Encryption Message-ID: <201912050955.3f2DMo5g%lkp@intel.com> References: <20191203051049.44573-6-drosen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191203051049.44573-6-drosen@google.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Daniel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on next-20191202 next-20191204] [cannot apply to ext4/dev f2fs/dev-test v5.4 v5.4-rc8 v5.4-rc7 v5.4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Daniel-Rosenberg/Support-for-Casefolding-and-Encryption/20191203-131410 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 76bb8b05960c3d1668e6bee7624ed886cbd135ba reproduce: # apt-get install sparse # sparse version: v0.6.1-91-g817270f-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> fs/f2fs/dir.c:205:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected int len @@ got restricted __le16 [usertyint len @@ >> fs/f2fs/dir.c:205:13: sparse: expected int len fs/f2fs/dir.c:205:13: sparse: got restricted __le16 [usertype] name_len -- >> fs/f2fs/hash.c:90:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] f2fs_hash @@ got __le32 [usertype] f2fs_hash @@ >> fs/f2fs/hash.c:90:27: sparse: expected restricted __le32 [usertype] f2fs_hash >> fs/f2fs/hash.c:90:27: sparse: got unsigned long long fs/f2fs/hash.c:133:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __le32 @@ got e32 @@ fs/f2fs/hash.c:133:24: sparse: expected restricted __le32 fs/f2fs/hash.c:133:24: sparse: got int fs/f2fs/hash.c:141:11: sparse: sparse: incorrect type in assignment (different base types) @@ expected int r @@ got restricted __int r @@ fs/f2fs/hash.c:141:11: sparse: expected int r fs/f2fs/hash.c:141:11: sparse: got restricted __le32 fs/f2fs/hash.c:144:16: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __le32 @@ got le32 @@ fs/f2fs/hash.c:144:16: sparse: expected restricted __le32 fs/f2fs/hash.c:144:16: sparse: got int r vim +205 fs/f2fs/dir.c 199 200 if (de->hash_code != namehash) 201 return false; 202 203 #ifdef CONFIG_UNICODE 204 name = d->filename[bit_pos]; > 205 len = de->name_len; 206 207 if (sb->s_encoding && needs_casefold(parent)) { 208 if (cf_str->name) { 209 struct qstr cf = {.name = cf_str->name, 210 .len = cf_str->len}; 211 return !f2fs_ci_compare(parent, &cf, name, len, true); 212 } 213 return !f2fs_ci_compare(parent, fname->usr_fname, name, len, 214 false); 215 } 216 #endif 217 if (fscrypt_match_name(fname, d->filename[bit_pos], 218 le16_to_cpu(de->name_len))) 219 return true; 220 return false; 221 } 222 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation