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=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 08FE5C433F5 for ; Wed, 15 Sep 2021 07:08:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF52D61185 for ; Wed, 15 Sep 2021 07:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236569AbhIOHJS (ORCPT ); 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-Google-Smtp-Source: ABdhPJxHnxoszY0sDj+hYWU0BjE3kyyw/RQ3D4awXIHnhLApfgsvuSgs5P41V6o+hh5KfRrFWq/4//5doBTkeuIdizM= 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-parisc@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