Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2257042pxv; Sat, 24 Jul 2021 10:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMikvvcsARw+HLUyzc5fNQ1M7s8wofBZYEhh5k5BA1fXs6ge3s/M4wj6DKGtpO1dOhRsCC X-Received: by 2002:a17:906:838f:: with SMTP id p15mr9959438ejx.300.1627146458890; Sat, 24 Jul 2021 10:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627146458; cv=none; d=google.com; s=arc-20160816; b=LuriuBSbFnvpo6jZLEosDyJMuWnx8OFGHzqiyK8a5DVBOn9Cvs3PkVnSjJrGGXwGbP KpSM/g9t0zeocgK15vkeQvaR2atXZJzbTWTOILlbNUomp1u4sBi/Q6t+JeUSiWIQi5pv LVR6a3un8+gX9czRCr9bCuGTjrX1Qv68JI0QjShafdiOPKjWiCRvbCgsDmCGNE1BLJgL WhfiWdrx5SuNx5LPRvxHYI0VWWaEgx1sh/k6/8McIGnVEFMdJhPg1vQ3MIeXnTiqiQMW 6H42vGgnDVJYgwtaAP3mFdESNxQeYjVoYbrlWgxAQhq3FojOWBcyGKDyCPr8oetG+86Y trJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NsvpMrRsmVjHfd7mGFpFwqsiS4IihGXj4Xez8fWQWVo=; b=sYyXPt5krFZmf99aa0TZDSF8Oo6DaIXbMEzolfjnN89Cthd7G1Qzi1I2zgm6+itLoI dUQKbRj2OCJhmt67bRIpf8SQ1hstcauXZEz2/MrzZGh3tzRgd9wy8cdamo9dB8OKSJMI efr07taq8m4MgR82mBLtmzJ3W9hHoLOfeNfkDpx+QSpJ0dc68NHrMwXUKKuU1OWwyPmX c3FM2CPDqIYhJ/YYtRZC+gSxaho0OToo85qaNJdCYwVI+E19eQSqSinIRvkFEGC6mlKY pAQ4bpqYxHkIN7XUD7Q/W7o1xPJtZ0D4+CYFKF8VwuZysIEyR3fX5Pbz5p8t3nYli79Z dhkA== 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 gb16si5482380ejc.537.2021.07.24.10.07.14; Sat, 24 Jul 2021 10:07:38 -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 S229909AbhGXQZS (ORCPT + 99 others); Sat, 24 Jul 2021 12:25:18 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:49996 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhGXQZP (ORCPT ); Sat, 24 Jul 2021 12:25:15 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7L1d-003aTX-9q; Sat, 24 Jul 2021 17:01:21 +0000 Date: Sat, 24 Jul 2021 17:01:21 +0000 From: Al Viro To: Sven Eckelmann Cc: Arnd Bergmann , b.a.t.m.a.n@lists.open-mesh.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning Message-ID: References: <20210724162429.394792-1-sven@narfation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210724162429.394792-1-sven@narfation.org> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 24, 2021 at 06:24:29PM +0200, Sven Eckelmann wrote: > The special attribute force must be used in such statements when the cast > is known to be safe to avoid these warnings. How about container_of(ptr, typeof(*__pptr), x) instead of a cast? Would be easier to follow...