Received: by 10.192.165.148 with SMTP id m20csp272151imm; Fri, 20 Apr 2018 06:35:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tCURMZlaJZgErfbtrV51BA+d9QVyPNgzajtgTt2wUqcbk6kTTfIbyee8v9H5D6mPOTGvI X-Received: by 10.99.109.129 with SMTP id i123mr8658541pgc.319.1524231358639; Fri, 20 Apr 2018 06:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524231358; cv=none; d=google.com; s=arc-20160816; b=AgtpbdLJj0APX2Kz81rNb9gph7vQ0wFTHLEEMHAPpfswYtdaPmvp2dxrguEg77lEAp 5Fs4K7bRtQuCS7kho/0T8hL3YeJNFWDpDCGwlvAYynna6UrfrMPBnV9DEiB/EUFL1Y5/ ALjA3D37XoQwdUQP3mXLhfzjKz7PsJidL05lkp74h2DkMa/I0zwE6KtQmA9r11Z+iXni vZtRzddUApnVsO6ZXMCyJ6Mr0MlGNRvNH3Af+Lk8AMn5ahCsyGbpxJBzFf5cAmZjfVre 8i9cIT8Jv5zQqZLvAssLJBBdbe+z2UlcwG4/PVr+1cFtwuazL+d81GEBvmQTH0WXV9h9 qOeQ== 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=UElcXt0ypi3V3Ug8fZqFmFm4O6TQBmUAEsrgBTTu2nw=; b=jEbkPKZVROMJE/iDVwzjjN4ZxxNzYr1/j0Ms1CwBMMam6Q0/XcLL95A1y7gste7nMA dl5K7zHUwWFs5L5CUIXFe5NvyCarCXqKFdusFopC6mKIzNNufs0n0Rwcp8wmn8C7qWu/ 9Q6wUvqNo0UMI3c1+I8Jq7UuZ3DlFw/oGWXnksKTk28E8FA6HwBD1Z3WiOn5GXsq0ElZ HI/WEcriP7rHKF7e6OXLj/DR7do3gkJ86tdQEY2Y9+F+inIhSGPBTW75Mt3/ILQCQ2hY XHJ911ODEKrzrTgGeMxciaO6VuAYo5Gc63gzWIFJ0NNf2JsPIa5jh8Pc7cJr/Ggbp+z0 OQKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i+f62WGV; 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 b9si5681866pfn.100.2018.04.20.06.35.44; Fri, 20 Apr 2018 06:35:58 -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=i+f62WGV; 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 S1755153AbeDTNeg (ORCPT + 99 others); Fri, 20 Apr 2018 09:34:36 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:44028 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755166AbeDTNdJ (ORCPT ); Fri, 20 Apr 2018 09:33:09 -0400 Received: by mail-pg0-f65.google.com with SMTP id f132so4053004pgc.10 for ; Fri, 20 Apr 2018 06:33:08 -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=UElcXt0ypi3V3Ug8fZqFmFm4O6TQBmUAEsrgBTTu2nw=; b=i+f62WGVstk2nZr9287XLYVb70TiU8zMR1GwMEKHSp9bXgDpcERQE4twxfBtsLimWx fQ0xcqIs0tTg1V65KCI1FTchl70HNXls0j//RHIrtM77F1E3Il3yCQ+MtW/X6h9SzsLT jvscD1vUE7ItevfV6xau2Y7tNuKGTahEa1j6icMh625AkHeOD/Hc0CSMPHydtFTtC4T9 7/Lvi0pIjoNLOQH6C4rekpV0K5X4FGhmni3WIaLsBg923M9LuNTW8CzLdC41wo0cDdEv LbO1cSShiPJQPzjdeHaPJAVrAq7GEed/CArow1XDY5uKWQTXfiCR3PrrQYyvA9EnI13A hnWg== 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=UElcXt0ypi3V3Ug8fZqFmFm4O6TQBmUAEsrgBTTu2nw=; b=e1jRnrF40bsGNBrhjxsbKWWDS0sFxXKZI2Hp9+sBCjzJskWWL0PPVks+yK24FBapov IuETWNhSsqxX/m1mNj9CPrI+9UsOD3YaBO/3GF9NWSac+hORHaEdtOjlf28YpR0zcrm9 oH/1VNQYgv9+o4nbD0tNNZIsCQaPkacoEsOTUa4VAodj8mwRfOHDdGJqu3x+IBi/qC9X 5CvFF4FvCurHy2OBgn5JN5F9P3VW/g9RMvSGkwemwiXOyKUrrB8Re93XHIgpVX/0kk4Q s8sNkh9gwzGnlTlmpjzjijuUeMh5gq4HeJ5sPFe3nUBEpwwf9F4CXsjPS4UCjXGeP/fI rv9A== X-Gm-Message-State: ALQs6tCb7D3xpjGnrplVc0nqHALibyFzhmepjZuReLrkbQWdA+ZCjTtT XUQuRT0Xnn3KAMEq0krRBx/ARQ== X-Received: by 10.99.170.72 with SMTP id x8mr3493598pgo.398.1524231188232; Fri, 20 Apr 2018 06:33:08 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id g11sm9621319pgu.56.2018.04.20.06.33.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 06:33:07 -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, hch@infradead.org, vincentc@andestech.com, nickhu@andestech.com Subject: [PATCH v2 4/9] nds32: Fix drivers/gpu/drm/udl/udl_fb.c building error by defining PAGE_SHARED Date: Fri, 20 Apr 2018 21:31:10 +0800 Message-Id: <9d2383486ec59d7e37cdcb6359ff62b3c368e4bb.1524229039.git.greentime@andestech.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: References: In-Reply-To: References: 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 Acked-by: Arnd Bergmann --- 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