Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3320342pxv; Mon, 28 Jun 2021 01:47:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR7TLJ+bQBmBID+ARrunGOgFY21D509Wg3P99F/z33emMaYzua2mfME6ushc05/eyjL4Ap X-Received: by 2002:a92:dd89:: with SMTP id g9mr6098616iln.200.1624870024692; Mon, 28 Jun 2021 01:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624870024; cv=none; d=google.com; s=arc-20160816; b=KhxJn8Un3vdRka/78UZ/M3rMksI0wDAOjMS89Iob1fbkPrCwH66IvjlI4gnO+dvpxL 8QiYDREVjkqR8TN/GfNXsBPjM799U6K+OsxTvH0qz4Bu6TQlbj/067OJ04qGtfo+kT3D xGzYJjj0NO7mPeb4hi/MhZZeCOKLrUpauYP6HQ+qILMRQyXbkipM0BvDU8pgIM4SPf+8 qvm7PCguUg8TvXXeE4al/4O+m7Dl6liDCquCzNG42xzLfg7DsmarDesvfY0+pLMqxWTp DCYKit3ddbDMVKsw0kBJDb9aZ/w7aKwgfNypfmlkYEfkp6ap1vYrY0CdQ1gM7riZYAh8 qYXA== 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=voFOBLuBCRHfRZtqFDsbwOOLuWD6cccWT5LVlSTJ9/E=; b=WlRMWMmJVC2H4Ga7fwQLzW0TLFNOYq9R7VZRcxOwtnQ8PjuqMnlYn2FPnx43FPvI0U VR8a2SAMgrUQnzFxHGFPCp2i/ltYHJHZhS3wKPXnAIyNT4P2ccAlO+RrRjwoUDX+R7Wh PhPul0dvsYDCeV/r75lr9GqXh0qB/qKAQFbVrzSeZ5x9EyDWovkpQUww/oFVmLQrQ7P6 C6R0jtmUjDLAG9N4rSM/9+jkE6qkqcsUUP00jATvvDh+VsIENwPcbueS5vhqjFUmFMX0 f5MXG92npplfBleXJjFDbaV5WGkNoWMaKxnXIrVc2ot5SSpedHatSMbDBvUD6nfIzNxL 1dtg== 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 w10si16326499jao.68.2021.06.28.01.46.51; Mon, 28 Jun 2021 01:47:04 -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 S232282AbhF1Isr (ORCPT + 99 others); Mon, 28 Jun 2021 04:48:47 -0400 Received: from mail-ua1-f54.google.com ([209.85.222.54]:41776 "EHLO mail-ua1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhF1Isq (ORCPT ); Mon, 28 Jun 2021 04:48:46 -0400 Received: by mail-ua1-f54.google.com with SMTP id k20so1064018uao.8; Mon, 28 Jun 2021 01:46:20 -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=voFOBLuBCRHfRZtqFDsbwOOLuWD6cccWT5LVlSTJ9/E=; b=V1PSg/s9BEyq7XdFlFzsMCmc/MT8apuLVVobBRdPx+MAWuY1GY33gkzF8TYVmSSR/Q laFG+/YS0gR+YrIAsPKimZSGMfRpE78S9qFtj1AxLDrT00SHLCTkWkc1M14gfhGTng9/ B1tBp6yqKTXIxz3RNpfkLN74qRp6HgDU3kyTUbd6Mi7pCmzkV6OTtD+Hau5z3cUryKdG d34S+tqX0Sy7TWN2omBOec3A2u/gUZGcyDLemIIXkfbQ5TKH0ewJ8sMjuJpBqpm1Av+q G9Ln6TBs9pgNIoQgcfSW4qQ8wvx5fcaBNB3DT9ErasTkdQyL0gHxv2BMQvuxZFlPT97N sYrg== X-Gm-Message-State: AOAM532BitQnzcDiXD29z3cUjhqCopRNOFQL7BaUaGymp7MzfHu2Pxjn ULMu91JeasR/PIknP5If3oOVcvOf1pFfAA0NchM= X-Received: by 2002:ab0:1e4c:: with SMTP id n12mr19387183uak.58.1624869979919; Mon, 28 Jun 2021 01:46:19 -0700 (PDT) MIME-Version: 1.0 References: <20210627220544.8757-1-rdunlap@infradead.org> <20210627220544.8757-4-rdunlap@infradead.org> In-Reply-To: <20210627220544.8757-4-rdunlap@infradead.org> From: Geert Uytterhoeven Date: Mon, 28 Jun 2021 10:46:08 +0200 Message-ID: Subject: Re: [PATCH 3/3 v2] sh: fix READ/WRITE redefinition warnings To: Randy Dunlap Cc: Linux Kernel Mailing List , Yoshinori Sato , Rich Felker , Linux-sh list , John Paul Adrian Glaubitz , Geert Uytterhoeven , Takashi YOSHII Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 28, 2021 at 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 Reviewed-by: Geert Uytterhoeven 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