Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp129700pxb; Fri, 15 Jan 2021 09:06:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGK0DOJGBo5tU81WsOUgIkKtDKxY271x028Lb9dN6cRDZwmFl/IlYYw2uNycNqRsEJxteq X-Received: by 2002:a17:906:5e45:: with SMTP id b5mr6437215eju.69.1610730412085; Fri, 15 Jan 2021 09:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610730412; cv=none; d=google.com; s=arc-20160816; b=K/aBQATbWCmzvCp8eNhnVLZzhXDsyvuZgW1GHkqLPEmHahI5BuWm3zNM5b7ChOYskk lY+CHuvyXihzyPHVPxiUwqBODalalYXHfISoI3nKYnq6K0xApH5U6O3a8qzLjqJ5lRpF JfZOo2KK56a6FQ9PRQvialB299/5Be8OZLl9rGX1Ffpcjix0qci3u1xYIaQGmXe5BMdn IotkcsEB5NEU5Z84jKEXthGZ3Oq7GpQMHbJNdkTjNfmqh9df5ePuNM4tq7BVGY5bugK2 XfzUFUdi7hJoRQe+hg+IFW4Yh6WJmFZVp7DOLq+kDg3OgTgepA2eir78BDdvzRsvZj8k LhEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=f1YGttLjRqecDr7JF2hMl82IS/wiEsxDzDLIMrEaZoc=; b=wQv+Cjvfs8B8euhhfguZnkHVAeVyT5Tfcx0i8y4sJ8dgnJzTFzk4FZrN+6Hf+49evU gdHwM8aPQefigpi6yjB0HJ8PCYp61aSbAEmv4CZ5olOaRXawjeXD33vSQJP1VttmpfAg stHOLOOOUkxTS/ReSLmx3oF2SpLZB2P+ul+C7UEW/6ujHEUcNBFeT1UBigf7H0ugqBxk EqlxphcIVPmcYgWShQg/vz9/XIo7FmbhDo5vqn4P6zhvIYPE/MrpWw6mzvAGNZRI1+DN 7IENtH9m/42WM9MfJrNA7LTa47N+xVJQ1tVh505kBs9tHMz9moJfc+G3rgAzyPw/g6wl h24A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da4si801135edb.389.2021.01.15.09.06.19; Fri, 15 Jan 2021 09:06:52 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728310AbhAOREq (ORCPT + 99 others); Fri, 15 Jan 2021 12:04:46 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11546 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727808AbhAOREp (ORCPT ); Fri, 15 Jan 2021 12:04:45 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DHSCy3tRQzMKdS; Sat, 16 Jan 2021 01:02:38 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Sat, 16 Jan 2021 01:03:47 +0800 From: John Garry To: , , , , , , , , CC: , , , , , , John Garry Subject: [PATCH RFC 2/4] asm-generic/io.h: Add IO_SPACE_BASE Date: Sat, 16 Jan 2021 00:58:47 +0800 Message-ID: <1610729929-188490-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1610729929-188490-1-git-send-email-john.garry@huawei.com> References: <1610729929-188490-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a fallback default for IO_SPACE_BASE (at 0) for when an architecture does not define a value. Signed-off-by: John Garry --- include/asm-generic/io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index 9ea83d80eb6f..4d74a0c696ca 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -448,6 +448,10 @@ static inline void writesq(volatile void __iomem *addr, const void *buffer, #define IO_SPACE_LIMIT 0xffff #endif +#ifndef IO_SPACE_BASE +#define IO_SPACE_BASE 0x0 +#endif + /* * {in,out}{b,w,l}() access little endian I/O. {in,out}{b,w,l}_p() can be * implemented on hardware that needs an additional delay for I/O accesses to -- 2.26.2