Received: by 10.213.65.68 with SMTP id h4csp1389795imn; Mon, 26 Mar 2018 06:41:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELsrYRgMOKrka80OyHZuWy8L9JXOoU2W7aj73aH5tDlgzdO2Cs2PnhpEE58iKYdb0EwbaiBc X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr39454468pll.281.1522071695457; Mon, 26 Mar 2018 06:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522071695; cv=none; d=google.com; s=arc-20160816; b=HFMyRQTSindWcGhOWHksqiXzlgEUXKtwkE7TWI2oJ9T9wEiTfFDCI4ZNA0kPUm/BSF RcytkeMdqc0eRmrkgYzFk0iBUYAYpr88SDIw9jp2U+Q/x+HuPqmWyyL6WrnGDzkZOwtl tkkqhr+Gr19mL50S5Hq1idan9KvoDynqyzcJAXJCbwiqDxqN+pZTTK9+Hh5OrsPvcOsy 5hfRyCpP0FcuvEbsWp6c11Xclhqk3HszalQFOQBTGtGCvfdndT7rvi+1tm48b+6+IOk/ pUctSDZyZ+293DDs+e+9AyVZvH5CWS+8JDA935hvpIMjbXSw355oY+Q93fooXfx7lBsU DwEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=z0i4gQcVnm6cIxsraDfC93KfeBqGvk4FPyUlBeI0fL4=; b=0E00yRr6S1IvNZZRQBEtNTGuzpRKRf0shIMCLbChxsiRWflxKnS4fBGPiCO84avTUE Ae7d7x5AcyncKcRnTeZyacsUm4VKUPboVwevVNqOMn7Slafbfe84r2BKBfuF3U2I91Cc NWox2kLz/WZ7ipRPlqc3nKT6eUhuOAyLnhoyG6zmvE+Pk1lrIK0BRnyTh3ipNNRbUW75 7MPOOot8VMOLsWtfGfggjRkv3I3MRxv022F8NUNXKFFjl1XSzHFB6Zk9bMIWtiv0E/lF q2wU1vejJ1x8I+oHHwW04NgtKGFZF8St2zFu3orJmBkYhD4Db9uM5BEb2Ebj9YJNi3vF zNqw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92-v6si14775733plw.229.2018.03.26.06.41.21; Mon, 26 Mar 2018 06:41:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbeCZNkL (ORCPT + 99 others); Mon, 26 Mar 2018 09:40:11 -0400 Received: from verein.lst.de ([213.95.11.211]:35402 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938AbeCZNkK (ORCPT ); Mon, 26 Mar 2018 09:40:10 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 11DE69F174; Mon, 26 Mar 2018 15:40:08 +0200 (CEST) Date: Mon, 26 Mar 2018 15:40:07 +0200 From: Christoph Hellwig To: Neil Armstrong Cc: Linux-Next Mailing List , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Ingo Molnar Subject: Re: linux-next: Failure to build using next-20180326 and next-20180323 Message-ID: <20180326134007.GA15204@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The real problem is commit 1f85b42a691cd8329ba82dbcaeec80ac1231b32a from the arm64 tree, which eventually need to be reverted and redone properly. But for now a fixup to rename the arm64 dma_to_phys and phys_to_dma helper is enough to build. On Mon, Mar 26, 2018 at 12:20:30PM +0200, Neil Armstrong wrote: > Hi, > > While building on arm64, the commit b6e05477c10c ("dma/direct: Handle the memory encryption bit in common code") breaks the compilation using defconfig: > > CC arch/arm64/mm/dma-mapping.o > In file included from arch/arm64/mm/dma-mapping.c:27:0: > ./include/linux/dma-direct.h:40:26: error: redefinition of ‘phys_to_dma’ > static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) > ^~~~~~~~~~~ > In file included from ./include/linux/dma-direct.h:9:0, > from arch/arm64/mm/dma-mapping.c:27: > ./arch/arm64/include/asm/dma-direct.h:12:26: note: previous definition of ‘phys_to_dma’ was here > static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) > ^~~~~~~~~~~ > In file included from ./include/linux/dma-mapping.h:13:0, > from ./include/linux/dma-direct.h:5, > from arch/arm64/mm/dma-mapping.c:27: > ./include/linux/dma-direct.h: In function ‘phys_to_dma’: > ./include/linux/dma-direct.h:42:19: error: implicit declaration of function ‘__phys_to_dma’ [-Werror=implicit-function-declaration] > return __sme_set(__phys_to_dma(dev, paddr)); > ^ > ./include/linux/mem_encrypt.h:50:24: note: in definition of macro ‘__sme_set’ > #define __sme_set(x) (x) > ^ > In file included from arch/arm64/mm/dma-mapping.c:27:0: > ./include/linux/dma-direct.h: At top level: > ./include/linux/dma-direct.h:45:27: error: redefinition of ‘dma_to_phys’ > static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) > ^~~~~~~~~~~ > In file included from ./include/linux/dma-direct.h:9:0, > from arch/arm64/mm/dma-mapping.c:27: > ./arch/arm64/include/asm/dma-direct.h:19:27: note: previous definition of ‘dma_to_phys’ was here > static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dev_addr) > ^~~~~~~~~~~ > In file included from ./include/linux/dma-mapping.h:13:0, > from ./include/linux/dma-direct.h:5, > from arch/arm64/mm/dma-mapping.c:27: > ./include/linux/dma-direct.h: In function ‘dma_to_phys’: > ./include/linux/dma-direct.h:47:19: error: implicit declaration of function ‘__dma_to_phys’ [-Werror=implicit-function-declaration] > return __sme_clr(__dma_to_phys(dev, daddr)); > ^ > ./include/linux/mem_encrypt.h:51:24: note: in definition of macro ‘__sme_clr’ > #define __sme_clr(x) (x) > ^ > cc1: some warnings being treated as errors > scripts/Makefile.build:312: recipe for target 'arch/arm64/mm/dma-mapping.o' failed > make[1]: *** [arch/arm64/mm/dma-mapping.o] Error 1 > Makefile:1057: recipe for target 'arch/arm64/mm' failed > make: *** [arch/arm64/mm] Error 2 > > Reverting the commit fixes the build. > > Neil > > -- > Neil Armstrong > Embedded Linux Software Engineer > BayLibre - At the Heart of Embedded Linux > www.baylibre.com ---end quoted text---