Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp166694pxv; Wed, 30 Jun 2021 02:43:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywAUDryJ3/i3kqKNy/0lfZhiDIOIYQ9vpuFKIMp+MRTZp7O/8tWV+yO7IzH1TR53lTN93t X-Received: by 2002:a02:666d:: with SMTP id l45mr8446655jaf.0.1625046206391; Wed, 30 Jun 2021 02:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625046206; cv=none; d=google.com; s=arc-20160816; b=GI7sQ9q6cEAWacsf/mK75O9GMmM/+krwL6aeh1wHrObkpMQzZOiDg2HSkAY5Juj0SW fRv/ArNWsCGGFVo0sT2BB/vnsB8jNq0RaaLPtkmt9RAyC70FWzsdG465AHK4UzmoeRTN GL4GqFkcaNfTZnqBsNtFkMWewCXfiEuamV1BfbgjAoyQAr6gjh8Vf5GmsA7QzDBXfbYb XyrUfiNZ84lF7mrwJzJDePGBOYEXEzd0JVn/XHp7psGjW8vi13yESfa5+3OlIrybw/Yk AiqVqF6qc+dKEcyxZNOf3MxFbGAvhW6if6qPZ3RpoTbuuqRhiRk1CDcs7JhxGfElKrIb DFnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=xl5NeFOIsI3Sk7MVUzbxj4kzQalIdqLW+9gbaGWjxMg=; b=yxTDVayZQo+t1JoyVzzpj9VwPgfCETqNdU7oywoFcOTXKLn0wcXdS8YFBeBlxbUI5X M6SvqbhlBEoAEegejuBgS95z9f/3UWfR5n6FXF4Metq7E79J6Wq6OZLVdZZyeM1LgnFC 6bCox54J2F6eNKYwr3HWNHhjTYa+uMzzdm/532rLociTAxtHxKglfMERbZgVMusKB63u 9CqIsgtXP7ezt8WZLQQGJoeTDX7qVSQTStVWKw3Qv323lsWKm5pHQANbrJ++QCmQ7zb4 3GLlN8GhKhlvOaw6tGaRQimWmF2rL7g7jRcvGGjbE9g31p0f3YK74ZlxydCS0Mr09UPb ikXg== 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 r14si24720564ila.121.2021.06.30.02.43.15; Wed, 30 Jun 2021 02:43:26 -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; 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 S234007AbhF3JpB (ORCPT + 99 others); Wed, 30 Jun 2021 05:45:01 -0400 Received: from mail-ua1-f46.google.com ([209.85.222.46]:36631 "EHLO mail-ua1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbhF3JpB (ORCPT ); Wed, 30 Jun 2021 05:45:01 -0400 Received: by mail-ua1-f46.google.com with SMTP id g21so795780uaw.3; Wed, 30 Jun 2021 02:42:32 -0700 (PDT) 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=xl5NeFOIsI3Sk7MVUzbxj4kzQalIdqLW+9gbaGWjxMg=; b=NjB/ipHPkuZwjlJvzsM2dDo6egCpSMuFrDLiDGT1MhvaIQl2CgJhsAlAoiibJfXs4R F/PUEztxFu1nj/6RI/V51S0XcFsoGDGpQ+++gQUHORUIr01icSp9ZKajsyzmYGoZ4Wre L5tweT26w0oJPvHgFa8FMA3OLellsKWbGFvm8YArbHl04Bh9bsgEfmPKzZl2THkKEZ9v 23yUn2P+KdEkwq+DZE/ioK+M8n+hQUWAcVgLsztJfuN91Ws8Y9y9rEoa1yOhWNoZKffZ JJLbZec27PRf9hFSnwgtg4xMwo6UHgEL7fhGIop2jtM++7oMz9Y1LZBTjsloWDlwc4D1 omog== X-Gm-Message-State: AOAM531dDfDz6i4FBqGUUgOdVh+sIkmTwQ1XkcDTMqr1+KsCq3y2JvI4 Sqye26Hzd9TplhaQrUrQseL67hkRWR0c1Y+FC37Mq+t6o5QFsg== X-Received: by 2002:ab0:647:: with SMTP id f65mr31277210uaf.4.1625046152037; Wed, 30 Jun 2021 02:42:32 -0700 (PDT) MIME-Version: 1.0 References: <20210627220544.8757-1-rdunlap@infradead.org> <20210627220544.8757-4-rdunlap@infradead.org> <6af41806-e715-4084-418f-4a8924d26c07@physik.fu-berlin.de> In-Reply-To: <6af41806-e715-4084-418f-4a8924d26c07@physik.fu-berlin.de> From: Geert Uytterhoeven Date: Wed, 30 Jun 2021 11:42:20 +0200 Message-ID: Subject: Re: [PATCH 3/3 v2] sh: fix READ/WRITE redefinition warnings To: John Paul Adrian Glaubitz Cc: Randy Dunlap , Linux Kernel Mailing List , Yoshinori Sato , Rich Felker , Linux-sh list , Geert Uytterhoeven , Takashi YOSHII Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, On Wed, Jun 30, 2021 at 11:36 AM John Paul Adrian Glaubitz wrote: > On 6/28/21 12:05 AM, Randy Dunlap wrote: > > kernel.h defines READ and WRITE, so rename the SH math-emu macros > > to MREAD and MWRITE. > > > > Fixes these warnings: > > > > ../arch/sh/math-emu/math.c:54: warning: "WRITE" redefined > > 54 | #define WRITE(d,a) ({if(put_user(d, (typeof (d) __user *)a)) return -EFAULT;}) > > In file included from ../arch/sh/math-emu/math.c:10: > > ../include/linux/kernel.h:37: note: this is the location of the previous definition > > 37 | #define WRITE 1 > > ../arch/sh/math-emu/math.c:55: warning: "READ" redefined > > 55 | #define READ(d,a) ({if(get_user(d, (typeof (d) __user *)a)) return -EFAULT;}) > > In file included from ../arch/sh/math-emu/math.c:10: > > ../include/linux/kernel.h:36: note: this is the location of the previous definition > > 36 | #define READ 0 > > > > Fixes: 4b565680d163 ("sh: math-emu support") > > Signed-off-by: Randy Dunlap > This one no longer applies to Linus' tree: Worked fine for me. Ah, Linus tree still doesn't have b1deeeb93933d390[1] ("sh: fix trivial misannotations"), which has been lingering in sh/for-next since the beginning or March. [1] Note to Gmail: No, I don't want to correct this to "b1de b93933d390". 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