From patchwork Wed Apr 29 08:04:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11516393 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D423D92C for ; Wed, 29 Apr 2020 08:07:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B28E220787 for ; Wed, 29 Apr 2020 08:07:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="HrWP0fNy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B28E220787 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2AB6B6ED7E; Wed, 29 Apr 2020 08:07:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 412736ED7E for ; Wed, 29 Apr 2020 08:07:46 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200429080407euoutp029eb6a7f7255d1450730bf5e1baa58797~KO7Bhi6kE2733527335euoutp02k for ; Wed, 29 Apr 2020 08:04:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200429080407euoutp029eb6a7f7255d1450730bf5e1baa58797~KO7Bhi6kE2733527335euoutp02k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1588147447; bh=8wZtlNmNqWWCVeLYNpsp4VIu5nk8QGOZAUKwMJbtN/c=; h=From:Subject:To:Cc:Date:References:From; b=HrWP0fNyONxEJwz4zWQk9srR6sqlY4W/4V6cJ43GjtvgLgYoZAuVyZIyTc7HcrP9s txYGPf3kcirkrEkloGb0ltrxnZOGCfN6coK69fc2a6lCkzuK/VKzCHxJkO5ccaclKq d6OTBdz7gSB0Jj+40gI4U9tlz+zvJlJfw4bNDy6Y= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200429080407eucas1p2398f54b5f3116b986dca2c0d9ea8aaed~KO7BT0cP-1544915449eucas1p2j; Wed, 29 Apr 2020 08:04:07 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 23.3E.60679.7F439AE5; Wed, 29 Apr 2020 09:04:07 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200429080406eucas1p21147ed99ad98332729c2a2aff2a33fb2~KO7BBpZ9U1544915449eucas1p2i; Wed, 29 Apr 2020 08:04:06 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200429080406eusmtrp28f80f2181d97d267a8a40ba2cabbca4b~KO7A_lh_p1582015820eusmtrp23; Wed, 29 Apr 2020 08:04:06 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-22-5ea934f75dd1 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 79.DB.07950.6F439AE5; Wed, 29 Apr 2020 09:04:06 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200429080406eusmtip1e05c22505112d3c95906e63981b56f34~KO7Ap0eWQ2927929279eusmtip1E; Wed, 29 Apr 2020 08:04:06 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH] video: fbdev: controlfb: fix build for COMPILE_TEST=y && PPC_PMAC=y && PPC32=n To: Stephen Rothwell , kbuild test robot Message-ID: Date: Wed, 29 Apr 2020 10:04:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHeXe2s+NycpyGDxZpC4UEb2k00qRAaAaFH/pQYurKg4o6bUdn VoQZlNjNTFcNo5y2qYUu70qKzlsXNSnNZTcdi1SYRt6a6MzjmeS33/O8z+99/w+8BCZ6yXMn kuQZlEIuSxHjAm5jr/W971JwZUyAysCTlE58wyTDC7O45PWd3zzJx9YSXDJ9zYRLKqwNSNLQ NsI/zJdeNRpxadviU6607NUUR/rjZh9HWq4awaVztbsi8ShBaDyVkqSkFP5hcYLEocFabrpe eGG+eYmXg7Tb8pEDAWQw6Ho7eflIQIjICgTDg/04W8wj+Pmrm88WcwisZit3U7HUjdsVHYL+ EZNdsSBY/nKXz0zh5EG4d6MKMexCyqB9vB1n2JWMhPLiasQIGPkcgaZIv34VQQjJMOgZiGJm uKQXWFUNG+528hT8Ge/iMSwkneHNI/NGCox0gzHzEw7LHtBkKcGYO4Gs4sOnoVGcjRoOi8+6 +Sy7wHRfvZ13wloLIzNCNYLVvEm73YRAd99mt0Pg6+AyzqTDyL1Q0+rPto+ApqYUY9pAOoHR 4syGcILCxgf2thDyrovYaW/Qa/X45rP5LZUYy1LomunAC9Bu9ZbV1FtWU29ZTf0/w1PErUJu VCadmkDR++RUlh8tS6Uz5Ql+59JSa9H6R3pn65tvRq0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eISzqmv6nrC69+u05faMTNZw/nVJdvK 6IVf018uuJi0qrbcttByprVIke9qqcnnfNtsshzbtjK4n7n42zVgtu3r/tNKLMUZiYZazEXF iQDxne+AuwIAAA== X-CMS-MailID: 20200429080406eucas1p21147ed99ad98332729c2a2aff2a33fb2 X-Msg-Generator: CA X-RootMTR: 20200429080406eucas1p21147ed99ad98332729c2a2aff2a33fb2 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200429080406eucas1p21147ed99ad98332729c2a2aff2a33fb2 References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , linux-fbdev@vger.kernel.org, Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" powerpc allyesconfig fails like this: drivers/video/fbdev/controlfb.c: In function 'controlfb_mmap': drivers/video/fbdev/controlfb.c:756:23: error: implicit declaration of function 'pgprot_cached_wthru'; did you mean 'pgprot_cached'? [-Werror=implicit-function-declaration] 756 | vma->vm_page_prot = pgprot_cached_wthru(vma->vm_page_prot); | ^~~~~~~~~~~~~~~~~~~ | pgprot_cached drivers/video/fbdev/controlfb.c:756:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct '} from type 'int' Fix it by adding missing PPC32 dependency. Fixes: a07a63b0e24d ("video: fbdev: controlfb: add COMPILE_TEST support") Reported-by: Stephen Rothwell Reported-by: kbuild test robot Cc: Sam Ravnborg Cc: Daniel Vetter Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/video/fbdev/controlfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: b/drivers/video/fbdev/controlfb.c =================================================================== --- a/drivers/video/fbdev/controlfb.c +++ b/drivers/video/fbdev/controlfb.c @@ -47,7 +47,7 @@ #include #include #include -#ifdef CONFIG_PPC_PMAC +#if defined(CONFIG_PPC_PMAC) && defined(CONFIG_PPC32) #include #include #endif @@ -55,7 +55,7 @@ #include "macmodes.h" #include "controlfb.h" -#ifndef CONFIG_PPC_PMAC +#if !defined(CONFIG_PPC_PMAC) || !defined(CONFIG_PPC32) #define invalid_vram_cache(addr) #undef in_8 #undef out_8