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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCB28C3A59E for ; Mon, 2 Sep 2019 14:03:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ACFDD206BB for ; Mon, 2 Sep 2019 14:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730218AbfIBODt (ORCPT ); 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-next-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-next@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