From patchwork Sat Oct 22 04:35:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Scott J. Crouch" X-Patchwork-Id: 7071 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1045779wrr; Fri, 21 Oct 2022 22:01:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xVC9VGaEiYcid5UsgkCIS9ynAniioKisG/NaVXQVYVSiUsBFUU08SoNDxW5TPYhjr0Vo9 X-Received: by 2002:a05:6402:3806:b0:450:bad8:8cd5 with SMTP id es6-20020a056402380600b00450bad88cd5mr21301810edb.305.1666414916938; Fri, 21 Oct 2022 22:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666414916; cv=none; d=google.com; s=arc-20160816; b=QSlWwSdG6j5KcMFoOqIqacSG036cwfKQZ2jNhI8Q/YToQl22pxogtOG7MntJOBFB6m tbNJUHWqTvaZYVHE58a70vuwCRzPw6p/aHvRyTNob/lOMAsnC5Qolata/bMIsfZ8Yniz RYef3NfLpUDfzUusFCDGuIeZ5OrXk9wcRaB8Zax1MdyeGJCArCkB4Nzwbq7J48gWfAqu gnU8fcOATfoKKpba2ydux0FXCgs3MnBYJs3AUz5hZMkkaVkLZPa0ok8CmvSf9cKfxNvW 10NikT54H8N9jQtHrYv+HJQI1f274Uh/8laKbNNYEaRkYqoUYDj6amEorVpmA7lhgV0n e5Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wQYm5LqzX57uwWQZcQgQcLEzWEXhv56KAAGUn4/bM1s=; b=FPXj7VETU7t16YMadA/+mO5lxoBwuj39XDuPBIkP7llVtiZXxLjcAHDUBT9qaCiscP O0CpiZJZY0CMg7VqCDmn6wSVT3tLF1xoSbYE1v07XT1um9ky067K+oKTGGQRjYsWO5CO Ag9UMLYNfjW1VN5vEFBFlWNQpQbQTPL/pLkl+SOS6xC6ldpMPFVZo4MC81jSoVaSQTxF VdxtsBvzklWmnBTbAauYjA6u4/Bcl/KyrL8o1PSqdCYdKojRo5FQ4yxI9nUm8EcXNMN2 E4AcOkAqQuhFyhMntPSUdhCavV+I+5rxOlDV4hCp8wXEjAPeiFMxJzHLUg7dkD84g7Xa pS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pQvvard2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a50e713000000b00458d23f9fd5si20401805edn.242.2022.10.21.22.01.31; Fri, 21 Oct 2022 22:01:56 -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=@gmail.com header.s=20210112 header.b=pQvvard2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbiJVEgD (ORCPT + 99 others); Sat, 22 Oct 2022 00:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiJVEgA (ORCPT ); Sat, 22 Oct 2022 00:36:00 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDCAA16CA54; Fri, 21 Oct 2022 21:35:57 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id t10-20020a17090a4e4a00b0020af4bcae10so4756712pjl.3; Fri, 21 Oct 2022 21:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wQYm5LqzX57uwWQZcQgQcLEzWEXhv56KAAGUn4/bM1s=; b=pQvvard2nxmZEuToHQCoxqKq7E+NyOPozW/OVGgcTjUXIuXUtthCc7761Sz21nK1Ck Q+8eGKtasc1vPLudAPwPMPJPFstelL3PbyCrl0dSQq+DvXA8k6SlKFDmHUn/5M+b/RGz W+CDlMrwQrXwHTjgmA5AfhFRGHL8ZLzIxI/QXty7DHZLWsYMOkGwH+UcfoN7vPB1wmo9 6WlrXsoTcwNMG3I7REK8U4MpPMoGsafYEh/PUKmO2Qi36ARLc7tQ+Eb/BUQ1buaLGjs1 FnX4Wplsz7wWStPIBsq/tcdrieUbUWspX769DNftAFHlJRNSrsSUjnHE9mdJl6RwN5YA OR0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wQYm5LqzX57uwWQZcQgQcLEzWEXhv56KAAGUn4/bM1s=; b=dd3BB8eeAO1dPh7oHz+F2Pq0FSBTsxDNYsgVLibcFxdJr34xNSEy0qXfXFOL8gnlIw OFmJTzYMIKZVJo0BUDZtnyw7rvsPT9UxjBryUGk9t1ByqCJvTVJgiJHL/Hzj6Bz2DWhr qcdRL0CbTj789Gec795xrGPnMnzO0xiybOjqlVtDLfXtsWZrJRGlegs9d/V0FT8J2wIK UXP116x/5JDnjaKeLBoGSDcUQ4ewV0a+bwEi68GXqkRKJ4VugfMlAt7bDH2PMgXpkcIf IJhOPZsGn+W7ZW9BgiM0j4Ip1aI51yh8vrAetWVnNgobaFoqoDQnbblwmYKG0KjcN410 Jt7w== X-Gm-Message-State: ACrzQf0/1yR0hY13mpslBM/w16am8vIjk/tVjyjGM1ghmZU1MRgpKiCC s+JhzCyM63lmaaYxgXaOQ1k= X-Received: by 2002:a17:903:40d2:b0:186:6f1d:608c with SMTP id t18-20020a17090340d200b001866f1d608cmr9815540pld.52.1666413357291; Fri, 21 Oct 2022 21:35:57 -0700 (PDT) Received: from localhost.localdomain ([2001:8003:d90f:f801:7164:b4e6:b90b:c4d5]) by smtp.gmail.com with ESMTPSA id u4-20020a17090341c400b0017eb2d62bbesm402812ple.99.2022.10.21.21.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 21:35:56 -0700 (PDT) From: "Scott J. Crouch" To: Florian Fainelli , Broadcom internal kernel review list , Greg Kroah-Hartman Cc: kernel-janitors@vger.kernel.org, "Scott J. Crouch" , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: vchiq: add 'static' to function definition Date: Sat, 22 Oct 2022 15:35:48 +1100 Message-Id: <20221022043548.1671644-1-scottjcrouch@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747362687973429535?= X-GMAIL-MSGID: =?utf-8?q?1747362687973429535?= This fixes the following sparse error: warning: symbol 'vchiq_platform_init' was not declared. Should it be static? Signed-off-by: Scott J. Crouch --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index dc33490ba7fb..ffa517077b80 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -462,7 +462,7 @@ free_pagelist(struct vchiq_instance *instance, struct vchiq_pagelist_info *pagel cleanup_pagelistinfo(instance, pagelistinfo); } -int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state) +static int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state) { struct device *dev = &pdev->dev; struct vchiq_drvdata *drvdata = platform_get_drvdata(pdev);