From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DE2FC4320A for ; Mon, 26 Jul 2021 15:08:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1E9360F59 for ; Mon, 26 Jul 2021 15:08:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbhGZO1i (ORCPT ); Mon, 26 Jul 2021 10:27:38 -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--