From patchwork Fri Aug 23 11:07:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 172106 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp494154ily; Fri, 23 Aug 2019 04:07:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCqPkmR1Q26feTF8LT8DOhCzjZCrmitA7bO4KBeBp6waQm3xN2awnF+UD323A9zJZTcaU6 X-Received: by 2002:a17:90a:974c:: with SMTP id i12mr4751204pjw.12.1566558475903; Fri, 23 Aug 2019 04:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566558475; cv=none; d=google.com; s=arc-20160816; b=fmEekl2/9qwQhFNQIDpOwdnU0cWLzFsIvSI3hP+X0CRKIQE/07lMiK4ew2Xy2G/ob+ jb5YUg1OrM4o5sCbJLbCUBwYH8OwC1uWZps6PluWLTwJ4KytpNyVMgzYBjwtqSn2s12b 8FcfLFYEmLl5mlxLvJiWk/0Pb6EhSAeL7Ph6h5U7O+nOcY9fNPt08pCg2UOoHu2X/mqe RXL957HEz5C6H2Q0ob4gKGt/u6pHLJ3fKtisGWYFjL+1PqpUDEHe/9c1W7q1CS6NmZ0z P92kxTDnDZrL6Pje5vHclG8JVoFq97cfIKxNVerUeoRlzR1v1u0r/N+4IPzBoh6Wr1KX RqYQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZHcoLOCEDvNdiKJSIaGU9TMbH+mXTX9zteaN4YnDK00=; b=TXnZ5rRfl1j2OEaiKkZ8XVDxOKp3T/JFaiEKkNuH2jmN2plRcJJG6rN+lmrY4uUlJD 99QkTj2h43WXe1n+/7CWw4VywlX4PTaVV+GdCP32Pe5Y3yWHsuMMSlIGPr1dpfP4Iy+I HHkDl6hmjT444hlZ6SJMqcf7nUaBdKkASnmqV0LrymUtwse+8+M7W+qpoqT/rzlOYuTf 4cW+BbZZ2R2eCo8dLwWK5H+g36WaGHl7LM8h05kT/7tb4xDC8WHu40BDP8JK6qW5j8QC zK5OIhdAfRjTW2rOnFt7xvXrVGD7iHRVKVY+qgGEDpIOOVmWBkiWv4na2QWSQhSPhTNk eutg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cPSKEtJO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s189si1740237pgb.272.2019.08.23.04.07.55; Fri, 23 Aug 2019 04:07: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=@linaro.org header.s=google header.b=cPSKEtJO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405196AbfHWLHy (ORCPT + 28 others); Fri, 23 Aug 2019 07:07:54 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:46204 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbfHWLHx (ORCPT ); Fri, 23 Aug 2019 07:07:53 -0400 Received: by mail-lf1-f65.google.com with SMTP id n19so6817382lfe.13 for ; Fri, 23 Aug 2019 04:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZHcoLOCEDvNdiKJSIaGU9TMbH+mXTX9zteaN4YnDK00=; b=cPSKEtJOjYq9WsIijVXnZyKIbicP5PMiaPAcAAyh8mxF2fDAkuuFN3FcjHGy6xOiA8 dg3q+8r842lRJFe52waZ1pWOP1wKwsDLDgKLqIpRczfz3K1GCezlxU2eAw9eIZbMKxrf mrn4ekEkBMNN05Alm52osCbJSaG9T3p08S1uk/Etvu7P/iU5q1BQZIwSb0LvUTNiRtvb cYFDDf3S1vHAgguA6kMPY4lnFgRTA7hrkOSRgVLfAkUQYbXFTy9PUohmSf4W+STJYWLK 3ZPZzlh8ATubZ3jKVG+Q0Xc8NiATpTsN2VCfjDHzuS4R6vwvK+BZ87tC4ou5Z6faQS3u BXhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZHcoLOCEDvNdiKJSIaGU9TMbH+mXTX9zteaN4YnDK00=; b=ls+ExS5UIfpCYrDIrEu4B7h8Qwh81v6kwe8jss2/nJJ9Vq+z1lHcNs2uQaS8LfEErz nSfLDaaxEZgPO5HXgvnj+3EQ6hu413FpIpoSXGcj+RMVLipPMn8ZvQ6IkhLEaaAbKdNi q16uSY0q4rmIj6Li/ycuuNJYbIqAPIKkbOn7wQzXazFeLQgzeTs7RVmbgvOudWWLmZpM CaIEoZCEC2HFS80p7rXtpf9KEV0aMC1Q8qB9WmTBj5MpY1nCkvIywxg1sJm84tBL3AZF RvSZwRyRjQ30nPJJVim/8CMYL3C4/SLxnZ7WpR2GSt9AbLNC/Qu99F4ts1SLcsTI7IyM IkHA== X-Gm-Message-State: APjAAAWcKB7cj//+jeoEqa8ebdPDdZlXH0/x/h/45DmIe0QAA2wUseSW 1qxMSvxjma/4ITpE36eXKcPdig== X-Received: by 2002:a19:2314:: with SMTP id j20mr1185222lfj.22.1566558471447; Fri, 23 Aug 2019 04:07:51 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id r23sm596312ljm.59.2019.08.23.04.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2019 04:07:50 -0700 (PDT) From: Anders Roxell To: ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, matthias.bgg@gmail.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] drm/mediatek: fix implicit function declaration Date: Fri, 23 Aug 2019 13:07:36 +0200 Message-Id: <20190823110736.26117-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building mtk_drm_drv.o the following build error is seen: ../drivers/gpu/drm/mediatek/mtk_drm_drv.c: In function ‘mtk_drm_kms_init’: ../drivers/gpu/drm/mediatek/mtk_drm_drv.c:291:8: error: implicit declaration of function ‘dma_set_max_seg_size’; did you mean ‘drm_rect_adjust_size’? [-Werror=implicit-function-declaration] ret = dma_set_max_seg_size(dma_dev, (unsigned int)DMA_BIT_MASK(32)); ^~~~~~~~~~~~~~~~~~~~ drm_rect_adjust_size ../drivers/gpu/drm/mediatek/mtk_drm_drv.c:291:52: error: implicit declaration of function ‘DMA_BIT_MASK’; did you mean ‘BIT_MASK’? [-Werror=implicit-function-declaration] ret = dma_set_max_seg_size(dma_dev, (unsigned int)DMA_BIT_MASK(32)); ^~~~~~~~~~~~ BIT_MASK Rework to add a missing include file 'linux/dma-mapping.h', because that is the (only) header file containing that declaration. Fixes: 070955558e82 ("drm/mediatek: set DMA max segment size") Signed-off-by: Anders Roxell --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 54536176bcbb..352b81a7a670 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include