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 38381EE4996 for ; Mon, 21 Aug 2023 12:51:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 53D1A8E0003; Mon, 21 Aug 2023 08:51:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4ECE88D0002; Mon, 21 Aug 2023 08:51:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B4778E0003; Mon, 21 Aug 2023 08:51:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 293E18D0002 for ; Mon, 21 Aug 2023 08:51:23 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id DCC5F14044F for ; Mon, 21 Aug 2023 12:51:22 +0000 (UTC) X-FDA: 81148097604.04.5A0BBA3 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by imf25.hostedemail.com (Postfix) with ESMTP id 5177BA000E for ; Mon, 21 Aug 2023 12:51:20 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cMnZGDNe; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1692622281; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=aSJmOrd0jysol6+e1Jm0fQ/4HB/EcVy+pFoOK46bjo0=; b=HEznwHRUs3LNuhasgVW5yaMra9OhgLckP0dF5Ke2cG1QO5fyluR67ic+CtN9Eyq8Cezdri ZuTvcO/4qzqRh9yUKIzOfKDePwwjXm9ZY9rM78Ajzt+EagX3fUQIX1oU/1hcqhAUeyEZkn aSirAkfNvh1GFrB5Pnmo9VyyX7Bo0AM= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cMnZGDNe; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1692622281; a=rsa-sha256; cv=none; b=J3TRFhuanpgUtAI0FA6ONKXdJ4z3pbWwdqpG/tSMKQjinDPXQNmKoKRdEpCyT3cGD/ChD6 j4jVGQaWTvhKecezP12AUZZvxgmLV6l9hn/wFHB1lHBWFQ+261kKnwdKFrFhT9kMs97d+w 22sys8hEOPlrry5gJbGR6OmH1xFmakg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692622280; x=1724158280; h=date:from:to:cc:subject:message-id:mime-version; bh=cLkdLFivZNKNMeutfqOQzBRgqDpQs4o8cFwXjf/swPQ=; b=cMnZGDNeMaZ5kqHnxg5V2KJHWr6fFQ65l61sNmJCO4/jFTRjexoRTYbF E1LhRHYIUJHe4d4Wsj6n6EWAWG1bI/jeH0/WiVMhv3q6r3pYjXfzSRbTR LY8vLlIBpUMq7OlzphYAua+ttpjrbxlq5ozT9UPZRkgPIcb94IBN02Nre IBTt884Ta+usP0uAiAfoiDtlXX+KkdZIm1flM4cUiDg48g/8k12G7ddeW JUfPCGj43Hqn+MZXSYo1gfGbWE6f46xBsYmyAMQAvCRC6Nq35jedvov9t RAc8x6rvL1WaE5YWeAdMWX6X+7ZeftzH72cQ/JP5lSSniEDQ6vMkfYhir Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10809"; a="437503049" X-IronPort-AV: E=Sophos;i="6.01,190,1684825200"; d="scan'208";a="437503049" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2023 05:51:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10809"; a="738887927" X-IronPort-AV: E=Sophos;i="6.01,190,1684825200"; d="scan'208";a="738887927" Received: from lkp-server02.sh.intel.com (HELO 6809aa828f2a) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 21 Aug 2023 05:51:16 -0700 Received: from kbuild by 6809aa828f2a with local (Exim 4.96) (envelope-from ) id 1qY4NH-0000UK-1s; Mon, 21 Aug 2023 12:51:15 +0000 Date: Mon, 21 Aug 2023 20:51:06 +0800 From: kernel test robot To: WANG Xuerui Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Huacai Chen Subject: [linux-next:master 6848/11453] sound/pci/bt87x.c:27:12: warning: 'index' defined but not used Message-ID: <202308212007.ZUt7noOA-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Stat-Signature: rf8qabsoaucqazhoqt8gn6gm8ru5mmzt X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5177BA000E X-HE-Tag: 1692622280-735649 X-HE-Meta: U2FsdGVkX18QiT1OhNAjhI2hNQoSEOiKv9JlEcn8bSM2odW8Rnl/HTeWQZsoMszkOfkk1JzR03UP1lg12Mr89lLG1qThyL46Q3BgCFaJ06Z2gEo8pVRosgH0FdfTCN9WCkMbE4QT7CgLfFSwz2QSIhGAjBuYA6rRQDkSA437DgSCKccm19Zeda8nUY3nDkClbuII8CykwPhokhovRpPx17OS+YPqoTf4BwzCZDZQs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Qyp/aNcsr4Y2X6xciQDS72WERyOMpcs7UwV7pWZ2llCWQnD8Yes8MUDz/duAbm1+zA== 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: 47d9bb711707d15b19fad18c8e2b4b027a264a3a commit: e2843c7596e77f4f9b006a1417546231395d0986 [6848/11453] LoongArch: Replace -ffreestanding with finer-grained -fno-builtin's config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20230821/202308212007.ZUt7noOA-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230821/202308212007.ZUt7noOA-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202308212007.ZUt7noOA-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/percpu.h:13, from include/linux/context_tracking_state.h:5, from include/linux/hardirq.h:5, from include/linux/interrupt.h:11, from sound/pci/bt87x.c:11: arch/loongarch/include/asm/percpu.h:20:4: error: #error compiler support for the model attribute is necessary when a recent assembler is used 20 | # error compiler support for the model attribute is necessary when a recent assembler is used | ^~~~~ In file included from include/linux/init.h:5, from sound/pci/bt87x.c:10: include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant 16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) | ^ include/linux/compiler.h:231:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO' 231 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) | ^~~~~~~~~~~~~~~~~ include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array' 56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ include/linux/moduleparam.h:517:20: note: in expansion of macro 'ARRAY_SIZE' 517 | = { .max = ARRAY_SIZE(array), .num = nump, \ | ^~~~~~~~~~ include/linux/moduleparam.h:501:9: note: in expansion of macro 'module_param_array_named' 501 | module_param_array_named(name, name, type, nump, perm) | ^~~~~~~~~~~~~~~~~~~~~~~~ sound/pci/bt87x.c:33:1: note: in expansion of macro 'module_param_array' 33 | module_param_array(index, int, NULL, 0444); | ^~~~~~~~~~~~~~~~~~ >> sound/pci/bt87x.c:27:12: warning: 'index' defined but not used [-Wunused-variable] 27 | static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* Exclude the first card */ | ^~~~~ -- In file included from include/linux/irqflags.h:18, from include/linux/spinlock.h:59, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/slab.h:16, from sound/usb/card.c:26: arch/loongarch/include/asm/percpu.h:20:4: error: #error compiler support for the model attribute is necessary when a recent assembler is used 20 | # error compiler support for the model attribute is necessary when a recent assembler is used | ^~~~~ In file included from include/linux/bits.h:21, from include/linux/bitops.h:6, from sound/usb/card.c:23: include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant 16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) | ^ include/linux/compiler.h:231:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO' 231 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) | ^~~~~~~~~~~~~~~~~ include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array' 56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ include/linux/moduleparam.h:517:20: note: in expansion of macro 'ARRAY_SIZE' 517 | = { .max = ARRAY_SIZE(array), .num = nump, \ | ^~~~~~~~~~ include/linux/moduleparam.h:501:9: note: in expansion of macro 'module_param_array_named' 501 | module_param_array_named(name, name, type, nump, perm) | ^~~~~~~~~~~~~~~~~~~~~~~~ sound/usb/card.c:81:1: note: in expansion of macro 'module_param_array' 81 | module_param_array(index, int, NULL, 0444); | ^~~~~~~~~~~~~~~~~~ >> sound/usb/card.c:63:12: warning: 'index' defined but not used [-Wunused-variable] 63 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ | ^~~~~ vim +/index +27 sound/pci/bt87x.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 26 ^1da177e4c3f41 Linus Torvalds 2005-04-16 @27 static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* Exclude the first card */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ a67ff6a54095e2 Rusty Russell 2011-12-15 29 static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ 6581f4e74d8541 Takashi Iwai 2006-05-17 30 static int digital_rate[SNDRV_CARDS]; /* digital input rate */ 6205372c320bed Takashi Iwai 2020-07-14 31 static bool load_all; /* allow to load cards not the allowlist */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 :::::: The code at line 27 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki