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 A75A5C10F1A for ; Tue, 7 May 2024 19:30:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1ECEA6B008A; Tue, 7 May 2024 15:30:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 19DF76B008C; Tue, 7 May 2024 15:30:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 064956B0092; Tue, 7 May 2024 15:30:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DCCEC6B008A for ; Tue, 7 May 2024 15:30:52 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 9CCC840E8F for ; Tue, 7 May 2024 19:30:52 +0000 (UTC) X-FDA: 82092592344.13.D855C5B Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by imf16.hostedemail.com (Postfix) with ESMTP id 2B57C18000B for ; Tue, 7 May 2024 19:30:49 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=l17IFtcn; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715110250; 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=5fWK0pEhtA934gv2k3n3jNZaqTLnLlXfNuKd8DDJk58=; b=ToxnsAgLVu87/6qDa4w09vNF/12/XkAQ9GlNicFGU/4Sz1TwMZ5XHjxaWhZH0LBaomTCxz coD64tlCYG8BgiRh1jE8B1ztX2wyLocTJRSs2ziG6IYOK6zJr7RmWn1kMW4jAF8F9HKsPa rAEo0UES5PEXmrmBinOZ5fv3yngKLgo= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=l17IFtcn; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715110250; a=rsa-sha256; cv=none; b=JUIfIGkyo+AzRr4MvZyVFJ1y5ZqmpzwHD8paB41H0mX63TydDT/w/s3cmUvwKFmIjhhRPa yFndIS2AtQ3sb44CjJJpnEx5/z8sEkMo7OnhMnWW2n0TyYRWn73+JMjq7CTUr42TiyBOMT 4WLCBxTux6Svy6R4BYk1ND0eWQzemR8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715110251; x=1746646251; h=date:from:to:cc:subject:message-id:mime-version; bh=edLOHaFXPxOQUDcUpSF4YhMZMvSNPwXk5aBWRK6hodM=; b=l17IFtcnZikP0ja0+/Yxvr/6ystYXnEnF/2NhSOo9hAVGQiBKU2R2dZa ZgUSrBybshnMCNDnAL72MkTiMEdjt9nxLQRPF8lyq5ZoBiDZ2W40u1OtY a+PVgSgtE3OlZDIHzRd5OqEMWVBUdbILVt++VCOlit9Jxt+HOuslGHX06 hQL1LCcX7vqgF6FLtCzVrPfO+/vmpritTcqL2kP8K2Wp3CEmZs/oEaF9v oIOtY/LoHinKskd++YM4Vyl8LY50ftdKMIZWcinLfseul84f94URjBFJ9 /kjoiCiB47OPKuPPdb5SDAOyCyMwjSjyYfU289nMPlmqSQUXZbkTAupoA Q==; X-CSE-ConnectionGUID: zPdX8xndSkK8pHH3qXkmZA== X-CSE-MsgGUID: RBULGuqSQoi8j5zLXz4gBw== X-IronPort-AV: E=McAfee;i="6600,9927,11066"; a="22343606" X-IronPort-AV: E=Sophos;i="6.08,143,1712646000"; d="scan'208";a="22343606" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2024 12:30:49 -0700 X-CSE-ConnectionGUID: RyJu+Rf5RIeDJCfp1OabBg== X-CSE-MsgGUID: V+HLQ9uhRBO8uYfh5SJwLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,143,1712646000"; d="scan'208";a="33434838" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by orviesa005.jf.intel.com with ESMTP; 07 May 2024 12:30:47 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s4QWS-0002a8-2C; Tue, 07 May 2024 19:30:44 +0000 Date: Wed, 8 May 2024 03:30:02 +0800 From: kernel test robot To: Jason Gunthorpe Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Will Deacon , Michael Shavit Subject: [linux-next:master 9356/11707] include/kunit/test.h:444:undefined reference to `kunit_kmalloc_array' Message-ID: <202405080300.iTZpE1xH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: bkg17keo73tzserj9xcgm4oeufcpgibw X-Rspamd-Queue-Id: 2B57C18000B X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1715110249-209184 X-HE-Meta: U2FsdGVkX19EdGMHp5Bq2gPKHNU/aAqtpywJ+Tk2kxjTcwcRruQ25D62N3zXFF9UMWvJMeGWOevmSVQw7wSLSUBueXtmytyb72W/PaMfYFZ10yIBJgUuVj26sRH+dCbI2q7zx7F+th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4TlcEGYKNIkigxW3Bf6016TQqemtfLHHPYExqHCwj5ReXi6/S6mM31b8tdlYO/yL5GYIRQUNE+QDd6I+KbU12zmreRFweuQfn6bzlt/8mLDJ/uSaL78dverPOAkznglT2o/st2piNQtyMA1SckZ4aKJq5v10Sneurn/xO3WLfmypNOjJ9bEDihqoLkGNOIg6eVwI2g8k6AFwMnhpNcVmmyTuPUQ== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 93a39e4766083050ca0ecd6a3548093a3b9eb60c commit: 56e1a4cc2588a7cb9664457a62fd7a77e005aa01 [9356/11707] iommu/arm-smmu-v3: Add unit tests for arm_smmu_write_entry config: arm64-randconfig-r023-20221023 (https://download.01.org/0day-ci/archive/20240508/202405080300.iTZpE1xH-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240508/202405080300.iTZpE1xH-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/202405080300.iTZpE1xH-lkp@intel.com/ All errors (new ones prefixed by >>): aarch64-linux-ld: Unexpected GOT/PLT entries detected! aarch64-linux-ld: Unexpected run-time procedure linkages detected! aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `kunit_kmalloc': >> include/kunit/test.h:444:(.text+0x440): undefined reference to `kunit_kmalloc_array' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `arm_smmu_test_writer_record_syncs': >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x598): undefined reference to `kunit_unary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_unary_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x598): dangerous relocation: unsupported relocation >> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x5a0): undefined reference to `kunit_unary_assert_format' >> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:77:(.text+0x5b0): undefined reference to `__kunit_do_failed_assertion' >> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x5ec): undefined reference to `kunit_binary_ptr_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_binary_ptr_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x5ec): dangerous relocation: unsupported relocation aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x5f4): undefined reference to `kunit_binary_ptr_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x604): undefined reference to `__kunit_do_failed_assertion' >> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:58:(.text+0x60c): undefined reference to `__kunit_abort' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `arm_smmu_v3_test_cd_expect_transition': >> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x728): undefined reference to `kunit_mem_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_mem_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x728): dangerous relocation: unsupported relocation >> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x734): undefined reference to `kunit_mem_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:322:(.text+0x748): undefined reference to `__kunit_do_failed_assertion' >> aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x850): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_binary_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x850): dangerous relocation: unsupported relocation aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x854): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:320:(.text+0x868): undefined reference to `__kunit_do_failed_assertion' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x898): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_binary_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x898): dangerous relocation: unsupported relocation aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x8a0): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:321:(.text+0x8b0): undefined reference to `__kunit_do_failed_assertion' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: in function `arm_smmu_v3_test_ste_expect_transition': drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xcd4): undefined reference to `kunit_mem_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_mem_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xcd4): dangerous relocation: unsupported relocation aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xce4): undefined reference to `kunit_mem_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:144:(.text+0xcf8): undefined reference to `__kunit_do_failed_assertion' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0xdf4): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_binary_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0xdf4): dangerous relocation: unsupported relocation aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0xdf8): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:142:(.text+0xe08): undefined reference to `__kunit_do_failed_assertion' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xe38): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kunit_binary_assert_format' which may bind externally can not be used when making a shared object; recompile with -fPIC drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xe38): dangerous relocation: unsupported relocation aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xe40): undefined reference to `kunit_binary_assert_format' aarch64-linux-ld: drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-test.c:143:(.text+0xe50): undefined reference to `__kunit_do_failed_assertion' vim +444 include/kunit/test.h 7122debb4367ee Daniel Latypov 2021-05-03 430 7122debb4367ee Daniel Latypov 2021-05-03 431 /** 7122debb4367ee Daniel Latypov 2021-05-03 432 * kunit_kmalloc() - Like kmalloc() except the allocation is *test managed*. 7122debb4367ee Daniel Latypov 2021-05-03 433 * @test: The test context object. 7122debb4367ee Daniel Latypov 2021-05-03 434 * @size: The size in bytes of the desired memory. 7122debb4367ee Daniel Latypov 2021-05-03 435 * @gfp: flags passed to underlying kmalloc(). 7122debb4367ee Daniel Latypov 2021-05-03 436 * 7122debb4367ee Daniel Latypov 2021-05-03 437 * See kmalloc() and kunit_kmalloc_array() for more information. 57e3cded99e9c8 David Gow 2023-05-25 438 * 57e3cded99e9c8 David Gow 2023-05-25 439 * Note that some internal context data is also allocated with GFP_KERNEL, 57e3cded99e9c8 David Gow 2023-05-25 440 * regardless of the gfp passed in. 7122debb4367ee Daniel Latypov 2021-05-03 441 */ 7122debb4367ee Daniel Latypov 2021-05-03 442 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) 7122debb4367ee Daniel Latypov 2021-05-03 443 { 7122debb4367ee Daniel Latypov 2021-05-03 @444 return kunit_kmalloc_array(test, 1, size, gfp); 7122debb4367ee Daniel Latypov 2021-05-03 445 } 0a756853586ce1 Brendan Higgins 2019-09-23 446 :::::: The code at line 444 was first introduced by commit :::::: 7122debb4367ee5c89237e5d36dcc0007d7ec43c kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers :::::: TO: Daniel Latypov :::::: CC: Shuah Khan -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki