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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C59DEC7EE25 for ; Thu, 8 Jun 2023 20:26:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235157AbjFHU0p (ORCPT ); Thu, 8 Jun 2023 16:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231550AbjFHU0l (ORCPT ); Thu, 8 Jun 2023 16:26:41 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46B4C2D68 for ; Thu, 8 Jun 2023 13:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686256000; x=1717792000; h=date:from:to:cc:subject:message-id:mime-version; bh=/yltw0atI7Muse4FIpvZqrWzjggBkY0o9W4518/VoY4=; b=ODsoSHZ4GUkW/3KT+CBPXymJB2s+zO5S1a8bApseYzFNzwnp+Os6vQFh q0xQfslGKQeqxaAJeO2Qx8P9XrX3HElzHaR2bjP5CR73t80rlQ7JYwBG7 o25a+dJ/yZxamiCaP6G7zr7ufvBy8U3Banoj1BRi4hOh50vshqOGHyEnz zXWVVjJo64TutYwPvva/9h5DgMCSE7bc47WLDHVu1JOi07kbXwZYVsdHS HL0oIatpBqeH8n9j4+TCWz5JjRq0AU76alNglwsJF9mZMynm3j+ZQ1ycY ogN+kFj5AhGlKFtHKaVN9/XdMSUyOnOLMJFrXgoGUuxQL4TxOIiqaYol8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="359907932" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="359907932" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 13:26:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="956872025" X-IronPort-AV: E=Sophos;i="6.00,227,1681196400"; d="scan'208";a="956872025" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 08 Jun 2023 13:26:38 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q7MDN-0008Er-1l; Thu, 08 Jun 2023 20:26:37 +0000 Date: Fri, 9 Jun 2023 04:26:03 +0800 From: kernel test robot To: Alexey Dobriyan Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: drivers/acpi/proc.c:139:30: warning: 'acpi_system_wakeup_device_proc_ops' defined but not used Message-ID: <202306090452.xsDyLQQZ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexey, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 25041a4c02c7cf774d8b6ed60586fd64f1cdaa81 commit: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops" date: 3 years, 4 months ago config: i386-buildonly-randconfig-r003-20230608 (https://download.01.org/0day-ci/archive/20230609/202306090452.xsDyLQQZ-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=97a32539b9568bb653683349e5a76d02ff3c3e2c git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 97a32539b9568bb653683349e5a76d02ff3c3e2c # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/acpi/ drivers/gpu/drm/ drivers/mtd/nand/raw/ fs/nfsd/ kernel/ net/sunrpc/ 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/202306090452.xsDyLQQZ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/acpi/proc.c:139:30: warning: 'acpi_system_wakeup_device_proc_ops' defined but not used [-Wunused-const-variable=] 139 | static const struct proc_ops acpi_system_wakeup_device_proc_ops = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- >> net/sunrpc/cache.c:1636:30: warning: 'cache_flush_proc_ops' defined but not used [-Wunused-const-variable=] 1636 | static const struct proc_ops cache_flush_proc_ops = { | ^~~~~~~~~~~~~~~~~~~~ >> net/sunrpc/cache.c:1598:30: warning: 'content_proc_ops' defined but not used [-Wunused-const-variable=] 1598 | static const struct proc_ops content_proc_ops = { | ^~~~~~~~~~~~~~~~ >> net/sunrpc/cache.c:1574:30: warning: 'cache_channel_proc_ops' defined but not used [-Wunused-const-variable=] 1574 | static const struct proc_ops cache_channel_proc_ops = { | ^~~~~~~~~~~~~~~~~~~~~~ -- >> fs/nfsd/nfsctl.c:160:30: warning: 'exports_proc_ops' defined but not used [-Wunused-const-variable=] 160 | static const struct proc_ops exports_proc_ops = { | ^~~~~~~~~~~~~~~~ -- >> kernel/sched/psi.c:1272:30: warning: 'psi_cpu_proc_ops' defined but not used [-Wunused-const-variable=] 1272 | static const struct proc_ops psi_cpu_proc_ops = { | ^~~~~~~~~~~~~~~~ >> kernel/sched/psi.c:1263:30: warning: 'psi_memory_proc_ops' defined but not used [-Wunused-const-variable=] 1263 | static const struct proc_ops psi_memory_proc_ops = { | ^~~~~~~~~~~~~~~~~~~ >> kernel/sched/psi.c:1254:30: warning: 'psi_io_proc_ops' defined but not used [-Wunused-const-variable=] 1254 | static const struct proc_ops psi_io_proc_ops = { | ^~~~~~~~~~~~~~~ vim +/acpi_system_wakeup_device_proc_ops +139 drivers/acpi/proc.c 138 > 139 static const struct proc_ops acpi_system_wakeup_device_proc_ops = { 140 .proc_open = acpi_system_wakeup_device_open_fs, 141 .proc_read = seq_read, 142 .proc_write = acpi_system_write_wakeup_device, 143 .proc_lseek = seq_lseek, 144 .proc_release = single_release, 145 }; 146 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki