Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3622326pxv; Mon, 26 Jul 2021 08:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQPx7pxxKVuAshjpaMoiEBuftcvaWeBKtl5zpBPhHtWll/KB9mvMimRQCn1rrO2UJPury4 X-Received: by 2002:a05:6638:1af:: with SMTP id b15mr16878526jaq.124.1627312155494; Mon, 26 Jul 2021 08:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627312155; cv=none; d=google.com; s=arc-20160816; b=vk7i5TLYANZNlqb/2eG4TSB6BPVvuMi2auNhWJwA1ncOdlvi+fquGd4oshL5lU8zHq VR3vUcRnYQ1q1w7/smW24pw7qTmrWdnLY44XLwMFsnMCD/QgdvPo0s8aB1tI9M02pJCq R8fpYQqs5bOg5JbqCQI5J9PBtQipNy5QtijqYJK11nHL5Y//xlcddufjuw1RADIJoC5Z PO47Kt/qVaso31Uldso+BrCj/MdQTCULdvvyjuMUKoA7X6f7g36LWx6352mdyPo3avo6 jLayGTEfxcVYzYjzhtO3VAbhzJZmdkpUtA2QtBMNMdMIsOjD/9t8PuLV4fY7QVbP/GHV sl6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FB7N7rq21xp/nnAQByo9qJVUIV2tvc1AOLArJeuzsQM=; b=LtFOSgtk03D9v5wjhgeuUBCp6ybO+8Czkxn0B3FPFLqfDEzIngIpjRhLUSTXWcL3Oy 8ubrIBx3m1PO/yk8SuMIyh46X/NXPziFO/chM7Uq+bw+dIUnwEg47VNouOqdH36PPMbb xr9zbsTAFntu1D4DMtUGxffxGQCI7H/DprtsCL5Xa7QfbVTn2UHiIjeThJXHVLy5i7eM GeOWIgL13JjAueW7SXwDVPCoTAr7WzegJI9916RZypS+N5KHVlU48JUxbJlVZ5fA0t4+ 4bk74mdmH5aAxvx3DPAYX+7dhvV5g3bFp2+O3M/fU9vghZOMfcuXlf+laTxgud4wOvH2 1XpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=pMy5HgEp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si177998ilk.94.2021.07.26.08.09.04; Mon, 26 Jul 2021 08:09:15 -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=@narfation.org header.s=20121 header.b=pMy5HgEp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234828AbhGZO1h (ORCPT + 99 others); Mon, 26 Jul 2021 10:27:37 -0400 Received: from dvalin.narfation.org ([213.160.73.56]:36718 "EHLO dvalin.narfation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234922AbhGZOZU (ORCPT ); Mon, 26 Jul 2021 10:25:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1627311889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FB7N7rq21xp/nnAQByo9qJVUIV2tvc1AOLArJeuzsQM=; b=pMy5HgEpcsSJE9jhYzbwLizffyYK1r9q5HCoR92MN3gzyYMO1dSjRbQUrj77/MYsOSdrd6 8DKGKpWG7m+3lrFIaRp0GW87sZnsVPEzvVizWufEcaHclzCM2VrhuNA/Fk+mPIJY/iKpV6 rf7JxhYJ1cgT8pWLS2CzyCOULzOsqYg= From: Sven Eckelmann To: Al Viro , Arnd Bergmann Cc: Arnd Bergmann , b.a.t.m.a.n@lists.open-mesh.org, linux-arch , Linux Kernel Mailing List Subject: Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning Date: Mon, 26 Jul 2021 17:04:46 +0200 Message-ID: <3234493.RMHOAZ7QyG@ripper> In-Reply-To: References: <20210724162429.394792-1-sven@narfation.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart14162632.04HtDE0LN9"; micalg="pgp-sha512"; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart14162632.04HtDE0LN9 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Sven Eckelmann To: Al Viro , Arnd Bergmann Cc: Arnd Bergmann , b.a.t.m.a.n@lists.open-mesh.org, linux-arch , Linux Kernel Mailing List Subject: Re: [PATCH] asm-generic: avoid sparse {get,put}_unaligned warning Date: Mon, 26 Jul 2021 17:04:46 +0200 Message-ID: <3234493.RMHOAZ7QyG@ripper> In-Reply-To: References: <20210724162429.394792-1-sven@narfation.org> On Monday, 26 July 2021 14:57:31 CEST Arnd Bergmann wrote: > > > > > The special attribute force must be used in such statements when the cast > > > is known to be safe to avoid these warnings. > > I can see why this would warn, but I'm having trouble reproducing the > warning on linux-next. I have sparse 0.6.3 on an Debian bullseye amd64 system. Sources are from linux-next next-20210723 make allnoconfig cat >> .config << "EOF" CONFIG_NET=y CONFIG_INET=y CONFIG_BATMAN_ADV=y CONFIG_BATMAN_ADV_DAT=y EOF make olddefconfig make CHECK="sparse -Wbitwise-pointer" C=1 I should maybe have made this clearer in the last sentence of the first paragraph: "This is also true for pointers to variables with this type when -Wbitwise-pointer is activated." Kind regards, Sven --nextPart14162632.04HtDE0LN9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAmD+zw8ACgkQXYcKB8Em e0aOSRAAloaA/kixLrh1I6C0K83aQTfaTxmxPCTKk6X9ohZmXNCc7wcIRM97zONy D3/QFzdFBoCLJRyluykO/M+50/SXAgSu538aA/wjzkosb6aYliz0wNybS/F05XsO 3GxmwuZknqUmiQT6yEbfCBGFx44MqSF29FBCmbib0TN4w0h8fUGR4aExdmM9Mihd PSQ07dP+icQC0tpG4FPH9Sd6tulSlCdA89nrnF+uHq3qQeraa17caBjIwSSMCXnO L80OX+cHT8KPWII+eHRS9s5QjmY/gvmCuIhkJpPw2Aqz0xjYhSK8eMOb64dfXptK WZR7bBgQzI709Cunf75GCMy3pfkXUgbm+ogXUpydfOqzmadAw7g1xnN8vfobs4D0 rNkPa+A5qe5OxVgtlZZ3QR2LNo1W535AuOsNBoTW50TLTSiKo6bYVKwQYge0I+q5 FyAzNOe+UxF75XTx+Wzac/RwOL7345HXfHFYPEc8Gc16PQ/gNij+5tC2JMkm1U9H PFJ+SYwNeT5axt9teMjmzASBv/3W6I3/d/EbB6RN46CPiGXVbhcik/o/rxyuDVvM M44jzl9QyO/3Xsh+yKJdDbWUTPDc4V53YxFLqvyJvDz/ONm+GVhPU9d5iCbgsb0D 3Z3akAfv1iJlILU4Jufo7j2C6piAXbr1Fzxrx5F/XyQ/f91290g= =6aMm -----END PGP SIGNATURE----- --nextPart14162632.04HtDE0LN9--