From patchwork Fri Apr 6 14:28:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132922 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp854337ljb; Fri, 6 Apr 2018 07:28:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49w48zw00fsCaFHHIk8xZaSCe48Jh6SCwOSn8HbOCXIczhSf2HAcAGrupYa5qND9Q2W1foz X-Received: by 10.101.99.193 with SMTP id n1mr10758978pgv.446.1523024931929; Fri, 06 Apr 2018 07:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523024931; cv=none; d=google.com; s=arc-20160816; b=v0HJRWoJaieBxHDgI49MFBS6qQ7p6PX/LY7KeJY8Ci/UdBuKFeOVPBEjzwcU+1oWBR Z4QmftCpcCkCHREuvfWV/CL3vyOvUMKyzOir13et7W8c7hLsHtJsow/PUxR+lGBTuF+H P/qxs+m69yITtJQiccR2z242IVIIpyntjYJdHeZQ4vdBpheJPD9OtfKTauG1SW4V1oz0 reWuGDzXoM07qfDgg9u9awmACVBii0GJJoXoqc6PtjLpN5nxEdzpeG8NDqZv+h/ZpL/D P2CI+rINvzvd8Qhvg2naX4BFvWYXeNTlDrWjfmU0mnz2vUUCWjNK1GZ9iB5vVL1WSs5f doHw== 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:message-id:date :subject:cc:to:from:arc-authentication-results; bh=UhaMXdtqzfjMw2W/nsQVv9vj2HkHfGEFuxP0I8LwYL0=; b=GluZEo2sMEHhLqt5ysVrHPyXLdaiKoMqF/dm3YBg/RWIyi/39SThexcUkolVgahmgw 6Q0MtoDljQzR3lXGctTLQq1x6ctRasZVuLE5txmjzQvWUWGz8NvfJFWqtqkV2yA+CviA CM8FiTEPVjkkeD0oL3Ns4yhcxWWG74KYRL8XOfPYMkpxaEeR2/fknkyPr0rIz/tofoLp ueuiKLZHGA1c5ZWLFu4pKkB2jAakrNz5W51NYNg+MSsBoMFZKqEYNDBJjPyEeag7CES9 5j2kWRwsfrIUIsmDu1CmSv+m8hKNtSMJ/3tpuEe5tmuKfcKx6uBp/yyh/TTIC60sDjFG c3nQ== ARC-Authentication-Results: i=1; mx.google.com; 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 9si8155722pfh.242.2018.04.06.07.28.51; Fri, 06 Apr 2018 07:28:51 -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; 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 S932308AbeDFO2s (ORCPT + 29 others); Fri, 6 Apr 2018 10:28:48 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:34987 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756065AbeDFO2q (ORCPT ); Fri, 6 Apr 2018 10:28:46 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lafge-1egAEM1pKC-00kNlX; Fri, 06 Apr 2018 16:28:42 +0200 From: Arnd Bergmann To: Richard Kuo Cc: Arnd Bergmann , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] hexagon: add memset_io() helper Date: Fri, 6 Apr 2018 16:28:22 +0200 Message-Id: <20180406142832.2243021-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180406142832.2243021-1-arnd@arndb.de> References: <20180406142832.2243021-1-arnd@arndb.de> X-Provags-ID: V03:K1:s1MefovsIdd8pWGjCa6TN43HkaEmmf4A3xJeRZ3+U2oRPUtdGqp gESTipH8oYfBi4fzMLaOtRToqtPFHleZPi69+2u6X8oVKd1b0WnEqeRvHsm51gymVzVIvpq jtsAMH5Xo6Y9WQRyo6W0gNSi5f0OEe0VbjbtpAXMW1jD1Gil5FT8VTPcBdX9BzF+zN4cssG iW9gQ5xM0gyws7KmvVXxw== X-UI-Out-Filterresults: notjunk:1; V01:K0:5feViq3UTVY=:34EvZdnkSpNOrndEH9Pd2A HXEziwzQjISEsAC7MsqZYvA8nhJ3oo3F7HPwlwQT8hH/We+JkV0Se3c2Jd0Ci/VXdZe+qveU0 rMG+LDW6+oImBaOZtzsRqVPylhdippkEYL04T4QSbEhHFPhrrndwaUJyq4xfiW+5BZt8TMdxd SVdw12EHgUNXOryuy/WKipKquA/LfqOJZY85grA9bdSJyx8F5JVR3LwKwAqsTm923Eo67zh2C QPFauevFksZxWa9qloz0czEXPGZO9oipFp6CWqTyehd+K6CDHuAAjwAeiKrip4jdUlRQuiJGm +Y6dnxRm+dvj88jRTP4k2r+Mu4TqOK/NBvCqYifgMlzGJkB0xZi/W//e9LvSc0i8jAaBMqh47 wOTRclgK1I0DQ909vFQf7tEu+zTsgIGXgBpqzCf0z6CO/826zOUAh3fIWVNSdpfl0bKpc7r0P hgmFFpgZV1Sh82U2NT3BWltrsf4PjjV1biha5KYUkUqfpDdOZsAljh6X/eSr95PpaYAw+/Mxz 5l22iDTObURXQ54D4PrzA3VRBLWlwdePTUndt7/yBM1dGqa2/be5NoXeLV2Tsn9eF2+wDoP+X t7j50HT6WWyGh+KTtjG7BUTKWjVxdNtjXfyDUTmqA57mrSkAy5KuVGYjcdzCa5Xs1j34RIuvQ cmvRdSURvx3vzk8M4vkknvqlub4umV3fCOSZLOP5V0vqBxvxWkLCNsN05LtZO/MLC//ZHNgG5 uTZ93ky68RAfgGpkPUwZRsQz4i6L97uJQkGuOQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We already have memcpy_toio(), but not memset_io(), so let's add the obvious version to allow building an allmodconfig kernel without errors like drivers/gpu/drm/ttm/ttm_bo_util.c: In function 'ttm_bo_move_memcpy': drivers/gpu/drm/ttm/ttm_bo_util.c:390:3: error: implicit declaration of function 'memset_io' [-Werror=implicit-function-declaration] Signed-off-by: Arnd Bergmann --- arch/hexagon/include/asm/io.h | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.9.0 Acked-by: Richard Kuo diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h index 9e8621d94ee9..e17262ad125e 100644 --- a/arch/hexagon/include/asm/io.h +++ b/arch/hexagon/include/asm/io.h @@ -216,6 +216,12 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src, memcpy((void *) dst, src, count); } +static inline void memset_io(volatile void __iomem *addr, int value, + size_t size) +{ + memset((void __force *)addr, value, size); +} + #define PCI_IO_ADDR (volatile void __iomem *) /*