Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1787122rwd; Sun, 28 May 2023 02:29:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ht4QgaIgxM7vLCXvOh3awmKsQIjPg4aWdqFo52JqZBb/OgUQS42G4EwKqWoM5NN/120nW X-Received: by 2002:a05:6a21:6d88:b0:ff:f3d9:1ada with SMTP id wl8-20020a056a216d8800b000fff3d91adamr5462768pzb.60.1685266198565; Sun, 28 May 2023 02:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685266198; cv=none; d=google.com; s=arc-20160816; b=jFkyCnTEBhCbuf7WCcWyCTmFEELPC+UqWXyc844hjW2ASorMDQuCqEzA8IepeBCdsl 634tfMKJe5BmZPKlEbRn0K+I+VuCV3dlh3J2vH0Nyd3ntIutanymWNXndsIEoYbb1r9e 7t4Y52QNVx4Bt5xoHheg/awTAZzQMFil13UqA+2GuSKQGiaSi4F8IGGEkPKxmeRQTvMA LMp5fkakXjArQ72XlQ+Y89l/Ja2+8u892Jk/qNvL6kguEKl/P4T0dQ86SkqZGqmpj8SC TtF5SGTpHWvBw/2bmM2wDUDPXXgZ0KIedvRcsttKmi5LQ15Jo+O+gHobls5F5rlDvoiJ 2kaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dbKkjG2KDlccg9rXgR21y4sjlvXiD/AR2qo3hOuyTVQ=; b=uIPcNfpuGeuY/3uHjQXufU/9uIHQHCv6gGeaGPvbggrhwWlaj1GbZSmP9hYJ7hFL1G /76Idnyb6Wanow4EVQJLR22eJzPHssIUhVQbuXrzP8DH6xFCGmH/xwx8JVsRJ7MjnUBv iQFSHEOHPdARu+1yMkNi6elDAOz1sjOwtZD0NKhOQW+LPEqkfIjFcXmNttOVEdS/PYql 8vnBZfSYc7s9umXhdMSmrPYKI4AnOzb3wbfL7fDgy+LTG1AUPv3qgTt0+0XVxnunLSxS 6myxAYXSQIgZwM/0YunL7QBOMh85KS+ifPZ2ebkIkkpVdMTprbN42DomtJMonAyEgGUO GYgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sz2PySYv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b005287f5fbf5esi3424960pgb.254.2023.05.28.02.29.41; Sun, 28 May 2023 02:29:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Sz2PySYv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbjE1JNX (ORCPT + 99 others); Sun, 28 May 2023 05:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjE1JNU (ORCPT ); Sun, 28 May 2023 05:13:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8890C9 for ; Sun, 28 May 2023 02:13:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4410A60D2B for ; Sun, 28 May 2023 09:13:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B2D2C433EF; Sun, 28 May 2023 09:13:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685265198; bh=X+wEkGcFPxyLRRStAYn+nV5CgUbOCpIYtQ2VqRZYruI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sz2PySYvXFdgPJGBwyCyzEzvDRi1So/HQhfyir6PYcl2zPP6aT1qyQVnrD1EKa3mW xULxaQ+2dpamAVCEiIiKSVwCJHERaXbkU+gAcpFMDQI6Z76QdChGWrpt8qnlX5Cpfj S8gDVdgYjzWO/lbzMry5w/kKn1KzuvtISSPmuQuo= Date: Sun, 28 May 2023 10:13:16 +0100 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Florian Fainelli , Stefan Wahren , Arnd Bergmann , Broadcom internal kernel review list , Umang Jain , Adrien Thierry , Phil Elwell , Peter Zijlstra , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vchiq_arm: mark vchiq_platform_init() static Message-ID: <2023052856-tidal-trapdoor-1112@gregkh> References: <20230516202603.560554-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230516202603.560554-1-arnd@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 16, 2023 at 10:25:55PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > This function has no callers from other files, and the declaration > was removed a while ago, causing a W=1 warning: > > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:465:5: error: no previous prototype for 'vchiq_platform_init' > > Marking it static solves this problem but introduces a new warning > since gcc determines that 'g_fragments_base' is never initialized > in some kernel configurations: > > In file included from include/linux/string.h:254, > from include/linux/bitmap.h:11, > from include/linux/cpumask.h:12, > from include/linux/mm_types_task.h:14, > from include/linux/mm_types.h:5, > from include/linux/buildid.h:5, > from include/linux/module.h:14, > from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:8: > In function 'memcpy_to_page', > inlined from 'free_pagelist' at drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:433:4: > include/linux/fortify-string.h:57:33: error: argument 2 null where non-null expected [-Werror=nonnull] > include/linux/highmem.h:427:9: note: in expansion of macro 'memcpy' > 427 | memcpy(to + offset, from, len); > | ^~~~~~ > > Add a NULL pointer check for this in addition to the static annotation > to avoid both. > > Fixes: 89cc4218f640 ("staging: vchiq_arm: drop unnecessary declarations") > Signed-off-by: Arnd Bergmann > --- > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Nice, thanks for finally fixing this up, it's been a low-grade annoyance for a very long time. greg k-h