From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F895C43603 for ; Thu, 5 Dec 2019 01:18:17 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4A86F205ED for ; Thu, 5 Dec 2019 01:18:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="dX/cablT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="KWM9ElT3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4A86F205ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1icfma-0004NV-0p; Thu, 05 Dec 2019 01:18:16 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1icfmY-0004NE-Ot for linux-f2fs-devel@lists.sourceforge.net; Thu, 05 Dec 2019 01:18:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bDleUB60rHdPRMB5tvec0XB6KGArml+toMw5kPow3z8=; b=dX/cablTvXp427+hNiXp97jI3K FoYGFQPc/conPHF86HHZgpe8jHB5lNWKhe8J4LbIz4OS0m62wTbpFXZFlCbIAxIJhsZO/WJgW2LFF jjTElds8vNniNc5e83ibin8wNHQVXlB+/t8U5VvJTTxnpgLvwNL4sz750ogEehouZJds=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bDleUB60rHdPRMB5tvec0XB6KGArml+toMw5kPow3z8=; b=KWM9ElT3+lhs+GutXcGnJBxqP0 Yk+a10gK4laWE31IqWTAg1e8vGOD3ZDXSjxsCO2ZQOwwoXghd7SQlnARsiNsAK/ugXXjrH4vwV2cd Za1zUsI+PZT8/ymBBdIdQB1sZY367h2FX9k74GwnnfB+AmPYE+Fz/7wlDEE+tadZ5Pks=; Received: from mga12.intel.com ([192.55.52.136]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1icfmW-007PMN-TI for linux-f2fs-devel@lists.sourceforge.net; Thu, 05 Dec 2019 01:18:15 +0000 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 fmsmga106.fm.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 Message-ID: <201912050955.3f2DMo5g%lkp@intel.com> References: <20191203051049.44573-6-drosen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191203051049.44573-6-drosen@google.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Headers-End: 1icfmW-007PMN-TI Subject: Re: [f2fs-dev] [PATCH 5/8] f2fs: Handle casefolding with Encryption X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Theodore Ts'o , Daniel Rosenberg , Jonathan Corbet , kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Eric Biggers , linux-fscrypt@vger.kernel.org, Andreas Dilger , Alexander Viro , Jaegeuk Kim , linux-fsdevel@vger.kernel.org, kbuild-all@lists.01.org, linux-ext4@vger.kernel.org, Gabriel Krisman Bertazi Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel