Received: by 10.192.165.156 with SMTP id m28csp710875imm; Thu, 19 Apr 2018 06:23:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vWWVew6o7/lT2J4woeZjnQPZuApnFaRsAUwXlXmUDSDQ+EOd6n/hWouIG4rwWIfD1Dn1E X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr6305682plg.388.1524144183519; Thu, 19 Apr 2018 06:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524144183; cv=none; d=google.com; s=arc-20160816; b=Cz7++AGS7tJ/GUFlbdEWM4zmqD9jZkzb3rTld0WXiwo8n64/xOvLQgoN6+4FC/6TEm zVhwip+12Ds/AvLmFrGyMOiydMv4rUT3sPi4V1Cv8uyzPi2HbXKig/9r4gWmn6oX3z5C 4Xld3osdy1mHfFmKFHCXOnTUVFQFPZH1kZmlDvq4JSEYMWbyd8aKSniyuyQcaOyINehk 8Q2pODUENQtl75Wfu04Y5RNagK2PqEiLDxDdhXrpE638ZU9oJXvQmWDm5zQCRLBLj1Db XbKz8sDql5t3McCqIDhrMl+3pFTwJCALnQyHWoShyvtCbAGCJq5j9/rPVc5PV4FG+CjC WyOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=2GZTnNPoY+icG+vmHyRkfF4BXEDsoACw/96GMueZUBs=; b=SgdHeJQ1nMvpXQ0EEnN2SrMWR+ILSuX6Q0jslbFktYSVlk3neEd2gqyHznH/Y+jsZR PEpz0+DZOO0AzIwEsB+fsC6Jy1VLgm7JVChGsy4z7xiaW1xpnQMl2SU5gjyC4cMPRf9A 90ad1vDzrYBvKCuamp0OXHPRkqnJx5EOTbLCEzmb9ZBlMsusTtN8+wXgy0lxIKJUI6QF CGYlYNnerwB71078daPH8TQ69xtXfPTlzUUjU5IjJ9D8DwamuMGkD+Ip2SWqqSbpzoXC fsaV5VUBMq3ObERIpg3RqzJfKKfU00IBFgLNtKDCyfiorvgS9SzoMOxvVa6v1qN8WnWk 3NUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gdl31T4G; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i63si3219431pfk.159.2018.04.19.06.22.49; Thu, 19 Apr 2018 06:23:03 -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=@gmail.com header.s=20161025 header.b=Gdl31T4G; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150AbeDSNVT (ORCPT + 99 others); Thu, 19 Apr 2018 09:21:19 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38352 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751169AbeDSNUI (ORCPT ); Thu, 19 Apr 2018 09:20:08 -0400 Received: by mail-pl0-f65.google.com with SMTP id c7-v6so3238584plr.5 for ; Thu, 19 Apr 2018 06:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:in-reply-to :references; bh=2GZTnNPoY+icG+vmHyRkfF4BXEDsoACw/96GMueZUBs=; b=Gdl31T4GeuINmq9XQ8m0uoo1gUkQ1dQjlgFW0UoCO0p/BGIZlnDBO7zjH6ZfkfZgWN YvHxNBX5GhUNSwwU01wnwBibLyr9VCqNbyFJMFK5N7CIENCtzCEgaif7C7kTJyg66kUY BYkPW0LcQLLDiF8LWfDaolC6Hkr3stCIXlHNcHcBwUCTgsXvw4mmMBMyEZqlJPeW+qgL gcikds8wUOy3ezmkey4Hb2ZatmjLiAfKoMPFjXwLOs4MhWHS6tOPrNqvOHgSf9edKabE mcGLNQaGE7Cr4krqv3wLPQtkMXAxt+dtnpzNYn2LGuEa9UsqnkeBiny9Cyaa5TH6vhXP jrWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=2GZTnNPoY+icG+vmHyRkfF4BXEDsoACw/96GMueZUBs=; b=neyryiln4mfuG2Yub6amy8yc26ntlS4Ek1pQNopZcGr8SVF9HHQbzUo30FX2WKoiwf qpToKZ+zu/QvTlQ8wsUNHaPHxq5p7Puzthk0Aobq9f+uASE3BCa1bd7a9O0etT35pWSi koAGgd936zsPQeS+CKDQzcvkjKW37YIoHSCgbwYVzljCT3Uxks3pZeDWjvwdCbnysAvJ +7r8divVUgMSrcu0lIUXg6D9DHTh22x0gM6gIZH4YKEqyOAFbkHyAN04hzOpm87xxLGB exXnootiQPpW2TmClQNmuv2o6Hr/Z+mVJrrNmT2Tjs4U3PRyGeMYxDQi8h2UPCDvHGvg ADug== X-Gm-Message-State: ALQs6tBsZEolp4AYGI3eMiXTx7DdwLfk70hU0oYNXS0QCdKPyrmSvf+B Dq8n3jadYJ1dgNO5808qtjX5iw== X-Received: by 2002:a17:902:a582:: with SMTP id az2-v6mr6210038plb.210.1524144007289; Thu, 19 Apr 2018 06:20:07 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id e87sm7863891pfd.136.2018.04.19.06.20.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 06:20:06 -0700 (PDT) From: Greentime Hu X-Google-Original-From: Greentime Hu To: linux-kernel@vger.kernel.org, arnd@arndb.de, greentime@andestech.com, green.hu@gmail.com, private@roeck-us.net Subject: [PATCH 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED Date: Thu, 19 Apr 2018 21:18:10 +0800 Message-Id: X-Mailer: git-send-email 2.16.2 In-Reply-To: <347705ade75b5901537034561fd67311b1260358.1524143428.git.greentime@andestech.com> References: <347705ade75b5901537034561fd67311b1260358.1524143428.git.greentime@andestech.com> In-Reply-To: <347705ade75b5901537034561fd67311b1260358.1524143428.git.greentime@andestech.com> References: <347705ade75b5901537034561fd67311b1260358.1524143428.git.greentime@andestech.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It broke the 'allmodconfig' build. drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_mmap': drivers/gpu/drm/udl/udl_fb.c:183:52: error: 'PAGE_SHARED' undeclared (first use in this function) if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) ^~~~~~~~~~~ drivers/gpu/drm/udl/udl_fb.c:183:52: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [drivers/gpu/drm/udl/udl_fb.o] Error 1 Signed-off-by: Greentime Hu --- arch/nds32/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h index 6783937edbeb..d3e19a55cf53 100644 --- a/arch/nds32/include/asm/pgtable.h +++ b/arch/nds32/include/asm/pgtable.h @@ -152,6 +152,7 @@ #define PAGE_CACHE_L1 __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE) #define PAGE_MEMORY __pgprot(_HAVE_PAGE_L | _PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE_SHRD) #define PAGE_KERNEL __pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_E | _PAGE_G | _PAGE_CACHE_SHRD) +#define PAGE_SHARED __pgprot(_PAGE_V | _PAGE_M_URW_KRW | _PAGE_D | _PAGE_CACHE_SHRD) #define PAGE_DEVICE __pgprot(_PAGE_V | _PAGE_M_KRW | _PAGE_D | _PAGE_G | _PAGE_C_DEV) #endif /* __ASSEMBLY__ */ -- 1.9.5