Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp641432ybe; Mon, 2 Sep 2019 07:06:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7oIBsLBgIl2E73CDZQ6NQqgSfo1k06hFAYVmuBE989gmHk2fDmCnwMSy8ZHBkYGJThRlV X-Received: by 2002:a63:161c:: with SMTP id w28mr24166250pgl.442.1567433196251; Mon, 02 Sep 2019 07:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567433196; cv=none; d=google.com; s=arc-20160816; b=t8CKbiUD7tUNFckpK+S1oeoo93qnSiOyxsL7p+AmBaSuhZQdOpaof+NcoIBi2RgM8V ukoJktL0pdEHaGDF+btsy02MEY1/JAN58HJ/anymqDADRVr6qoX3XnlwzYJLKNewq9sR l4SeSnsZ9XupkKEbAFJBJp4gWdkp7UB+TScrhaCMgnLROMEv0NoqYxSgZvD0a+YviF2p U/0xHk0WIhZ5fUVTqK5fOMZjis7Lk1pxqIoOQaFtxO7wZaqEQLeNSzO0pge2dIFV9q/z +bjJB09VY3ARmEZxWu0xMRD1o4Bwp2z10puum7VZmLHA5f/vz4EodzvCztO2dYYuH70+ 336Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UTrImE9xQ9u2NQ6KG8yjrG5KyuJCkt6AWQJLpceP+qA=; b=oLlnZcjP4Wp7IlC1NQFVQnvqvQXLe72FO3VtEjvv1ftPXKaEQcSVMMyP/N1GS5jh7y 1A1JHOG/NT3YvORVgS+LThvvDOFDe9RWvRIFfHOSAsJxep1DMYenFnJyhiJSQhHvaZIq RuX3gtISroswFXbCZUYmSv9+DV5HxUzY0jrLyqQGUhWclwfUjLOM2ApB/zbeLNeOebkM m2zt6+njCwV1PENcjVZ2JNjhe5r7kUXN+M4O+n7Je3iubGbSihtega5skSdMoyOEbrcQ 5qZhttCCoaphj8Z4akP5PrthX5Dzr9ti0O9/7YHgKmpEMhU8XCtRLFDrBSPlrpe1jO/l jJLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 190si7922409pfz.108.2019.09.02.07.06.15; Mon, 02 Sep 2019 07:06:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731037AbfIBODt (ORCPT + 99 others); Mon, 2 Sep 2019 10:03:49 -0400 Received: from 8bytes.org ([81.169.241.247]:52798 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729865AbfIBODt (ORCPT ); Mon, 2 Sep 2019 10:03:49 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id A99D71AD; Mon, 2 Sep 2019 16:03:47 +0200 (CEST) Date: Mon, 2 Sep 2019 16:03:47 +0200 From: Joerg Roedel To: Stephen Rothwell , Thiago Jung Bauermann , Michael Ellerman , Tom Lendacky Cc: Linux Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build failure after merge of the iommu tree Message-ID: <20190902140347.GA23482@8bytes.org> References: <20190902163951.6280e030@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190902163951.6280e030@canb.auug.org.au> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, tl;dr: And IOMMU commit introduces a new user for sme_active() in generic code, and commit 284e21fab2cf x86, s390/mm: Move sme_active() and sme_me_mask to x86-specific header breaks the build of drivers/iommu/ for all architectures not implementing sme_active(). On Mon, Sep 02, 2019 at 04:39:51PM +1000, Stephen Rothwell wrote: > drivers/iommu/iommu.c: In function 'iommu_subsys_init': > drivers/iommu/iommu.c:123:38: error: implicit declaration of function 'sme_active'; did you mean 'cpu_active'? [-Werror=implicit-function-declaration] > 123 | if (iommu_default_passthrough() && sme_active()) { > | ^~~~~~~~~~ > | cpu_active > > Caused by commit > > 2cc13bb4f59f ("iommu: Disable passthrough mode when SME is active") Actually it is caused by: commit 284e21fab2cfcf90dacce565e0b12f29e5df00c1 Author: Thiago Jung Bauermann Date: Tue Aug 6 01:49:17 2019 -0300 x86, s390/mm: Move sme_active() and sme_me_mask to x86-specific header which removes the sme_active prototype from the generic headers. The iommu commit is in next already for a couple of days and didn't cause problems before. > sme_active() seems to be only relevant to X86. It has an implementation on x86 and s390. > I have reverted that commit for today. Thanks, but I suggest reverting above commit instead. Regards, Joerg