From patchwork Wed May 5 02:35:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 12239029 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 C63F8C433ED for ; Wed, 5 May 2021 02:35:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 51948613C3 for ; Wed, 5 May 2021 02:35:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 51948613C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30DA16E402; Wed, 5 May 2021 02:35:57 +0000 (UTC) Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA18A6E402 for ; Wed, 5 May 2021 02:35:55 +0000 (UTC) Received: by mail-ot1-x335.google.com with SMTP id 65-20020a9d03470000b02902808b4aec6dso455192otv.6 for ; Tue, 04 May 2021 19:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GfhGC55J2OjEdw/7PTNJyCxRfWG9ZUMJ95NKKd86u0g=; b=rphV2EqsYRzSsIbvC2C0a7SvtrMsP4QtRZb/7Z2MX+lzpD4qhDJG8MmDjPeCKoj4TN AzA2BqUsublllOKQUSl8RglZbLKarS+uxlmS4unHRnpcakfsArSSn9D/A7DdRFx/Mi// LFve5mr3n+fnftrtTvt4d1yhzDE5NOTkQnLDoMPsac9kOfx+wdoC4YT8bEeS9OkNjfJ7 lL4ErUyPoSsBlS6HQpWtLYG84SsY6uYY5KklVeu4bLQC9EOuLaCcHsPTWaT3IpbNMyMd JOdhELwuAmq5Wg1okCzMpE6mpOYDSZ+El7N4dThHd/azfN1eIjcBK4auZ7pGrmS7/M43 DPbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=GfhGC55J2OjEdw/7PTNJyCxRfWG9ZUMJ95NKKd86u0g=; b=FPiWvN1N9wne0Y7hI/Ieh+1cH2T9eLjIKoykxGsCzFn2n6po1B4nzd0MqtxVcpmAyY cQzGbr79k0UtkjyE1iFxaNNu4OqujORH+r3tYsLiGxik+aVf4PEKZ1qgd+7SvseQC2fR nek4SXsxDaTZNjOdAOon2dTMWg6khfkWtgVbdfxOhdv5rT2IJSuZfooE0vy2UpnV8KJu hxVvqc1Q7dER/lU9odPTxfg0av7lvPYVwPktbeIJG8GELOXXsY8nGL5Gsm0kn+0YqqrD mm6zdP+asMTdv0+kRb+rdy7eypcC1V09tYjvR0nq24nVbHDPz0wFhyWadjssiY/TZ+sn /Adw== X-Gm-Message-State: AOAM533rhUOQn9uDbOFlG5AJV0DNUxzHcAQ9fIVIXa9mWT6sJgqda1QJ Fn6pkei2a334ZJoI8rF4XoM= X-Google-Smtp-Source: ABdhPJzy++fj+9aHMX278OES8bsDJ7/tIWDToemKnYwirNCewCj3Wf2m0qVz92GuaTcN+1PPe52otQ== X-Received: by 2002:a05:6830:18d3:: with SMTP id v19mr20003182ote.339.1620182155257; Tue, 04 May 2021 19:35:55 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l7sm1108108oov.5.2021.05.04.19.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 19:35:54 -0700 (PDT) From: Guenter Roeck To: David Airlie Subject: [PATCH] drm: Declare drm_send_event_helper static Date: Tue, 4 May 2021 19:35:52 -0700 Message-Id: <20210505023552.2622938-1-linux@roeck-us.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel test robot , Guenter Roeck , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 0-day reports: drivers/gpu/drm/drm_file.c:789:6: error: no previous prototype for 'drm_send_event_helper' Since drm_send_event_helper() is only used locally, declare it static to fix the problem. Reported-by: kernel test robot Signed-off-by: Guenter Roeck --- drivers/gpu/drm/drm_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c index 7efbccffc2ea..def5df9f19e3 100644 --- a/drivers/gpu/drm/drm_file.c +++ b/drivers/gpu/drm/drm_file.c @@ -786,8 +786,8 @@ EXPORT_SYMBOL(drm_event_cancel_free); * The timestamp variant of dma_fence_signal is used when the caller * sends a valid timestamp. */ -void drm_send_event_helper(struct drm_device *dev, - struct drm_pending_event *e, ktime_t timestamp) +static void drm_send_event_helper(struct drm_device *dev, + struct drm_pending_event *e, ktime_t timestamp) { assert_spin_locked(&dev->event_lock);