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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E49CBC433EF for ; Mon, 13 Dec 2021 16:14:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A88E6B0073; Mon, 13 Dec 2021 11:14:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 057C16B0074; Mon, 13 Dec 2021 11:14:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E61646B0075; Mon, 13 Dec 2021 11:14:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay029.a.hostedemail.com [64.99.140.29]) by kanga.kvack.org (Postfix) with ESMTP id D811E6B0073 for ; Mon, 13 Dec 2021 11:14:20 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id A559E608D4 for ; Mon, 13 Dec 2021 16:14:10 +0000 (UTC) X-FDA: 78913267860.02.0D6D139 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf05.hostedemail.com (Postfix) with ESMTP id BA1F6100010 for ; Mon, 13 Dec 2021 16:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639412050; x=1670948050; h=date:from:to:cc:subject:message-id:mime-version; bh=C0eTgwXhn4DWPGUOAsr1u03yyF+xwfJ3xrgj/AvLTqY=; b=Zhnh9Rtti9oSA5vVYig3EqtJTdUQaHLtD+BCxsJqxIdqXwmJFZxzo8Ls /doj4+xS+324M8/N8zBUmI/IG9KH0Vwky/YcjTPimPAVyHxgTE3m666eI uzzqdW28aqSgnbYxrvZ1a94Es9rKR/Ne4p+/CJWkuEQ1cZ+771DXwGlYh ALaQU/ywnXCGO7ZyFH1BX/nsaeUO2T3nrPP2IYEJ31tQeISL7oml3DGom qA7v2hoHkfsRBo4E/ve/JBdq2E+/tNorPQgzrdec1wezAxIeM67jPJeWD a6fDlnvWsbZCOQEii3gJY2GwuRai7/X9BYi7svLWnw16lLirnmTTvDAyt Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10196"; a="238711479" X-IronPort-AV: E=Sophos;i="5.88,202,1635231600"; d="scan'208";a="238711479" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2021 08:12:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,202,1635231600"; d="scan'208";a="463429192" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 13 Dec 2021 08:12:50 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mwnwY-0006oy-1I; Mon, 13 Dec 2021 16:12:50 +0000 Date: Tue, 14 Dec 2021 00:12:39 +0800 From: kernel test robot To: Lukas Czerner Cc: kbuild-all@lists.01.org, Linux Memory Management List , Theodore Ts'o , Carlos Maiolino Subject: [linux-next:master 5987/6579] fs/ext4/super.c:2689:51: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202112140056.bsyRT9Ju-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: BA1F6100010 X-Stat-Signature: qnx64jg6k83nbdkjca6pg85a81tyqb4m Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Zhnh9Rtt; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf05.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com X-HE-Tag: 1639412049-564569 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ea922272cbe547bdf58da2aaf240d59782c6a009 commit: e6e268cb682290da29e3c8408493a4474307b8cc [5987/6579] ext4: move quota configuration out of handle_mount_opt() config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20211214/202112140056.bsyRT9Ju-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e6e268cb682290da29e3c8408493a4474307b8cc git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout e6e268cb682290da29e3c8408493a4474307b8cc # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sh SHELL=/bin/bash fs/ext4/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> fs/ext4/super.c:2689:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *__cs @@ got char [noderef] __rcu * @@ fs/ext4/super.c:2689:51: sparse: expected char const *__cs fs/ext4/super.c:2689:51: sparse: got char [noderef] __rcu * fs/ext4/super.c:2657:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *objp @@ got char [noderef] __rcu * @@ fs/ext4/super.c:2657:38: sparse: expected void const *objp fs/ext4/super.c:2657:38: sparse: got char [noderef] __rcu * vim +2689 fs/ext4/super.c 2663 2664 /* 2665 * Check quota settings consistency. 2666 */ 2667 static int ext4_check_quota_consistency(struct fs_context *fc, 2668 struct super_block *sb) 2669 { 2670 #ifdef CONFIG_QUOTA 2671 struct ext4_fs_context *ctx = fc->fs_private; 2672 struct ext4_sb_info *sbi = EXT4_SB(sb); 2673 bool quota_feature = ext4_has_feature_quota(sb); 2674 bool quota_loaded = sb_any_quota_loaded(sb); 2675 int i; 2676 2677 if (ctx->qname_spec && quota_loaded) { 2678 if (quota_feature) 2679 goto err_feature; 2680 2681 for (i = 0; i < EXT4_MAXQUOTAS; i++) { 2682 if (!(ctx->qname_spec & (1 << i))) 2683 continue; 2684 2685 if (!!sbi->s_qf_names[i] != !!ctx->s_qf_names[i]) 2686 goto err_jquota_change; 2687 2688 if (sbi->s_qf_names[i] && ctx->s_qf_names[i] && > 2689 strcmp(sbi->s_qf_names[i], 2690 ctx->s_qf_names[i]) != 0) 2691 goto err_jquota_specified; 2692 } 2693 } 2694 2695 if (ctx->s_jquota_fmt) { 2696 if (sbi->s_jquota_fmt != ctx->s_jquota_fmt && quota_loaded) 2697 goto err_quota_change; 2698 if (quota_feature) { 2699 ext4_msg(NULL, KERN_INFO, "Quota format mount options " 2700 "ignored when QUOTA feature is enabled"); 2701 return 0; 2702 } 2703 } 2704 return 0; 2705 2706 err_quota_change: 2707 ext4_msg(NULL, KERN_ERR, 2708 "Cannot change quota options when quota turned on"); 2709 return -EINVAL; 2710 err_jquota_change: 2711 ext4_msg(NULL, KERN_ERR, "Cannot change journaled quota " 2712 "options when quota turned on"); 2713 return -EINVAL; 2714 err_jquota_specified: 2715 ext4_msg(NULL, KERN_ERR, "%s quota file already specified", 2716 QTYPE2NAME(i)); 2717 return -EINVAL; 2718 err_feature: 2719 ext4_msg(NULL, KERN_ERR, "Journaled quota options ignored " 2720 "when QUOTA feature is enabled"); 2721 return 0; 2722 #else 2723 return 0; 2724 #endif 2725 } 2726 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org