From patchwork Tue Apr 19 13:36:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12818568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A802C433F5 for ; Tue, 19 Apr 2022 14:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=q4oy9fS43pBqo1Chcyvl2yBH0oqvEpo0KRzJUO8RTM4=; b=FiZc/abCD3xrdI DAo8/JWIj6jpj+hTyKJxDF7YfPcNCgqVYBSlq4KbERwYl11m8D1wC7N7xfoMdNuZgDDXTKcK7WUpu KxNlFebs5EuF3Cyi9HjWt+WtV/ofqA158YtxkoZIzBw7tkfugd+mp+Lkytu1UCFFZTZH6ZwcaHXPv OPaaCpUHVQoe/Q8DD9WWaPD6tiA+nPpFpMsxvDRvTw1LleL7iZLiDWaD11v9FmNfDjccgbRN7mfRV PIKv4H3EFM/h0CXg/nSCUXrGM9MPRV4DjEEfvtf00lQRP81JiLEfwIxB4xWZW9J9DbdmC+59AeUm1 qfBn8074FCPD1F830WQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngoWc-0048Un-3J; Tue, 19 Apr 2022 14:08:14 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngo1z-003uBI-2j for linux-arm-kernel@lists.infradead.org; Tue, 19 Apr 2022 13:36:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650375394; 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: content-transfer-encoding:content-transfer-encoding; bh=TisNtD1J5PmBK8R9kgSJt0gLr8nDMGO0aIKPyed6r2U=; b=RzR6nUqBlJJgIoyE0dQBQTLKcY6f14w+XK0VxmOLz8fEfT7yGf+xQ0Haf1HFK9EkCPC04M H2nG8b40LJyrPUImsRvkYyYLI4xkrHoSkcaWB3q1ixCPK2lGcr3QT71H9+uw7Pc/Ws3AnV 6HXhBLvrd0cjGU+1cMWTG2oPPo812zY= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-642-4gVo5z3xNdalEZ_MVv8xnw-1; Tue, 19 Apr 2022 09:36:30 -0400 X-MC-Unique: 4gVo5z3xNdalEZ_MVv8xnw-1 Received: by mail-qt1-f198.google.com with SMTP id o6-20020a05622a138600b002f1ebce54cfso6617900qtk.18 for ; Tue, 19 Apr 2022 06:36:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TisNtD1J5PmBK8R9kgSJt0gLr8nDMGO0aIKPyed6r2U=; b=TQvUF4U4CmWQWQhhaqSX0mrN9Q4RNyYe07KqX+ad5ngUZU6Q8bHohWsGsOKJaKdCKV pS2iXEgxkV4T/LTckoO50Bpr2Ll1JTm4SNI9vThXH+lUkS+MbXzK62onyMriC/QjP0c+ xSh9kW42Joz3ZO75WD7VPc2Ot/m52GVS6438Ct/tNYw05IfqEG902sXBqKXGMMfGJ+7G Nbsb5ZA5M7z+f1pn/7Kfv4+hawi4uQY7ShBNrJPRsphBZb3gSv7XBhsTfpde48aYVJfT 7bexfS6Jilf0c2Q0X1/KH2rt/IQnBzW9QfuhnWHpcTgGftGA1hguKXIymd8/PN2j4fX5 /NUw== X-Gm-Message-State: AOAM533sYBlnmHu5uDxsY+i6jZpZ0U0OSkj42PURk+aMLrE1ituQSKoq 1V0eS0mfUGx+hCw8oiMozBvYLLpDuV00z0+ggfQM1ius0u3wad+GXSfTPS/jqNZkNU3oy7M6dyV fBOYwW8Sj08Hyw97jPL/UmgZlgXLb6Yetoo0= X-Received: by 2002:a05:620a:2888:b0:699:b9a0:b618 with SMTP id j8-20020a05620a288800b00699b9a0b618mr9595094qkp.358.1650375390157; Tue, 19 Apr 2022 06:36:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV2T4w1vEBvKKqeuAZm2QIyB+6IhmSfNN720JnV76tZFvQn/+PTuuEUmczxU5MaDozm5Jaaw== X-Received: by 2002:a05:620a:2888:b0:699:b9a0:b618 with SMTP id j8-20020a05620a288800b00699b9a0b618mr9595073qkp.358.1650375389924; Tue, 19 Apr 2022 06:36:29 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id s19-20020a05622a179300b002e1ceeb21d0sm4355qtk.97.2022.04.19.06.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 06:36:29 -0700 (PDT) From: Tom Rix To: nsaenz@kernel.org, bcm-kernel-feedback-list@broadcom.com, gregkh@linuxfoundation.org, stefan.wahren@i2se.com, gascoar@gmail.com, ojaswin98@gmail.com Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH v2] staging: vchiq_arm: change vchiq_platform_init from global to static Date: Tue, 19 Apr 2022 09:36:16 -0400 Message-Id: <20220419133616.544255-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_063635_237286_ED492DF4 X-CRM114-Status: GOOD ( 12.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Smatch reports this issue vchiq_arm.c:466:5: warning: symbol 'vchiq_platform_init' was not declared. Should it be static? vchiq_platform_init is only used in vchiq_arm.c. Single file variables should not be global so change vchiq_platform_init's storage-class specifier to static. Signed-off-by: Tom Rix Reported-by: kernel test robot --- v2: refomat commit log 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 0596ac61e286..7de98655e8ec 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -463,7 +463,7 @@ free_pagelist(struct vchiq_pagelist_info *pagelistinfo, cleanup_pagelistinfo(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);