Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1284177lqa; Mon, 29 Apr 2024 04:17:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW+pZNF1rvHfYWCYtRsyvcYsTbGEWUu/9LCXJ9xt+GCFSZYMe64uqNoSmCZkFn7G861CUfkq3Ezuu72DZuofg7ZNITIHfskZV2cTqJx6A== X-Google-Smtp-Source: AGHT+IGfRse1wkPPxog6rURTJ26GrIW1lPHUnfs2NfENGfF+e1n3wwASq/wXF5bu/po7cgnSjERO X-Received: by 2002:a5b:8d:0:b0:dcc:56b6:6606 with SMTP id b13-20020a5b008d000000b00dcc56b66606mr9725234ybp.40.1714389443726; Mon, 29 Apr 2024 04:17:23 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ep22-20020a05622a549600b004367f8acd4bsi23539626qtb.558.2024.04.29.04.17.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 04:17:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=nfdCmGUm; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-162127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4C7061C214D6 for ; Mon, 29 Apr 2024 11:17:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 840C13FB9B; Mon, 29 Apr 2024 11:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nfdCmGUm" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E28D200D5 for ; Mon, 29 Apr 2024 11:17:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714389436; cv=none; b=E/6/4B9pDAgkR7IZCBSjzKxvkUq+ZDj9s77nkoJ9Fqvl7jpv+It8Zz2gc65BGethtoZePVVX8k12vlYq7GUfsMcF2XX1H+HGjb+8jDCXbtn/8VzAxbfme3m5KvUULy0alRH16liIu7Colt1GftmB/+rq16QVxqzKz6xty/xwZHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714389436; c=relaxed/simple; bh=1Eo88DNt750jucwhczOVgMrfucx591HLz2m0Oln95J0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GfO8sj/yMj+XbyTCllri2NQDyF3aerqWAFVB5Ladr+NiG8abaLR7V0qdabhgt2jVwGPPU97FlsjUk8ObYwdescEmUjUVn9u04TSvCpsf8VjaEgDHJVpz2HtS9Wkpq2m0pIo34eEfqo3zfRuVy36+bPYkiJj9jhNGVekTVF1z2QE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=nfdCmGUm; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714389435; x=1745925435; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1Eo88DNt750jucwhczOVgMrfucx591HLz2m0Oln95J0=; b=nfdCmGUmm9dvlieviyBpO0G8CeGb9YE/+JSClCrB4aRuaoRy+Zzmjwsz gk4Ajgv762RAIykKhw7SFNp7jvpd9foy/Xb2W2k5VovahwiFC5STvedYU AYqjxTpW6LV2ER9e2msYT3vz3vabuJSCkeapgo2LmHjS4DaipQkEjrntN UcqkU7cLrxrAmZgqJTWB6E3nbLNDpli9c39Tpqn6QbEDIMBIDANXjciSG Bnv9HDYcLfzTeRyi0Y5bnZVvhu88zdtzk1YDN+AYrcIyv/ph/XJh8682A WQNB218OyzbMpeu9B5UQjKIIchCmYg8tzW+lk2nr7T+PzaDUlkokoAC+x A==; X-CSE-ConnectionGUID: ouWKRboGQrSD/+DcvADGFw== X-CSE-MsgGUID: QAtTAfAQScSD2H2ud/KSXw== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="21459151" X-IronPort-AV: E=Sophos;i="6.07,239,1708416000"; d="scan'208";a="21459151" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2024 04:17:15 -0700 X-CSE-ConnectionGUID: jMiiwx0kSpu99QpjyGYENQ== X-CSE-MsgGUID: PqfT1Ps6QFKeiwxu/lFwVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,239,1708416000"; d="scan'208";a="26701015" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa008.jf.intel.com with ESMTP; 29 Apr 2024 04:17:11 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 041C215B; Mon, 29 Apr 2024 14:17:09 +0300 (EEST) From: Andy Shevchenko To: Jason Gunthorpe , Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Cc: Joerg Roedel , Suravee Suthikulpanit , Will Deacon , Robin Murphy , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andy Shevchenko Subject: [PATCH v1 1/1] iommu/amd: Fix compilation error Date: Mon, 29 Apr 2024 14:17:07 +0300 Message-ID: <20240429111707.2795194-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit With WERROR=y, which is default, clang is not happy: ../amd/pasid.c:168:3: error: call to undeclared function 'mmu_notifier_unregister'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../amd/pasid.c:191:8: error: call to undeclared function 'mmu_notifier_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2 errors generated. Select missed dependency. Fixes: a5a91e54846d ("iommu/amd: Add SVA domain support") Signed-off-by: Andy Shevchenko --- drivers/iommu/amd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/amd/Kconfig b/drivers/iommu/amd/Kconfig index 68d8fc107cb9..994063e5586f 100644 --- a/drivers/iommu/amd/Kconfig +++ b/drivers/iommu/amd/Kconfig @@ -7,6 +7,7 @@ config AMD_IOMMU select PCI_ATS select PCI_PRI select PCI_PASID + select MMU_NOTIFIER select IOMMU_API select IOMMU_IOVA select IOMMU_IO_PGTABLE -- 2.43.0.rc1.1336.g36b5255a03ac