Received: by 10.213.65.68 with SMTP id h4csp1219822imn; Mon, 26 Mar 2018 03:21:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tiIGcoljYKRIhnpd8O0s5d1RkN8PTwwStQAM3xPumXtnCWOZwYmv0cIzS14EdHVvTQQ/n X-Received: by 10.101.97.134 with SMTP id c6mr5575682pgv.370.1522059716010; Mon, 26 Mar 2018 03:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522059715; cv=none; d=google.com; s=arc-20160816; b=wOZYPW/fVbPi4K7+oCAxEDTSS7qKAI9+JXglOOtIxIPe1RkluluHVqx1tfA3Kq+WHs ZmJhAh/E1c/+jWxM1RxoSiUAotcNKobYePT6Ez761GTBUjAUAQkFezZmEnv1H4eacHNY GPuFPLK8HafYkDHCc9nZaUR5MXnapoToFbo5jqGbe4wpx3/DdV0QvQ8pxgxX7yFcRDHd NJUeAPXIKelPfLNTQCpSPwhHDU+O0U/iToSsXFMkXE/1+QlajiUaGL9BDQwuP9jvpn2W 6eLexx4Es+QWEqJhOMRPw9WmeDu9gSEaxglcct5Jtm93xn/9vBG0iysmRaFjbyerSQuf satw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id :organization:subject:from:to:dkim-signature :arc-authentication-results; bh=oBI4QG+GYFT+6pg6Hhhgwt97IgvcbrdaeVU45+Mf/rk=; b=cgyosUOMA8c0uM7TEXfFbxBNBUZS9uqbtjLp0uMDDSyrey70eC0cxlWHNzY+tvim83 lsrZymv9XoufswEkNFz5lP7R7aqcPLwcmSTme9+ElZ7OTtJQxo3vp35057nFXDAYw8xk VN6X2KC11rx6ZqCthc2+ZMDnRZ/qvv+TPUeGcQi/JvpmlHCiLr4r4wxGaVAvYFqhIZ5f DSnCRLOkn9Ai++TQLKgzWRsdCgpRqw3dLBAwIaxhuP3n9NV9Ih+DJXxERShsAS9NIAFd RVzV2wrZGCP4s6rxSwto0VsFFtTLIxOPgQnGO5fRqo8AK+l08fQnAJGTXlKOqUp8J61a X6Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lKJMh7SW; 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 q2-v6si15027372plh.259.2018.03.26.03.21.40; Mon, 26 Mar 2018 03:21:55 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lKJMh7SW; 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 S1751901AbeCZKUf (ORCPT + 99 others); Mon, 26 Mar 2018 06:20:35 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:33090 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbeCZKUd (ORCPT ); Mon, 26 Mar 2018 06:20:33 -0400 Received: by mail-wr0-f175.google.com with SMTP id z73so18338155wrb.0 for ; Mon, 26 Mar 2018 03:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=oBI4QG+GYFT+6pg6Hhhgwt97IgvcbrdaeVU45+Mf/rk=; b=lKJMh7SWoshrhPD+9UZGTtyMwcKXBkTv32pdFzmamATlfAakD4JNzYuhd+Q8E9D7c0 3KI2VAjWactVrJmEw+76ThyHC9FrcypA2RouWxhQcPjM9v/Ypwy/Qkrnh1fUgFuAAMxf 9i0yxk/3Qb5g8b9tj5CvyDFUXHHNepVktteSsYaWdqsXyz8kugYGiZzgSRdvch3zhvsa SPTo/BcwU4ERHL+5VAVxlvhdtEcbssyKlLOdveLsgWM/725Zf8hsJagd86+04qNsOHi4 MPWRLpDt+oEG24hGm0MeoXcjM0v+GJ8ExLK8S4Hwsis7JcuSpOhQ4P9SILk3Au2Q7CKP BQLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=oBI4QG+GYFT+6pg6Hhhgwt97IgvcbrdaeVU45+Mf/rk=; b=G66MPEyyi0QBTQRpfEnpZUzno9UYZNohQ0IedjgWGfxB3YApVWlZiALvFA8pCgObau Ax4tSB2hjgoHGKYt1HiibMJEZ283N2u9XP2aIoEIlfF5Oo+MCVfh/05jxC21HhWsdZU7 uPIwMRCDvn3wFS88qfo5TMPajhCXu3Gw7Hj/3HzNsNzWK6XyVQe+22vFSYKxAMeVlVfc 3vx0nC86yUuFNTO9xzGNl+AZfeq3Z8efk/y/YKkSyskq5+PBpB8VIliWk7HTFVOfGeIx A9ODKYWjTMKff8QyZ4maY/0rIMKSKJkt8R/9avsBhqL3t4MaRbC2Y7HTIVRusWwuMQZI o3Rw== X-Gm-Message-State: AElRT7H1s4xaIXvPDMaSUjhJZmC3OzKw+dJ1RA/NHPMSatKTGRucyPZ1 akHEBPdnLbIXjNCWmlp5v3iUEg== X-Received: by 10.223.149.70 with SMTP id 64mr23631788wrs.223.1522059631316; Mon, 26 Mar 2018 03:20:31 -0700 (PDT) Received: from [10.1.2.12] ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 74sm17909954wmf.26.2018.03.26.03.20.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 03:20:30 -0700 (PDT) To: Linux-Next Mailing List , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Ingo Molnar From: Neil Armstrong Subject: linux-next: Failure to build using next-20180326 and next-20180323 Organization: Baylibre Message-ID: Date: Mon, 26 Mar 2018 12:20:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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