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 02DE2C433EF for ; Sat, 11 Dec 2021 09:09:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F5F76B0072; Sat, 11 Dec 2021 04:08:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4819F6B0073; Sat, 11 Dec 2021 04:08:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 320786B0074; Sat, 11 Dec 2021 04:08:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay033.a.hostedemail.com [64.99.140.33]) by kanga.kvack.org (Postfix) with ESMTP id 201A36B0072 for ; Sat, 11 Dec 2021 04:08:50 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id D5CEB20C47 for ; Sat, 11 Dec 2021 09:08:39 +0000 (UTC) X-FDA: 78904937958.04.AAE9671 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf13.hostedemail.com (Postfix) with ESMTP id 931592000A for ; Sat, 11 Dec 2021 09:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639213719; x=1670749719; h=date:from:to:cc:subject:message-id:mime-version; bh=Od6754uVA5X7/wTwSorAXUXA9qC0X+zvo+O20Qnjchk=; b=hU70BNGG9m37E0aDbxbpwVUaXhQMeWHGomPjbmIID9CLbTJYuSUiWrGe 59gkp8E609BhI+79AcCRreuVpi5VNMBib+99ZIQXifWkVkV5+B19FL9yj SUTJHwjahJhwFWv36VpYEDk2b3MO3swkMWtX67orhrAclrUsGllpx3+27 eF8/r1kKvN7RvriqVpTXlHe4pG79VN8UhDTq8LE+Wpagqw/YIiqM2Y1Mi yuqZtOz/+y/R0HaoslrQpCXyP34UmBAVS+P0hgpDRJc0etsORbm96rQDu RJnSkTqIuSqZGFabmSYmLtaR2sGQpLtSxbNoOc083hBrKBwWyGpQIeTga A==; X-IronPort-AV: E=McAfee;i="6200,9189,10194"; a="238329294" X-IronPort-AV: E=Sophos;i="5.88,197,1635231600"; d="scan'208";a="238329294" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2021 01:08:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,197,1635231600"; d="scan'208";a="464007433" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 11 Dec 2021 01:08:35 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mvyMt-0004O6-7E; Sat, 11 Dec 2021 09:08:35 +0000 Date: Sat, 11 Dec 2021 17:08:32 +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: <202112111727.6cF6r7SQ-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: rspam01 X-Rspamd-Queue-Id: 931592000A X-Stat-Signature: txhkukk5831w97zbiko8foireefs9oty Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hU70BNGG; spf=none (imf13.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1639213717-971287 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: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20211211/202112111727.6cF6r7SQ-lkp@intel.com/config) compiler: m68k-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=m68k 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