Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3271350pxa; Sat, 8 Aug 2020 16:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYLSVp+ULo4SjRWxl0DegcEP7KcGrrF15np5vavML9KFHyvBqdgidTvrNrsBeaRFRpNrrr X-Received: by 2002:a17:906:c1c3:: with SMTP id bw3mr16338434ejb.8.1596928136233; Sat, 08 Aug 2020 16:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596928136; cv=none; d=google.com; s=arc-20160816; b=tAt8sjmErEoyDyIHtV5WPjtfZ6Fm47Gm000YpAdSg1lrPA0XiQSPhvdvWquHRFYTWO RmRamly/ybR/hlYzv9wcASW3d6m0hDTWu+jP1Y4iTpzSu05XLifh4mKfiNHMpYxlYZOs +Wmfzm1ebp8HwCs7U7aFyt+5xoHo9/VZ2SG18OtwrHZVVNyL7+bely4C9OAg9kBhL6iA 3ZEC3eToBBt1HCIxwHhP+H2tQVfYrG6B/gGDrprqBjXUJr+6qvTMO6iubKwtRZuxo6jM e6Bm7Zy/RZLAaJtKSfM2zblRWskqt2hkTUeBAKMu81TD031JHIHyAncAA5aMEg901JGm oZVg== 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=LCNRQQUye7eVJyTlhRFDCIy5nNEsEP0fn7aw9o1dA7zXDgre3pJta0Dvwgi8ayurET C6YgppBeyavv+uxp6VHPVJtLrFi75detsrNCCC0/fYxEE23rNoKKFUAF34oc9pCAVdMp 5TwvMyfYT9ZCcLjtOIA8V+lAMKqqJLFjdAjRrxFeZfnCFXK4n9eNklGSxMfa3S3RuSB3 lSF9DQYVnUR8fFIdvjyZO1YNkXHtI25WpNX5a5BzuMn0745U2eIaS4gNYqQ81vggJU/m WDg0beAofeBucpG76Twu6kufLpsHN8jMIkjeR0pg+us8d1BMSr5MoQBpUBCPXaaWq8VR usEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UHGfQeun; 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 z61si7958760ede.593.2020.08.08.16.08.33; Sat, 08 Aug 2020 16:08:56 -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=UHGfQeun; 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 S1726426AbgHHXHO (ORCPT + 99 others); Sat, 8 Aug 2020 19:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbgHHXHM (ORCPT ); Sat, 8 Aug 2020 19:07:12 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFFC1C061756 for ; Sat, 8 Aug 2020 16:07:12 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id o1so2927406plk.1 for ; Sat, 08 Aug 2020 16:07:12 -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=UHGfQeunoKI8TNjHKhq6SxtCDj5fRbVumwksNu3M9FGkMO6gL1/x0kIzB8W7Cd6xvC Z2Oimsgnq86gMnsjsqtv02x+WZh7c8Ac8OBbb4t0WL06XnuAoslC0tlV3FKYbTAdVFYx UByIxR5jVfnlE4BeNlWoopWo2DclOAZ4iK7++jE3Yu44JPdr8B0pi7IBODNeyJZcM1Ip CoZp9SADztLGROWzKjp6Argqzxcu6f3GjCMYxQR1dL6Lo83QnnlqKaId+S21rHh33Pd5 qF5QwOtS633lncxiwnnkIencIZBK53Z00++fFNoNawpu6vc6OexGut+plnUdgyKLjTY/ 7fcg== 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=M6KvSW3iN0kcork1gfVTzGKMiLgJVNfZfkaQRslKEc1BwSJFw2ihrUCwfyyHyJphH+ 1ibvs4RXCQCWij7mDVGS0E1aTSeA3TyTG4GUIM784eHQZaGyP9kOGcG4r0FGuyEP5KDv cFxSYTAchwueEfseE73F+w68flQGoKxckMl+SQJF3tWN2qoZC71aJs9HZhrXBMXLkk4i DsC5hk+rve2j/81NwR1RXzBCPPKlXgY9N6ubDCzbhuhAGkwWurh0SI+viGtE/yCZ6GNs ACJ7EvlAL+jxZ53SNyJ0KOhsNWADRURqGXp8hi1YxQnrmaEuZkmUU/Lmedij3YEWb85f eTEg== X-Gm-Message-State: AOAM532gldD7hSBnmbZ8UUsq1YPP4I5tn86luLQPutyd2SnhLvRmJy+B 660lCDBQX6os1htr9VurR5MXZZP7 X-Received: by 2002:a17:90a:8a90:: with SMTP id x16mr19978495pjn.89.1596928032077; Sat, 08 Aug 2020 16:07:12 -0700 (PDT) Received: from localhost (g223.115-65-55.ppp.wakwak.ne.jp. [115.65.55.223]) by smtp.gmail.com with ESMTPSA id 144sm17368728pfu.114.2020.08.08.16.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Aug 2020 16:07:11 -0700 (PDT) From: Stafford Horne To: LKML Cc: Luc Van Oostenryck , Stafford Horne , Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: [PATCH v3 4/6] openrisc: uaccess: Remove unused macro __addr_ok Date: Sun, 9 Aug 2020 08:06:45 +0900 Message-Id: <20200808230647.833047-5-shorne@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200808230647.833047-1-shorne@gmail.com> References: <20200808230647.833047-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