Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp227076pxb; Wed, 15 Sep 2021 00:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5SWtcRN3Ow3KZJJxlejOM7MY7w4p3+jbcULnEd0lx3IsJiA74euNWUMe/vD0ABBjxnlAw X-Received: by 2002:a05:6638:dc8:: with SMTP id m8mr8681574jaj.21.1631689755060; Wed, 15 Sep 2021 00:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631689755; cv=none; d=google.com; s=arc-20160816; b=kEOlvGw20xPLmfvOCixjbosheovUA9ULcA8GUxVZ7P/isKGBBPnREHc1gkKPRGoXq9 htacLktILO0H0BAKTfYoj9CKYhijRSLbblmZ4OJPAWhs7/jmVVStPnHuKsg9g7hSJ4yJ 3dXi8SOwr5WScsShoksanwfY/iNeoiWQl/dkU9s93N5fe9owltzP4ejpp0kK23Vhelhi NJac6itJVKvJpsVdCXWUMScYFj9TKE9UUwHBHi6d9c4CoGNqss6qeaxyH4W+giKpMuTN YGT5do8f8BgZP5zjRW0PiNw6l0w/2FQAyfFsP2r59H273s2NsPAkGtre5Z2Jxy0YVtIO FJyA== 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=a1ubzPqneCoCRWymQt/DPxsQuqKvhkE5Z8aHIVy6Log=; b=TtIMvxga+7ZPbS9w7gyYyiZv0HsNXmKoksnkAdZxmz36loYsfSC5inF5I9Xc/J16Ay 3zRFX75IZoGOamic4vrQdjKP9+GdM+KjezIYjYKcu+8dzno7gswlufHZdUuxnospw1rJ mNsrj6gSBHeGmCr4iVpWGSP4zNXyifDvvAZNDwkg/F5YzGGY/+uKGVDKKwWr4d1J4jTu VIcohirCT/sEbS/FTolmtLPHybBQGC3g9L7z0B4Qr9Z20lnFHJXq4Y+DfqRXQqfncLUR kd/Tmebt89vvbwv5WuA2+QHEWgP5PF9WCLjO/SPG6wKG5Aj0lYlHj5mGFRIdBtwZj2uP moxw== 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 n4si12943163ilo.88.2021.09.15.00.09.03; Wed, 15 Sep 2021 00: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; 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 S236615AbhIOHJS (ORCPT + 99 others); Wed, 15 Sep 2021 03:09:18 -0400 Received: from mail-vs1-f53.google.com ([209.85.217.53]:37849 "EHLO mail-vs1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbhIOHJS (ORCPT ); Wed, 15 Sep 2021 03:09:18 -0400 Received: by mail-vs1-f53.google.com with SMTP id i23so1789473vsj.4; Wed, 15 Sep 2021 00:07:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a1ubzPqneCoCRWymQt/DPxsQuqKvhkE5Z8aHIVy6Log=; b=mHCJCar4Xon2OJ1uoHuNQ+lpwpABdoMskKqM/zLCiaKEMJ4fnVzMbNPkLzunMtw4Lz QDMQXHroqpqhYqC78up5JyhROyfZRNV6uJPxcN6hLm8+Cr0/Z57X26Hm1fBkJd3oPuZG bQbG+ZS3zM4CCQQZixicK3rmQFp7x3tbWga54SRYkFvQUwt5jEr58m+P9fpbMFeLK+3t H+wzmD92gHTE+cA8tt2ZMlDCUFtzukHB3rOkHwzS+PC3tSVixc3ir1eS6HdJDGMPCdJG s0XnY65AmbV00QA7KBLyscTRBkxjn8ei813AZv3EW4gP2FKo0lLJL6Z4CNugfsNczmdP uSKg== X-Gm-Message-State: AOAM530h6oAMhnA8zSz0bmU0UfDfeNqMCl0cp7C72X7O2yaWFSCB64xV d5JyvYFOAeF+PbEPtKPKGclfHbgve67A/zXdUIWmXNWD X-Received: by 2002:a05:6102:b10:: with SMTP id b16mr2224836vst.41.1631689678872; Wed, 15 Sep 2021 00:07:58 -0700 (PDT) MIME-Version: 1.0 References: <20210915035227.630204-1-linux@roeck-us.net> <20210915035227.630204-2-linux@roeck-us.net> In-Reply-To: <20210915035227.630204-2-linux@roeck-us.net> From: Geert Uytterhoeven Date: Wed, 15 Sep 2021 09:07:47 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] compiler.h: Introduce absolute_pointer macro To: Guenter Roeck Cc: Linus Torvalds , Richard Henderson , Ivan Kokshaysky , Matt Turner , "James E . J . Bottomley" , Helge Deller , "David S . Miller" , Jakub Kicinski , alpha , Linux Kernel Mailing List , Parisc List , netdev , linux-sparse@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 15, 2021 at 5:52 AM Guenter Roeck wrote: > absolute_pointer() disassociates a pointer from its originating symbol > type and context. Use it to prevent compiler warnings/errors such as > > drivers/net/ethernet/i825xx/82596.c: In function 'i82596_probe': > ./arch/m68k/include/asm/string.h:72:25: error: > '__builtin_memcpy' reading 6 bytes from a region of size 0 > [-Werror=stringop-overread] > > Such warnings may be reported by gcc 11.x for string and memory operations > on fixed addresses. > > Suggested-by: Linus Torvalds > Signed-off-by: Guenter Roeck 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