Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2682029pxb; Fri, 8 Oct 2021 12:48:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDdjcuDZKd3n3EsYXVRfIOyxg2R3Bx8coaH9a8mkM3fi/1JHpHfFj8fIQd9Xsok4utdpQ7 X-Received: by 2002:a17:90a:9306:: with SMTP id p6mr14478059pjo.119.1633722481631; Fri, 08 Oct 2021 12:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633722481; cv=none; d=google.com; s=arc-20160816; b=Q5DiltZsntlTXFCc0m3G6iwxLy8DiCU/43fNht/23jI9U3wMs5IOql9f2hpwfVPgPh Zam1lWW+vK5f9vCUD5rbOAVadvkuE4/3HTSh39C/tl97jjC72SjM45SHJkR3eYyyct0C ujqDuY9xNj77W2iE2hCqfwd4ZQK6PeMrAe6oflczzZZvbxAQwBP18WTDHbNnh974JJak 5cQvLmQoaoc3Zf7we3wLVoJkYKqBmidTt25FC61x2+68c4uG1ymT4kZqSUYKcBgh+oXe 8C5wmD0FluLsU2O1pzqJDjlaIQ7bMVoOPagM5yY7udqDCRiLhlMHTRtUYZZX7+fskXbb e1rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=IRGD4RfBn7KLUyaNIF8H0Vn2lDfysR2nr3bQYIRmdjo=; b=MCtd3mKaN4973AmvzSqyfXg0l/lpuFv2GjIlkxfbV+Z2bpONzvt+xiLmFO7I4nI43O k0MSppeS25g/2E+SuL6vjhV7YC7VoWkQCWPOk4UJ7NxYNHdovEp5J4it2+VXHBZnWa5p 8Ex2F1KpDrNAXSRfjwocyVz/EtjCKwIJCCud5WUVeV9bt8yWo+RwwV7BAA1CDzeHoTro pq51uoC/4I3vb7LB8jdnd2MCMsrQQcU52pd7zrPuYIGSoTyas4YP/CQp+f4ZK5YPUT4u 6+f3sa6QhgQFUNDnWmmPV+5xStW1c/Hh+WGhF7e/S30FoCd0vpVO/yt1tSyzGtd1oaNY ybsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1e0XizjF; 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 26si207271pgk.191.2021.10.08.12.47.48; Fri, 08 Oct 2021 12:48:01 -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=@infradead.org header.s=bombadil.20210309 header.b=1e0XizjF; 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 S231584AbhJHTs5 (ORCPT + 99 others); Fri, 8 Oct 2021 15:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231296AbhJHTs4 (ORCPT ); Fri, 8 Oct 2021 15:48:56 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8217C061570; Fri, 8 Oct 2021 12:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=IRGD4RfBn7KLUyaNIF8H0Vn2lDfysR2nr3bQYIRmdjo=; b=1e0XizjF86RqMSFmwaq5bfgKr9 +9OdCsQVlszLbhF52EQgo3ZV8NGK3yPCkk9F6qM0yvtSeUmlOCvqdZLON0zWpoSO7T8z3un1B8CW5 sgV5rGRB8lIRkQ504nD41TUCIRbz41IRkSlNPNiKmm1Ieqy4qZMuuG/rmQKvdZ/qvB7zuzZTNi0rt mJfxRenm2/dtfwst2yvHT8+bdhMjwQoWGzleP35PkILcKAjTaCFKdL6NvYAmImTEXn5Gy7AX9EiQP BIQXyKZkYeri8XCGMTl/GOlh+vhVLVXA1N77XbA8lNuGPhCXltYwB9k6Gl+ZwJcmP/W1+oY55QTRG ZqECr1QQ==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYvpV-0040Q3-Ml; Fri, 08 Oct 2021 19:46:53 +0000 Subject: Re: [PATCH 5/5 v3] sh: fix READ/WRITE redefinition warnings To: Rob Landley , linux-kernel@vger.kernel.org Cc: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, John Paul Adrian Glaubitz , Geert Uytterhoeven , Takashi YOSHII References: <20211005001914.28574-1-rdunlap@infradead.org> <20211005001914.28574-6-rdunlap@infradead.org> <1191978c-be37-87b1-bbc9-f0aa128d0961@landley.net> From: Randy Dunlap Message-ID: <754abc70-d539-296a-8993-3a66656e44b1@infradead.org> Date: Fri, 8 Oct 2021 12:46:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <1191978c-be37-87b1-bbc9-f0aa128d0961@landley.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/8/21 11:39 AM, Rob Landley wrote: > On 10/4/21 7:19 PM, Randy Dunlap wrote: >> kernel.h defines READ and WRITE, so rename the SH math-emu macros >> to MREAD and MWRITE. > > This one doesn't apply for me. My file has: > > #define WRITE(d,a) ({if(put_user(d, (typeof (d)*)a)) return -EFAULT;}) > > But your patch tries to remove: > > -#define WRITE(d,a) ({if(put_user(d, (typeof (d) __user *)a)) return -EFAULT;}) > > Which is odd because git log says my tree is current as of today, but git log on > this file says it was last updated: > > commit 2e1661d2673667d886cd40ad9f414cb6db48d8da > Author: Eric W. Biederman > Date: Thu May 23 11:04:24 2019 -0500 > > What did I miss? Hi Rob, I am making patches to linux-next, which contains this: commit ca42bc4b7bda Author: Al Viro Date: Thu Dec 31 23:23:01 2020 +0000 sh: fix trivial misannotations which adds the __user annotations... -- ~Randy