Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5108842ybl; Tue, 10 Dec 2019 00:11:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwaCgIh45snDwX1JDSzaxwxIH4+qkHcKsv33tv6HAjuk7Y2RzgoHwcIkO55PMmZYl6J8odS X-Received: by 2002:aca:4911:: with SMTP id w17mr2913313oia.22.1575965460865; Tue, 10 Dec 2019 00:11:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575965460; cv=none; d=google.com; s=arc-20160816; b=NmAqeniXKTKYsQFpoQ6BQmHstNGbvKyll7rzHQGtsvFKTZOkpn3NTxy2/yjUmZ2Tpd DfJX2S98q89eXK/JJYKw/o4deFflegL5FPfosLU3gb/f/KFyJP7pZnjvqdKORoBKmqLT mKwo6jCVgm/F6Axdarh6FqL/0i4SLsA4gkKG0H2QSVGOr8RnNZJrHI6NOUqMOglCGBAz 27EhgK3+qedtjPppthZctxdXkdaB9gf5ZgE9aaUraIp/UP60m8iy9xM+jzsgGvqUGAw5 3+iYtjJY7Tl8zfWOz5NT3E8JhwJ+hhJ3tEenymVNeGQBjQAfMa+Ow8YCW4i+jRPW4Y8N Yo/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=npgnC/M6weBM9U5t1QrqcgCAOt54Yrn9ohY0tdJFDi8=; b=JUrewsWHNKB028itC+wqWo6qLP7/qJpf5FW+fScvrcU4F/63B36O0LKv/eFRzBbG2S k0slzLMuYkg6j9q1/UlTJuSwyzIcOcv9kywEUsHc6LaIZy6w0WJgfCv7nWh6x6lQxhHW +ZHaEPGuAfVIKuMaC22e1jVQbVnbDt+0yRWYz09jUhruMUeqx1ELrcw74qXs5ahcwumh vAUVlz94ae1CXMQC/eAyJNz0XWQ6szuMqLwU2GJ0l1nz8RUnLNKMnmBo/JdtSw1ApfvN +y5XmuE7DvKlLVu4L5tucPut9QsfzKiwGeUaST2IlfZWktyIvAwYPq0dbCOsnv8jn0ru BldQ== 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 n65si1488792oib.262.2019.12.10.00.10.48; Tue, 10 Dec 2019 00:11:00 -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; 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 S1726915AbfLJIJS (ORCPT + 99 others); Tue, 10 Dec 2019 03:09:18 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:46632 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfLJIJR (ORCPT ); Tue, 10 Dec 2019 03:09:17 -0500 Received: by mail-oi1-f194.google.com with SMTP id a124so8951104oii.13; Tue, 10 Dec 2019 00:09:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=npgnC/M6weBM9U5t1QrqcgCAOt54Yrn9ohY0tdJFDi8=; b=imJ8gBKuldqCO7Nt0OP4JEBiipOJhRi0phkd8kGYDAA2hWgoT88e0yhQnZhSeq0J8E UdpfuW7emxP1usvpipAgT/BwtSa4r7iLJlL5eujmC1jpjpYmo/WRDSjzxOylYQaGi2jq OOsx6I8zW9oe52m828YLltCV/kfKBbBMU2NQIYbB4d6AoihwVkah8prCc3X2NfWY5XMn jw8JC/KR2Jj6be9JPoxSjsVQW9N+PtYz+eoaBS/vL8FtQULDzPu3VFGNfqKV51zZRQHh 0vr59zJ/ZUGBoKN3jtXkK15ZQMEwPbKQd80da8OEj87cmLtw6DnyW1PEKZMbn4hBaJ35 YuuQ== X-Gm-Message-State: APjAAAVhf6CtBX7vJD3MWf+HhCo86ngoVEFMqzhZLtFA/J4VFzo+qDjI mO9qjLD4SH78D0HPq8Sbx2Ic8VIWp71Tg+CM/QQ= X-Received: by 2002:aca:48cd:: with SMTP id v196mr3035210oia.102.1575965356727; Tue, 10 Dec 2019 00:09:16 -0800 (PST) MIME-Version: 1.0 References: <20191209222956.239798-1-ndesaulniers@google.com> <20191209222956.239798-2-ndesaulniers@google.com> In-Reply-To: <20191209222956.239798-2-ndesaulniers@google.com> From: Geert Uytterhoeven Date: Tue, 10 Dec 2019 09:09:05 +0100 Message-ID: Subject: Re: [PATCH 1/2] hexagon: define ioremap_uc To: Nick Desaulniers Cc: bcain@codeaurora.org, Lee Jones , Andy Shevchenko , ztuowen@gmail.com, Mika Westerberg , "Luis R. Rodriguez" , Greg KH , alexios.zavras@intel.com, Allison Randal , Will Deacon , rfontana@redhat.com, Thomas Gleixner , Peter Zijlstra , Boqun Feng , Ingo Molnar , Andrew Morton , "open list:QUALCOMM HEXAGON..." , clang-built-linux , Linux Kernel Mailing List , Nathan Chancellor , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 9, 2019 at 11:30 PM Nick Desaulniers wrote: > Similar to > commit 38e45d81d14e ("sparc64: implement ioremap_uc") > define ioremap_uc for hexagon to avoid errors from > -Wimplicit-function-definition. > > Fixes: e537654b7039 ("lib: devres: add a helper function for ioremap_uc") > Link: https://github.com/ClangBuiltLinux/linux/issues/797 > Suggested-by: Nathan Chancellor > Signed-off-by: Nick Desaulniers > --- > arch/hexagon/include/asm/io.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/hexagon/include/asm/io.h b/arch/hexagon/include/asm/io.h > index 539e3efcf39c..b0dbc3473172 100644 > --- a/arch/hexagon/include/asm/io.h > +++ b/arch/hexagon/include/asm/io.h > @@ -173,6 +173,7 @@ static inline void writel(u32 data, volatile void __iomem *addr) > > void __iomem *ioremap(unsigned long phys_addr, unsigned long size); > #define ioremap_nocache ioremap > +#define ioremap_uc(X, Y) ioremap((X), (Y)) Do we really need this? There is only one user of ioremap_uc(), which Christoph is trying hard to get rid of, and the new devres helper that triggers all of this :-( https://lore.kernel.org/dri-devel/20191112105507.GA7122@lst.de/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds