Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp339222rdb; Tue, 5 Dec 2023 06:59:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiQIZtoXNhkoP2J+GokNzJ1rlmA+0Xn65F54UBGHqP8L5CpFHED7rztToQb/BiaFdBgV4J X-Received: by 2002:a17:902:ced2:b0:1d0:6ffd:6e68 with SMTP id d18-20020a170902ced200b001d06ffd6e68mr3899373plg.96.1701788386463; Tue, 05 Dec 2023 06:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701788386; cv=none; d=google.com; s=arc-20160816; b=qTI4zowXXmLnIn1qxlo4qpjSKmeEPZJUkKpBKPLeSa2nX2NOd/sB+EU3BimYAOAbGE EA3We2Hh6fIB85XhD64bq0i9Hg9pXPASajbv9n9XQSZRtZYS5U4k9NixPeR6M8rxmNQR 42Pm01x6h393jLHpFbJaa+ch1oOhBplMv3yK7mTDuK//FsUkwbAN4R9U+og2jUjfOH+D 3DM7Riml7BltrTOV8VjZ6jMnet8wGtc0/Fbq1iGQtm0FibY2W29j01Q4sI6AMpXNlJ+G 9BDQDBhMc4dEA1fN7q0h36oZ7l+CQEAQLqzuTj+s6x85Ii/gIYaNDwxfB+BJSwm8Oct4 F7pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nMpuL2LzkC9I7HKqeGgpMd9mk+WypJ9kLtBqUz7LW68=; fh=baooHXdjlcLLrhLeRHRSq/DNAkoBXN1X5WcmaA4uxMA=; b=KTQbl8a7vt76gqX97LJK/2GQwe+WSvOU327LvJvX94CGyJIH5wvQDCeRjROTvKGITR KR2txYIdk/7PwDnsmISmEry6HOwru1DeseOjez7m9o9uXbp+7FIpypntrV3txXkVTHbA fWDKpsgk7kAR2UCmBrClFNoFbhc+XSZ0b7Iu5qHmayhm3wT7OZU3Tw2pCV/aKyiNi5OL O4Uj4CKBwzuPFEp7HB0sfp9em3sWcJZZ+WvfuFw3X8ngN/AkxmKIVbsWd2A08Mk4ATBw BWh5pm4xf88AnQEj/n3QKDsILAJwS55N9NbtPP4mWGlLGvOBqxYwECbAEp/V4QA+yc91 NYKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e9dEpWsW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id jk17-20020a170903331100b001d055315494si7370216plb.540.2023.12.05.06.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:59:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e9dEpWsW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C5D318078639; Tue, 5 Dec 2023 06:59:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345979AbjLEO70 (ORCPT + 99 others); Tue, 5 Dec 2023 09:59:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346007AbjLEO7Z (ORCPT ); Tue, 5 Dec 2023 09:59:25 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1192D188; Tue, 5 Dec 2023 06:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701788372; x=1733324372; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VZDh21/Ig8AXYrMCD18ioZIyJdzTpoel4Yv9mfI1z6Q=; b=e9dEpWsWa7GANAIdFYw2tFvEvlrhgQ1pm3fxzyZMeSsm+r/XGRDHdaSW DA+hVb3syqfpXDS6J8W6tVkhBowJaEJjRBh8IkTW0/e/LVRPww3WyzCJL sEUwOTbwcz0a/m/cEBIzOaNrB83XprKQtnNa8ILHow/7Qdxf8+l8rbKym qu/ZMsa71hIVGRSvnMVdrpXYX9GCxMzntpnJj7/ICoDUtiwTUU/TlHYDA Rdths1sfOl0HNKe46LBHTbbie43bHsLTUx/bD4VhbRpo8Cs2P8wAiABnL OryYuCsqeiQvox5UUnFX11Q9uTLgrDcHqvzMHxUjHUFYhyAmDCeqBUKQM A==; X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="7250408" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="7250408" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 06:59:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="944283594" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="944283594" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 05 Dec 2023 06:59:24 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rAWtO-0009DG-02; Tue, 05 Dec 2023 14:59:22 +0000 Date: Tue, 5 Dec 2023 22:59:20 +0800 From: kernel test robot To: davidgow@google.com, Rae Moar , Brendan Higgins , Greg Kroah-Hartman , Matti Vaittinen , Matti Vaittinen , Stephen Boyd , Shuah Khan , Jonathan Corbet , Kees Cook , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxime Ripard Cc: oe-kbuild-all@lists.linux.dev, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-sound@vger.kernel.org, David Gow Subject: Re: [PATCH 1/4] kunit: Add APIs for managing devices Message-ID: <202312052230.ic1pg0uo-lkp@intel.com> References: <20231205-kunit_bus-v1-1-635036d3bc13@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205-kunit_bus-v1-1-635036d3bc13@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 06:59:43 -0800 (PST) Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on c8613be119892ccceffbc550b9b9d7d68b995c9e] url: https://github.com/intel-lab-lkp/linux/commits/davidgow-google-com/kunit-Add-APIs-for-managing-devices/20231205-153349 base: c8613be119892ccceffbc550b9b9d7d68b995c9e patch link: https://lore.kernel.org/r/20231205-kunit_bus-v1-1-635036d3bc13%40google.com patch subject: [PATCH 1/4] kunit: Add APIs for managing devices config: i386-randconfig-141-20231205 (https://download.01.org/0day-ci/archive/20231205/202312052230.ic1pg0uo-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312052230.ic1pg0uo-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/202312052230.ic1pg0uo-lkp@intel.com/ All warnings (new ones prefixed by >>): >> lib/kunit/device.c:100:22: warning: no previous prototype for '__kunit_device_register_internal' [-Wmissing-prototypes] 100 | struct kunit_device *__kunit_device_register_internal(struct kunit *test, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for DRM_I915_DEBUG_GEM Depends on [n]: HAS_IOMEM [=y] && DRM_I915 [=m] && EXPERT [=y] && DRM_I915_WERROR [=n] Selected by [m]: - DRM_I915_DEBUG [=y] && HAS_IOMEM [=y] && DRM_I915 [=m] && EXPERT [=y] && !COMPILE_TEST [=n] vim +/__kunit_device_register_internal +100 lib/kunit/device.c 99 > 100 struct kunit_device *__kunit_device_register_internal(struct kunit *test, 101 const char *name, 102 struct device_driver *drv) 103 { 104 struct kunit_device *kunit_dev; 105 int err = -ENOMEM; 106 107 kunit_dev = kzalloc(sizeof(struct kunit_device), GFP_KERNEL); 108 if (!kunit_dev) 109 return ERR_PTR(err); 110 111 kunit_dev->owner = test; 112 113 err = dev_set_name(&kunit_dev->dev, "%s.%s", test->name, name); 114 if (err) { 115 kfree(kunit_dev); 116 return ERR_PTR(err); 117 } 118 119 /* Set the expected driver pointer, so we match. */ 120 kunit_dev->driver = drv; 121 122 kunit_dev->dev.release = kunit_device_release; 123 kunit_dev->dev.bus = &kunit_bus_type; 124 kunit_dev->dev.parent = &kunit_bus; 125 126 err = device_register(&kunit_dev->dev); 127 if (err) { 128 put_device(&kunit_dev->dev); 129 return ERR_PTR(err); 130 } 131 132 kunit_add_action(test, device_unregister_wrapper, &kunit_dev->dev); 133 134 return kunit_dev; 135 } 136 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki