Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp131258iof; Sun, 5 Jun 2022 23:17:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyncjv4/OtiQ6Cg6Xp2jniLWulbZp1XXl2ojy/R5EZsVM5re3woHijqQTEtHM31Dl+8cHdm X-Received: by 2002:a17:90b:395:b0:1e6:89bf:ae17 with SMTP id ga21-20020a17090b039500b001e689bfae17mr22747725pjb.140.1654496258860; Sun, 05 Jun 2022 23:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654496258; cv=none; d=google.com; s=arc-20160816; b=A2w7Gs/WOKB7jWzOTmY+LIZ1ukO13gluBZij99C1vt9JAw9UbjFVARpL+Pu+rWBJeI PjTbgdE5ndWqPHxc9Om2iAxroEmKZVYNVWRnzpMzRcvjUZpl5e0ukFrF46b3mLwp0TbA oR6A/ZftOjp081KEc+jBQlvlds9ULyRf1Ej4asLFLrwxWb1o2sFbeK0iTybz6QYkbnIx AJgA2y0qoTVKMc121PWrCBVXscT0dyQB6Qf4wC8osfNo6iCVzBDTvi61EXRkzF5uLUbZ SrQTaixj0Az/5/esv+LWWWVK8PtmLWW9CXH/oyVVzGWnLXoY0g0UQO+P6TbhHCWLQvAI q9PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=OBgnBySA72Gerg0rsG7vJbD4jixVVN7AdyYZ06glrXs=; b=BFxRMGGOxWeiDfv8OCjCCe/G7k1J5Ups/ZSINmneboLXpYZ1TmwimoEMF9P/hZK/XT CN2CTJto343ipWS119393GWZG+6ooYPN6pae9fiGA7e+2EkZ119FWSYBu4WXyOKWlSSM kPrgxeuw3dp3ilBZV4DhLswQYz5nJt7fcY3ew2BEW9RMb3/wbbFxcrreq2srwFTR/Sgc mUTjeqYZYG0xMk2MjJjnAMigkxQcriQiAC16PLhUT9aFFdjfx7/emUpJApobWuQ3slGc fNZK5v6/lyUIggVgLnpPNNZY4n2KD1BveVmKSgbQGAU4aTDLUj0xLYH76G1h6r4/hXwg V17w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C9hoONmi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 193-20020a6301ca000000b003fd55608dccsi9823596pgb.192.2022.06.05.23.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:17:38 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C9hoONmi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B825D4A29; Sun, 5 Jun 2022 21:57:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240402AbiFCFZz (ORCPT + 99 others); Fri, 3 Jun 2022 01:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230358AbiFCFZx (ORCPT ); Fri, 3 Jun 2022 01:25:53 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB82E15706 for ; Thu, 2 Jun 2022 22:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654233951; x=1685769951; h=date:from:to:cc:subject:message-id:mime-version; bh=7Yy+YKPjezZqxZ9iAmymPlZoAsDQLdULcf7v+4p5KUI=; b=C9hoONmiuGLMsYKtGdoQEgkkjTLCq2sdXB2C9Ff2hr2XxSY1u1xbslSt hZtg337++AlPgSBnVKoMFy7lvzQXaD+crMinOI5ohePGl+Ypjqa8fXZtY wvw1UKnO/u8cFohzUtoze4pGZZfPvdrkJVSVivz3qoJOrb9H6wyW6g3sO eacqhtBmZCXwFtEkoA27Pk4tX46claiCITf/CjO4iFKZW+H0SRIdW+fZI Xfx5c3KYKJE/Ze7KK35FZ1TrGn/SNP0NrGcw8Dz2rHsR0yfQ7U0qtxs5N mqOb4J7hnfG6Y+oKh60I2zc1GDYen9m9iIAsSKAjOYSY6uuDdLDWFYZ21 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10366"; a="273735926" X-IronPort-AV: E=Sophos;i="5.91,273,1647327600"; d="scan'208";a="273735926" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 22:25:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,273,1647327600"; d="scan'208";a="757343217" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 02 Jun 2022 22:25:50 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nwzoj-0006Or-C0; Fri, 03 Jun 2022 05:25:49 +0000 Date: Fri, 3 Jun 2022 13:24:54 +0800 From: kernel test robot To: Konstantin Komarov Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident' Message-ID: <202206031318.lX6gx7wh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konstantin, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 50fd82b3a9a9335df5d50c7ddcb81c81d358c4fc commit: 6e5be40d32fb1907285277c02e74493ed43d77fe fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile date: 10 months ago config: mips-randconfig-r012-20220531 (https://download.01.org/0day-ci/archive/20220603/202206031318.lX6gx7wh-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b364c76683f8ef241025a9556300778c07b590c2) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e5be40d32fb1907285277c02e74493ed43d77fe git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 6e5be40d32fb1907285277c02e74493ed43d77fe # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/dma-buf/ drivers/leds/ fs/ntfs3/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/ntfs3/attrib.c:70:20: warning: unused function 'attr_must_be_resident' static inline bool attr_must_be_resident(struct ntfs_sb_info ^ fatal error: error in backend: Nested variants found in inline asm string: ' .set push .set mips64r2 .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif 1: ll $0, $1 or $0, $2 sc $0, $1 beqz $0, 1b .set pop ' clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 15.0.0 (git://gitmirror/llvm_project b364c76683f8ef241025a9556300778c07b590c2) Target: mips-unknown-linux Thread model: posix InstalledDir: /opt/cross/clang-b364c76683/bin clang-15: note: diagnostic msg: Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr -- >> fs/ntfs3/bitmap.c:59:19: warning: unused function 'wnd_bits' static inline u32 wnd_bits(const struct wnd_bitmap size_t i) ^ fatal error: error in backend: Nested variants found in inline asm string: ' .set push .set mips64r2 .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 157, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif 1: ll $0, $1 # atomic_sub subu $0, $2 sc $0, $1 beqz $0, 1b .set pop ' clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 15.0.0 (git://gitmirror/llvm_project b364c76683f8ef241025a9556300778c07b590c2) Target: mips-unknown-linux Thread model: posix InstalledDir: /opt/cross/clang-b364c76683/bin clang-15: note: diagnostic msg: Makefile arch drivers fs include kernel mm net nr_bisected scripts source usr vim +/attr_must_be_resident +70 fs/ntfs3/attrib.c be71b5cba2e6485 Konstantin Komarov 2021-08-13 64 be71b5cba2e6485 Konstantin Komarov 2021-08-13 65 /* be71b5cba2e6485 Konstantin Komarov 2021-08-13 66 * attr_must_be_resident be71b5cba2e6485 Konstantin Komarov 2021-08-13 67 * be71b5cba2e6485 Konstantin Komarov 2021-08-13 68 * returns true if attribute must be resident be71b5cba2e6485 Konstantin Komarov 2021-08-13 69 */ be71b5cba2e6485 Konstantin Komarov 2021-08-13 @70 static inline bool attr_must_be_resident(struct ntfs_sb_info *sbi, be71b5cba2e6485 Konstantin Komarov 2021-08-13 71 enum ATTR_TYPE type) be71b5cba2e6485 Konstantin Komarov 2021-08-13 72 { be71b5cba2e6485 Konstantin Komarov 2021-08-13 73 const struct ATTR_DEF_ENTRY *de; be71b5cba2e6485 Konstantin Komarov 2021-08-13 74 be71b5cba2e6485 Konstantin Komarov 2021-08-13 75 switch (type) { be71b5cba2e6485 Konstantin Komarov 2021-08-13 76 case ATTR_STD: be71b5cba2e6485 Konstantin Komarov 2021-08-13 77 case ATTR_NAME: be71b5cba2e6485 Konstantin Komarov 2021-08-13 78 case ATTR_ID: be71b5cba2e6485 Konstantin Komarov 2021-08-13 79 case ATTR_LABEL: be71b5cba2e6485 Konstantin Komarov 2021-08-13 80 case ATTR_VOL_INFO: be71b5cba2e6485 Konstantin Komarov 2021-08-13 81 case ATTR_ROOT: be71b5cba2e6485 Konstantin Komarov 2021-08-13 82 case ATTR_EA_INFO: be71b5cba2e6485 Konstantin Komarov 2021-08-13 83 return true; be71b5cba2e6485 Konstantin Komarov 2021-08-13 84 default: be71b5cba2e6485 Konstantin Komarov 2021-08-13 85 de = ntfs_query_def(sbi, type); be71b5cba2e6485 Konstantin Komarov 2021-08-13 86 if (de && (de->flags & NTFS_ATTR_MUST_BE_RESIDENT)) be71b5cba2e6485 Konstantin Komarov 2021-08-13 87 return true; be71b5cba2e6485 Konstantin Komarov 2021-08-13 88 return false; be71b5cba2e6485 Konstantin Komarov 2021-08-13 89 } be71b5cba2e6485 Konstantin Komarov 2021-08-13 90 } be71b5cba2e6485 Konstantin Komarov 2021-08-13 91 :::::: The code at line 70 was first introduced by commit :::::: be71b5cba2e6485e8959da7a9f9a44461a1bb074 fs/ntfs3: Add attrib operations :::::: TO: Konstantin Komarov :::::: CC: Konstantin Komarov -- 0-DAY CI Kernel Test Service https://01.org/lkp