Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4963168yba; Tue, 30 Apr 2019 07:08:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAJe24HumVxv5fUwQXjbWykjFTn/wvjxSUAzvfJl7vJCWeKGEsOY5DtsTlszTiGlSit1h3 X-Received: by 2002:a17:902:e293:: with SMTP id cf19mr10618159plb.151.1556633305581; Tue, 30 Apr 2019 07:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556633305; cv=none; d=google.com; s=arc-20160816; b=NOnrh91C/5vPYD5XIiIeK5OKoQV3sTS4jgMMbFwSwpmlsnkTJFgICXy0irAy7Q+tpC el+r6MwKVeczzGkTYmr3nQLoiLeBsohun6Uoas5BrIi9zHVVykcoOTDM01dWzMddzBFA hw9nuZdepdjeXqKbWfRnqnRuZAgYKyrFV+Xp5eGRFRHlC4waa/LUBzRH+amb2oLgEeEY wNpHHfAKEvNwaDt4TX1v5C3eeybr+uhLqWzdUGnVyXIEmIFtjFZgf8wsS1hrPALtcWUY azJ89FJ1LJq1+12wSmkNI5ebtE0JONODP1i36bsItE5oAfPBcw6Q4/cmOz2NgMExEveL S6Mw== 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:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ntOU8kb7sFLBo8HwpMO0kZM6oKzBZoqfozpm3EmQ7oA=; b=waIPzZp5NMOmRe07oZyOw4cI2RMSIleL1Gt5Ap3nl7BQRq5nspe39DnFEWlz5YwR4v DQBn9gZC0brC0uAfocHmdMC9vz4cGg8VhRkMykaMF+nRdt2kS/wkp2fkM34unLPR0VT7 nlR7vaKFZLtMx74ofDjY7KU6Ce4nJsdxyTy60EholFYq025T234KHe6ON8dkNlzms6qT svSt5zRXhGfP55BBJ3GNGZ/LjKChFOaxUEA7gA9qbakLqZ2+PWmodyE7CKgQZzj37Wpt MOENGf0cRSrn9ufnj9RpfNlxdwKZ0Ns56LCN7A2U50hbVVXANdLzXqkpjLlJ7aO77U+n kelw== 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 i8si19058142pgq.468.2019.04.30.07.07.47; Tue, 30 Apr 2019 07:08:25 -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 S1727655AbfD3OGP (ORCPT + 99 others); Tue, 30 Apr 2019 10:06:15 -0400 Received: from foss.arm.com ([217.140.101.70]:48028 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbfD3OGP (ORCPT ); Tue, 30 Apr 2019 10:06:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D411280D; Tue, 30 Apr 2019 07:06:14 -0700 (PDT) Received: from [10.1.196.50] (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8F43F3F719; Tue, 30 Apr 2019 07:06:13 -0700 (PDT) Subject: qcom_scm: Incompatible pointer type build failure To: Ian Jackson , Stefano Stabellini Cc: xen-devel@lists.xenproject.org, andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, "linux-kernel@vger.kernel.org" References: <23752.17186.527512.614163@mariner.uk.xensource.com> From: Julien Grall Message-ID: <87d9fbc1-5956-2b7b-0b9a-6368e378d0f6@arm.com> Date: Tue, 30 Apr 2019 15:06:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <23752.17186.527512.614163@mariner.uk.xensource.com> Content-Type: text/plain; charset=utf-8; format=flowed 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 Ian, Thank you for the report. On 30/04/2019 13:44, Ian Jackson wrote: > osstest service owner writes ("[linux-4.19 test] 135420: regressions - FAIL"): >> flight 135420 linux-4.19 real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/135420/ >> >> Regressions :-( >> >> Tests which did not succeed and are blocking, >> including tests which could not be run: >> build-armhf-pvops 6 kernel-build fail REGR. vs. 129313 > > http://logs.test-lab.xenproject.org/osstest/logs/135420/build-armhf-pvops/6.ts-kernel-build.log > > drivers/firmware/qcom_scm.c: In function ‘qcom_scm_assign_mem’: > drivers/firmware/qcom_scm.c:469:47: error: passing argument 3 of ‘dma_alloc_coherent’ from incompatible pointer type [-Werror=incompatible-pointer-types] > ptr = dma_alloc_coherent(__scm->dev, ptr_sz, &ptr_phys, GFP_KERNEL); > ^ > In file included from drivers/firmware/qcom_scm.c:21:0: > ./include/linux/dma-mapping.h:560:21: note: expected ‘dma_addr_t * {aka long long unsigned int *}’ but argument is of type ‘phys_addr_t * {aka unsigned int *}’ > static inline void *dma_alloc_coherent(struct device *dev, size_t size, > ^~~~~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors > scripts/Makefile.build:303: recipe for target 'drivers/firmware/qcom_scm.o' failed > make[2]: *** [drivers/firmware/qcom_scm.o] Error 1 > scripts/Makefile.build:544: recipe for target 'drivers/firmware' failed > make[1]: *** [drivers/firmware] Error 2 > make[1]: *** Waiting for unfinished jobs.... > > I think this build failure is probably a regression; rather it is due > to the stretch update which brings in a new compiler. The bug has always been present (and still present in master), it is possible the compiler became smarter with the upgrade to stretch. The problem is similar to [1] and happen when the size of phys_addr_t is different to dma_addr_t. I have CCed the maintainers of this file. Cheers, [1] https://lists.xenproject.org/archives/html/xen-devel/2019-04/msg00940.html -- Julien Grall