Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp839284pxa; Wed, 5 Aug 2020 14:11:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvaFUYxfpSslq9vxCG2ntzW0S8+oDXT7clTSdYyLRfuam8v0FEV8+GQhd9jqT2U8p10zvi X-Received: by 2002:a17:906:80d3:: with SMTP id a19mr1251061ejx.217.1596661876050; Wed, 05 Aug 2020 14:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596661876; cv=none; d=google.com; s=arc-20160816; b=fdvxVs32ixgsgOzUIxNEiN9dp3xSIpwf8kTPeOWWgYW5buGwgGjwPbkI55bXOOhJEu lD/uxhjxeHoC5BICWKckRq90AC6M4eefUzNoJrE1I8r1ntaK0xHrWooNqRxJvaXxK4wz NGZ9Fi303Dt4f/t7J/BpiVOg8hLBfB/5C+RlEGbHNq01reM4K0xJFvoTGpK1I/yM5lQJ RC/WEYCLdME8iXWiRxkwpb4xr6X54URYFLvYMbiO8qiYzRM9chUkekMfqHOaMs4pbQyr 7EapGmaCQE3c35W6pjhAb2vwLUrwB3YhspXcaxMUdVheoM6KmUZ8iEhJoHiBaX4DxUSv PQdA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v96ubfgeahRH8xGlTKbAfEYW4ILSGysT4Aem4Y+4DRg=; b=vE5rkcqAjvMHTpCcAcG4peXy7fdG6aCJmnap68ivbdfPXG5yf+3kjo7/7Xm1Qe5snt DNT5eCAkF5Fvj25Mk8Z9+xVU3quJX9gGcO6uaTyvSumehGzZbYUXr5QsFAXwJ5Z7berV bOzF7DNzGDjITgHFtf1Y1VWJF3/6UrtXJqHvN5IgokvmocIiORFwHHhUFi80thdkya2M s7y2/fCi7eANErLnaD8O04OE5yhTvq5T05temT4Kt+4J/SciEtBtEZ1y48NzEJIzRUO2 o8x3O+uaQHFbVmBwM0fCiqExMMRlvxjQMi3tDWKYpjGsmwEPzCRpH+5XtR50sB8PxMhC VK2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ra1N+hKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j9si1894215edv.57.2020.08.05.14.10.53; Wed, 05 Aug 2020 14:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ra1N+hKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726914AbgHEVH7 (ORCPT + 99 others); Wed, 5 Aug 2020 17:07:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725139AbgHEVH4 (ORCPT ); Wed, 5 Aug 2020 17:07:56 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDC75C061575 for ; Wed, 5 Aug 2020 14:07:56 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id kr4so5413474pjb.2 for ; Wed, 05 Aug 2020 14:07:56 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=v96ubfgeahRH8xGlTKbAfEYW4ILSGysT4Aem4Y+4DRg=; b=ra1N+hKoOtk5+DcbbgGsoMGexOPWfeNtvkB67fEqNZ2Q9sjhXGWHwfqltkBv70FmUH edugTkarOj9Qruhl/kueDS5bT0XcpPfmG2+piwt8FrxUHEvjRtWnlb4sgktLOiibURt4 AFjlIB7HuP45XcTk/Wuecxeh7Q8AiDYKGY8nRBs2QEUwB6ja+Tn/WLMNrFNmCxHvp+oX wXA0izQ5Ix8hh1nK8DSuSq84A8e5UocOJKAuF8fyoOob2byMo6h2HDF4egtWTtMv3o46 Odtu6a1y9ljWXJ1Qfph2Ej0DuIxaAdmiHklBuO9HEm1tQskfC03G3uBRTWP2SJyXCDG2 DuQQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=v96ubfgeahRH8xGlTKbAfEYW4ILSGysT4Aem4Y+4DRg=; b=rTPmPDDT46vIjdrtjaBiOFaGYGcG5jtJpEDZIr+/HnUH5bYm0KqJlf+Gw3p8QGLiCs /r98DgRvfBwfoKpLVK++ndmJuxi5Ei9TwobVcl1ruKWTIXgpjWHAaJK60aznGkxKqKke iVO67O90kEnHftHYISBrHFAsC/JDySg6V8nKBKetp0CsLpoMCYHdlEF8gVlroxN25QwY gUH0HA9g2tHfBN+hIQQq9Z4mS0ijhzzlYbMKpjlTaNQx0ErHZlHc7OrwRTNU5E7Nviiy 05plPtEWSi+rFnLm0d12ahSfw/ktLRwvaoUMFC1MsvbvPUB3TJ18FTe/5trnDfa7LNqI s74w== X-Gm-Message-State: AOAM532BEbomEWUxSqw1v3G9MF7hdFi+NpMHcBn9kYTdaifps8YD6xlh S9NuJ4d6st8muu8rn4CDlSJuzCFx X-Received: by 2002:a17:902:d303:: with SMTP id b3mr4916272plc.101.1596661676102; Wed, 05 Aug 2020 14:07:56 -0700 (PDT) Received: from localhost (g223.115-65-55.ppp.wakwak.ne.jp. [115.65.55.223]) by smtp.gmail.com with ESMTPSA id e15sm4101134pgr.39.2020.08.05.14.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 14:07:55 -0700 (PDT) From: Stafford Horne To: LKML Cc: Stafford Horne , Jonas Bonn , Stefan Kristiansson , Luc Van Oostenryck , openrisc@lists.librecores.org Subject: [PATCH v2 4/6] openrisc: uaccess: Remove unused macro __addr_ok Date: Thu, 6 Aug 2020 06:07:23 +0900 Message-Id: <20200805210725.310301-5-shorne@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200805210725.310301-1-shorne@gmail.com> References: <20200805210725.310301-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit b48b2c3e5043 ("openrisc: use generic strnlen_user() function") the macro __addr_ok is no longer used. It is safe to remove so this patch removes it. Signed-off-by: Stafford Horne --- arch/openrisc/include/asm/uaccess.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/openrisc/include/asm/uaccess.h b/arch/openrisc/include/asm/uaccess.h index 4b59dc9ad300..85a55359b244 100644 --- a/arch/openrisc/include/asm/uaccess.h +++ b/arch/openrisc/include/asm/uaccess.h @@ -55,9 +55,6 @@ static inline int __range_ok(unsigned long addr, unsigned long size) return size <= fs && addr <= (fs - size); } -/* Ensure that addr is below task's addr_limit */ -#define __addr_ok(addr) ((unsigned long) addr < get_fs()) - #define access_ok(addr, size) \ ({ \ __range_ok((unsigned long)(addr), (size)); \ -- 2.26.2