From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gnuweeb.org (Postfix) with ESMTPS id 5CB3F80E3C for ; Sun, 18 Sep 2022 07:06:23 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=EfO0CsM8; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663484783; x=1695020783; h=date:from:to:cc:subject:message-id:mime-version; bh=uqDR6sxpa19P2Ghi/ymnhY8+qpfC4Q4Anam1Nb6qjQ4=; b=EfO0CsM85n7NBoNIRbkiHcURegzSI4Lt9ULieQhADJpb0eaYQY8AajS+ 29bs5T+iIIGeZ9BUbpO58e6aYgep/lcdAFUBWofiIQ4ytdTqTm1GDbnIh WQb/zxwinARb6gcfrQRVN8zex3loq92Vu5GgNEq+fqiocwvJAa+WLr1jp 4EhSwzSnGBPD0OGKnklgkPXIR0uxdQ7WKoUplF9PZY5MPFkwJZB/zivdA w2ipkpzpT5HIx9iIMY1zxayT/URETCBvhkxJr/ZuHwmr8ym7aak9lN02C phXLfrIH1QIFpJFuCKPepMVVjklPfVzyfED5PWg0Kjq9ZdaRdvTjxeJ+R g==; X-IronPort-AV: E=McAfee;i="6500,9779,10473"; a="286253438" X-IronPort-AV: E=Sophos;i="5.93,325,1654585200"; d="scan'208";a="286253438" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2022 00:06:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,325,1654585200"; d="scan'208";a="569284136" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 18 Sep 2022 00:06:20 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oZoNf-0000yX-39; Sun, 18 Sep 2022 07:06:19 +0000 Date: Sun, 18 Sep 2022 15:05:25 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 1250/9999] drivers/base/core.c:1542:5: sparse: sparse: symbol 'fw_devlink_relax_cycle' was not declared. Should it be static? Message-ID: <202209181406.gs5GjUyY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2021-12 head: dbbb7b2f16b9fa3c706fe5b8c234431b97108bec commit: 1df699c140a778ed678d7d4b2fa8ffb2c62573e1 [1250/9999] UPSTREAM: driver core: Handle cycles in device links created by fw_devlink config: arc-randconfig-s042-20220918 (https://download.01.org/0day-ci/archive/20220918/202209181406.gs5GjUyY-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/1df699c140a778ed678d7d4b2fa8ffb2c62573e1 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10-2021-12 git checkout 1df699c140a778ed678d7d4b2fa8ffb2c62573e1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash drivers/base/ drivers/dma-buf/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/base/core.c:1542:5: sparse: sparse: symbol 'fw_devlink_relax_cycle' was not declared. Should it be static? vim +/fw_devlink_relax_cycle +1542 drivers/base/core.c 1527 1528 /** 1529 * fw_devlink_relax_cycle - Convert cyclic links to SYNC_STATE_ONLY links 1530 * @con: Device to check dependencies for. 1531 * @sup: Device to check against. 1532 * 1533 * Check if @sup depends on @con or any device dependent on it (its child or 1534 * its consumer etc). When such a cyclic dependency is found, convert all 1535 * device links created solely by fw_devlink into SYNC_STATE_ONLY device links. 1536 * This is the equivalent of doing fw_devlink=permissive just between the 1537 * devices in the cycle. We need to do this because, at this point, fw_devlink 1538 * can't tell which of these dependencies is not a real dependency. 1539 * 1540 * Return 1 if a cycle is found. Otherwise, return 0. 1541 */ > 1542 int fw_devlink_relax_cycle(struct device *con, void *sup) 1543 { 1544 struct device_link *link; 1545 int ret; 1546 1547 if (con == sup) 1548 return 1; 1549 1550 ret = device_for_each_child(con, sup, fw_devlink_relax_cycle); 1551 if (ret) 1552 return ret; 1553 1554 list_for_each_entry(link, &con->links.consumers, s_node) { 1555 if ((link->flags & ~DL_FLAG_INFERRED) == 1556 (DL_FLAG_SYNC_STATE_ONLY | DL_FLAG_MANAGED)) 1557 continue; 1558 1559 if (!fw_devlink_relax_cycle(link->consumer, sup)) 1560 continue; 1561 1562 ret = 1; 1563 1564 if (!(link->flags & DL_FLAG_INFERRED)) 1565 continue; 1566 1567 pm_runtime_drop_link(link); 1568 link->flags = DL_FLAG_MANAGED | FW_DEVLINK_FLAGS_PERMISSIVE; 1569 dev_dbg(link->consumer, "Relaxing link with %s\n", 1570 dev_name(link->supplier)); 1571 } 1572 return ret; 1573 } 1574 -- 0-DAY CI Kernel Test Service https://01.org/lkp