Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1311971lqa; Mon, 29 Apr 2024 05:14:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVntbEhAh8s0ooWbH4yKfmdAUGHVF93jt45OW4m3ULOR9/B8rEciqpsSwi3ws+7Y8CS6yfCqYYHzxDuyVLUSZ9gf5m13vjjsDL1xceBmA== X-Google-Smtp-Source: AGHT+IGjPJNbZQ5XlvaZeicdFtiCEe+29S9AenQW3crp027rrr4xuf2OlvwDpLd33UuFg/Q5kxcb X-Received: by 2002:a05:6402:4344:b0:572:71b3:3c4d with SMTP id n4-20020a056402434400b0057271b33c4dmr4631369edc.34.1714392855031; Mon, 29 Apr 2024 05:14:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714392855; cv=pass; d=google.com; s=arc-20160816; b=r4Nd3wq8/FP/2/GY9AYiCa2agJSDgO+XPbANbSXH7yhLy7z147u5vlw7G9rLVdJvjJ H8NXgVb3+OaeoK/NbBMAFnRpQayGYNfmhyYCWeK1ZXjalMmU8zRUeNgtFOp6bPutpqIx XUzNmZxXAo7LFhe045viWEWjgkpoTCd6m+HKZWdc9/35jlExWffdJLiMGrKlugtuPZT1 cB8CK/V5+6gNuV/Bklz3/gbmebPxuft2Wp2gnS9fUceSYdBrvD8me/1CupOHVA2DGaMS erVn/7238qCB3tR6Vb/ooMHtOu9duQz1C4SihFAMPZnQNYXg/Hy0QPw0O3tK24RAHd0o O7Ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EXRgEPH1uU79zQD6+IHe0m9b6rETQiei9x6o058HUWY=; fh=nV5pmGIQgtgwO+9w96iZoY3iFrqk5x+puUGK7/L9DOc=; b=ipfrfRs1M3Bwop5VHTsyXMDrubLhNVO2qCZ99anpiqg5z/kA6nIt5zxG1VPwg6AP9D ylmE02zQ+cG2GqZGYQaUyTLM4HzTBY8q7BlDhsWzdX7pzS04crg3Rx8KhE8hu9pfukcf OYmf2WdI1Ti7Fvx93rZ0NOn0asDL66HRvzT5F+GgnfBRAupl418D83uza7dA954OCvA1 8hqPoPNZbWGRZ+8VMFV5YyhrwXEXVxHrM9+/usSJGlWE+Td9LTVYb+P4Vxz78eHOppyp PZMtQGRPUwQgDxkIov/UzNIVvordleluN2kY0MkzJPOtlWwA+kS/G3xo5SDgrESO6KD0 YcvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=KHlGtT1g; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-162210-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162210-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k7-20020aa7c387000000b0056ded86c6f2si11770286edq.526.2024.04.29.05.14.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162210-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=KHlGtT1g; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-162210-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162210-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BF7D91F2442F for ; Mon, 29 Apr 2024 12:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 405E280BF4; Mon, 29 Apr 2024 12:10:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="KHlGtT1g" Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C39DA548ED for ; Mon, 29 Apr 2024 12:10:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392603; cv=none; b=tMFulZc/YHZpTYqAzVA9rReFNLher2tc1f1URT06CjB+uPYnk5nHv9TYVOyDtD12WLs7cEszDPJ3n3Fo1t7UC4oIrrJkT7dzv2fTH+g8SEVpWAgyRI2UjNhsqWj+SLF1Ai4ttL6Ytupislbgsxwu3WwJiHBDMP2OBX5FApL77AM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392603; c=relaxed/simple; bh=k3LPaxpQ0t6t3el8UgR64nKFhllhxo4z3vuO4mc314Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eNpFZb5wVwx0X6fuswikhrFm4hwmSRNncyH4QTjSFp4YZ2NjoKOJsiiwqlK8uUu1AJTW2DcD+XizpgL4xtyO1eq2Bg74Flcf0ALuQi54qcY5qo7y9k/THTa3mLbyqKEqsuWUzYbtaVUcmVVuWqbexLOkzjloGCIb/xtxtp3B0Eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=KHlGtT1g; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5aa241232faso3367393eaf.0 for ; Mon, 29 Apr 2024 05:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1714392601; x=1714997401; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=EXRgEPH1uU79zQD6+IHe0m9b6rETQiei9x6o058HUWY=; b=KHlGtT1g4NGIZs59emiTgrgXv/bcZHcgwHWTXpf7TzHQL2qHiw2oyj0e9oRxwKAvZn lFQ8bAS6lhDVZqNlCMP5aRye/UT/4tYyeUYiSYvjWwqwLnEP9EawaH+VYhR+kCI0amza L58L9OoasdzI3hIztLR0adX3Atp1xD779v9jSjl9K/U2e8Hs4IvMF3QogpAseYdZaeqE +9yAhE927znwsNV6wqLq7pFKxCYfNwnuqYU05Ad/RpH9IkaBWyXHmP/olFKXAMVJsvvB xMiRUxLiukUKsWiDuMjLR6XFVB7qc6CJ8k0mY0eUyIXcD/w/dXQZPV+10HTv/Fp+S9nA 9Z9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714392601; x=1714997401; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EXRgEPH1uU79zQD6+IHe0m9b6rETQiei9x6o058HUWY=; b=evLqgJ4oXLbrL/pz7KSpMhV1ZpTm3BCydsKdhPxBjXcTODsmtqaIuNg81l08aALTKB UJv6/JMEkLaYMc3+uDHobv6xuZCHwi1iCzkO54pDnD54EsFsulgdyOunhD9Wh+c+Fpm6 x3RGrxMTwt6V1oxsqjPavWAMt407M+QK0yBT35Kbd6yDn18lrJhHGrmOLxxcNRU4lPn1 RqMOE0sJMljRwQpHCYnguF03CIAt4Lv7Z3t+qJglhVhdH8j/7Nr6aBF/54iHkbJgdQ7e rx9LXnemX865gUTFwQg2GC8gfiiGCNhqQuBW3xmfGtIpOpzpHxP2zHL862kepzG1igD8 uBqg== X-Forwarded-Encrypted: i=1; AJvYcCU/QrlMIEL++yBBZwFHC6xCZBMBtr5g5s9Dzo3r0klzcQrvjyX3tjvThSBnOy6eVs3p+htnvW4iW9qZ+X9vHgMqUUhUUTYEWI8rm4g1 X-Gm-Message-State: AOJu0Yw9uRruX+lbtQ++roPvZjSotmR2LiSFi5FnOv8p0NIY5h0trt0V DkDVUnUJZS/9UgMOWTJSD6P+ww9PKfwcCvf2UcDKFyXzOBYocI33moLFUbjWnlk= X-Received: by 2002:a05:6358:797:b0:186:9d05:5f0 with SMTP id n23-20020a056358079700b001869d0505f0mr12388658rwj.22.1714392600738; Mon, 29 Apr 2024 05:10:00 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id h2-20020ac85682000000b004365ab2894asm10399689qta.51.2024.04.29.05.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:10:00 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1s1PpX-000oW0-FJ; Mon, 29 Apr 2024 09:09:59 -0300 Date: Mon, 29 Apr 2024 09:09:59 -0300 From: Jason Gunthorpe To: Andy Shevchenko Cc: Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Joerg Roedel , Suravee Suthikulpanit , Will Deacon , Robin Murphy , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt Subject: Re: [PATCH v1 1/1] iommu/amd: Fix compilation error Message-ID: <20240429120959.GM231144@ziepe.ca> References: <20240429111707.2795194-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240429111707.2795194-1-andriy.shevchenko@linux.intel.com> On Mon, Apr 29, 2024 at 02:17:07PM +0300, Andy Shevchenko wrote: > 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(+) Reviewed-by: Jason Gunthorpe Jason