Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp11773906ybl; Fri, 27 Dec 2019 22:06:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwhltiRY3/7dW4KJa6btO+2La/cktaKslu6hu84+DWLFDX36dQwCw26m9LOTfYiDlwkGAVd X-Received: by 2002:a9d:6f8f:: with SMTP id h15mr58356005otq.1.1577513161306; Fri, 27 Dec 2019 22:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577513161; cv=none; d=google.com; s=arc-20160816; b=pGOu2siMmPrDklbzWblWYS7J96ZwFh2GZLDARVixnBQY/WcEN9GBCXYzLq+52Mu9Vi xs/LZUFnGAiTZBPyzCyVlFL/EojfyuI/qb5xGNSLakZ3XwnHfXrWQnK5HZnym9yqqwE5 /09V4zoDW3X7L64QCWb5AmF1F0+SzrNSxCzKxF56cE3u2DHm2X51WxknByYGU1JjcoVX h7sr6ZrXCu15AwT5DFMeRo4BlTnAsYpF/JpO6Al0qtrHmKIQ1XkSeFkDEolImOoHAzCb nYbswEJsMrKk0ve4caqAc+DJHymqb8TVumJA+MGpnnGfXXvw3VbFqFd5pAtnqNvPk9Bn DcIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=UHnltpIdmtv99s8Ay3j5EvPeMK+kCV0IwYbjU8qa/BQ=; b=BUV1BM5W25QfKX3stLdlbFKEFyU4okyXsoEGiOQSSeiWQTGs6OZrpdzwWQgjehj/pE orjkYKNbamFoJ1GZ1ZMcHoVcg11jRHN/fhSnKlvwKduyU+nDbUQgSjhJgVOXRQ/sV7Uz MZVvd/9Y5v3mhfwTxp+qVRrSCLTDUN6tBJ+olA/0WcQO0Sw1ny5ro9ck4P73+fYFjnMm +EP1w9bZAkQ2q0TMyaMyQYwonTmX43BC9pt6l+zZ9sV4FkfQvCaQFIXXIKz8e5btgDWC +5VWe1w7m0AwsUN3WXLo1gP+VQ30NjV/9W/LZZLYrjE4EDhnPR9uvVK1jqZoAhFUiRQZ 8hNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="mWj/glpF"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si19098962otn.100.2019.12.27.22.05.50; Fri, 27 Dec 2019 22:06:01 -0800 (PST) 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=@sifive.com header.s=google header.b="mWj/glpF"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726220AbfL1GEM (ORCPT + 99 others); Sat, 28 Dec 2019 01:04:12 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:51571 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfL1GEM (ORCPT ); Sat, 28 Dec 2019 01:04:12 -0500 Received: by mail-pj1-f68.google.com with SMTP id j11so5606215pjs.1 for ; Fri, 27 Dec 2019 22:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=UHnltpIdmtv99s8Ay3j5EvPeMK+kCV0IwYbjU8qa/BQ=; b=mWj/glpFDtAIfwZhhH4CK7iwQXoEUeQIBvq1iA4O1i5vo+04DOIUBSgRBaiXgQhRTE sdDT/PcTaE8AiqfD1g3/vvenTg7pK6PphT4jQwBVPge0EJdmtQFNyhM1dxvH5CZZXv4n eX4z8hnFHDb8TQhYAXM4JJ98D7nm5Ve0OAafk728w7BWmECRTFgsvx/nsVyfC/QwAYpL 7LuDtMllYUP9Ym8+JOrpIDVu4V+cCKRU39l8p2J/vAlJh6dfhcnt/422G8Bl2nWfv7IY 4WQKd1i7AdxedKDZCdCWkZ14Ad9/3Tlp4a6LSqBPYIe9BWVkVKULOZqUYBHqCrbqIV89 MCHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=UHnltpIdmtv99s8Ay3j5EvPeMK+kCV0IwYbjU8qa/BQ=; b=mBBCq9AEgqLzGKELH0eBd2KZXlKY3tR6sSuhKCeaY2yRxo+Whdjb5c2DD2wU+cXmaw r4a7rdkDPdXRdSCNFzQIbQtXs5DclchwtYu40iRd3sgfJ4zqMMOc8w4lPRdAIrmOqxrE qSr1yPto8PDxYvLWztToguT1xkSIa5GI7si1bhjxdlbqR9v/7uCp1+6kgFXhcqSoTKH6 o2+OaUV/GRdcsLKAO8whG7CQQAQPtaipYAGvLW1aNch+8wuKrrdiNDxfjug0WDnIhbgE FahfjbAQouQHeBtzekIo9N28tWDELQADQBaT/geQ3yVHelSYifqiOuunjn/LG5I0g5Nn Ibig== X-Gm-Message-State: APjAAAWMXOH+/MZ6cd1Fl8GW4RNb1l6mYayLVrZ2k3L6DP9ILhGUZhmE vcvKPlTIjclG/51k9g81bq6BjZIpypg= X-Received: by 2002:a17:90a:ab0c:: with SMTP id m12mr30393735pjq.81.1577513051649; Fri, 27 Dec 2019 22:04:11 -0800 (PST) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id q15sm39582730pgi.55.2019.12.27.22.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 22:04:10 -0800 (PST) Date: Fri, 27 Dec 2019 22:04:09 -0800 (PST) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Luc Van Oostenryck cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kbuild test robot , Christoph Hellwig , Palmer Dabbelt Subject: Re: [PATCH] riscv: fix compile failure with EXPORT_SYMBOL() & !MMU In-Reply-To: <20191222092604.92217-1-luc.vanoostenryck@gmail.com> Message-ID: References: <20191222092604.92217-1-luc.vanoostenryck@gmail.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 22 Dec 2019, Luc Van Oostenryck wrote: > When support for !MMU was added, the declaration of > __asm_copy_to_user() & __asm_copy_from_user() were #ifdefed > out hence their EXPORT_SYMBOL() give an error message like: > .../riscv_ksyms.c:13:15: error: '__asm_copy_to_user' undeclared here > .../riscv_ksyms.c:14:15: error: '__asm_copy_from_user' undeclared here > > Since these symbols are not defined with !MMU it's wrong to export them. > Same for __clear_user() (even though this one is also declared in > include/asm-generic/uaccess.h and thus doesn't give an error message). > > Fix this by doing the EXPORT_SYMBOL() directly where these symbols > are defined: inside lib/uaccess.S itself. > > Fixes 6bd33e1ece528f67646db33bf97406b747dafda0 > Reported-by: kbuild test robot > Cc: Christoph Hellwig > Cc: Palmer Dabbelt > Cc: Paul Walmsley > Signed-off-by: Luc Van Oostenryck Thanks Luc; queued for v5.5-rc. - Paul