Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5474370yba; Wed, 8 May 2019 14:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUnqxBVdxhfO75MPE8T2Mwqxl3K1CH5rdOcwOtbWdvcOmngR8WY5KLnuKYV5vYfg5rZfzt X-Received: by 2002:a63:5cb:: with SMTP id 194mr382089pgf.294.1557349502628; Wed, 08 May 2019 14:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557349502; cv=none; d=google.com; s=arc-20160816; b=NBqu3RyVCoOsyvrnPnlAdiqxohtW+eP2K22R52WsJ9ki4vAMJ2gIgNEFAZzckAEoiH lcqL/CKBw1/Pv9P5NYthuswU2iEx1XaoS7w8CJbofUA1TnvamkHKWwXt4MOjuuMEKlpz 9BEP0bdn/PV1c5x+RFw84XJQ0eKS7Iq2DrRuM5P2t3yaaSLG3lsGynbOJLblhJ2r60lT QDwkKFnxIpclWyGdwkzFu7woZ61pQztg7T/fI2O+oKCqVkMd+mLp/EzZ41rTmBZwA5jA SnENJblL2Q2dp6X1zTnvJAFcWd2YdJuiHoXsH+42/HKVP4HbpypctqVd6IsD//mV9GkE TDLg== 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=EdHQ2fN9PmYyyKfWtvF5eYBZ95JotNTRJaQiGnwT22Q=; b=OKw1SWewdEfACztSRf02QdS/RialHnl09mrgXdhYG7Uj6eOJQH7mg+Hepzd7ujXz0t WuM5jT5Ipq05SO9tWQHIwd0w3YY76u059qG2MGbD/dQGLUjGvDFPxLUpZNsZ1mBzMpQV FN+RVKG2ZHh5YqO+SlAraK9vgao6FvOKjdJyhurmvHGAc064Z2bS4YtqouqiWPnO7oWh pSK2yMddvZGtDJyJDGSdIfj+03bh1+/Nuo4WCm01THlcwoQeTC6gE/qZ8WK4shCIT7dZ Py+JvDs0rm8YMw6dlRDR3BKwWy48dAHpFm98Z8jiAHlyMU6eLiUsLUFsKUiX1Coe53HR G2Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nB5PfQEz; 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 n1si3127685pld.61.2019.05.08.14.04.46; Wed, 08 May 2019 14:05:02 -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=nB5PfQEz; 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 S1727556AbfEHUzp (ORCPT + 99 others); Wed, 8 May 2019 16:55:45 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43690 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbfEHUzp (ORCPT ); Wed, 8 May 2019 16:55:45 -0400 Received: by mail-lj1-f193.google.com with SMTP id z5so96846lji.10 for ; Wed, 08 May 2019 13:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EdHQ2fN9PmYyyKfWtvF5eYBZ95JotNTRJaQiGnwT22Q=; b=nB5PfQEzy7OJ7F4ijNv3ammizGHtT2f6SwnFsNgo1hS/qK94j1nbkEtPpdRPqm0qoS UhyFFgLmrWvr/bjASQYCwNGzqZQ7QfTlc7zTsuI04bmZTEIdCbQN+BtGavqQAE4fRSLc qWufHDuuvjb83rN7UiVIkSBCOjaj+ai5oLQm6woOtVlGmEEMTj4Q079HJM7SJckKmYeT x6QCwhXEOQ0LC7ZxCB7b+Ng7lHhx0sICanN4YAnSNv3pPS22+/SX94ghijuxtVhQebLi 3E1oNsy+nMBpizNgSMdXKoxxCdQO/9+b62MkJ+uiBAjylV05a6O44414HXkjN5MOiJh8 qT1w== 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=EdHQ2fN9PmYyyKfWtvF5eYBZ95JotNTRJaQiGnwT22Q=; b=WCR4oMPItpjITIVFEQAV85RT7GMrcxZXBaRuA7bq8nB1jmgEbRHloqRlxoFxRUFgMr 0OjXoz3YLCCHyg+zHX5h5VX9g3wmmTmRPmwGCzY+tRiGzgLsMyx8HOSd9LaLkH2j7W+i 61bw4OzmSpOkL/hx/LAXq1P/TfMKSHEj4m3dGVnsCvBWMATX53NurubJqomw08hfQsu2 mXAngVONgLPjl78ItnFtCALisakMX1ZRPdy9tqdxZ2shPpDGDJER6Y2AOUMwNwKk4jgC 9nnzIOPbmEg1yepQRJN7BeNT/XyerF7laXsPvIq/ytzPb2bSdJlWwLpWRzOxBf78tAfp w3CQ== X-Gm-Message-State: APjAAAUW6JixknAyfmVHshWAS5Zt6NL+1kXLKELkpAe85aHdBwFZtdwZ QTn8xrDiwqs7+vziVopeD9n1wfZ9 X-Received: by 2002:a2e:568b:: with SMTP id k11mr8084177lje.124.1557348942803; Wed, 08 May 2019 13:55:42 -0700 (PDT) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id p18sm4833697ljc.54.2019.05.08.13.55.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 13:55:42 -0700 (PDT) From: Max Filippov To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, Greg Kroah-Hartman , Matt Sickler , Max Filippov Subject: [PATCH] drivers/staging/kpc2000: fix build error on xtensa Date: Wed, 8 May 2019 13:55:13 -0700 Message-Id: <20190508205513.11312-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kpc2000/kpc_dma/fileops.c includes asm/uaccess.h instead of linux/uaccess.h, which results in the following build error on xtensa architecture: In file included from drivers/staging/kpc2000/kpc_dma/fileops.c:11: arch/xtensa/include/asm/uaccess.h: In function ‘clear_user’: arch/xtensa/include/asm/uaccess.h:40:22: error: implicit declaration of function ‘uaccess_kernel’; ... #define __kernel_ok (uaccess_kernel()) ^~~~~~~~~~~~~~ Include linux/uaccess.h to fix that. Signed-off-by: Max Filippov --- drivers/staging/kpc2000/kpc_dma/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000/kpc_dma/fileops.c index 5741d2b49a7d..0886ad408b0e 100644 --- a/drivers/staging/kpc2000/kpc_dma/fileops.c +++ b/drivers/staging/kpc2000/kpc_dma/fileops.c @@ -8,7 +8,7 @@ #include /* error codes */ #include /* size_t */ #include -#include /* copy_*_user */ +#include /* copy_*_user */ #include /* aio stuff */ #include #include -- 2.11.0