Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4018981pxf; Mon, 22 Mar 2021 23:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf4ltD/8z51op/MP2bWW/AqVnI3HzYTCDttJTXQUUke5T8FSMrqcP3h/RciIBkhC2Y+ACS X-Received: by 2002:a05:6402:3c7:: with SMTP id t7mr3125546edw.196.1616482446248; Mon, 22 Mar 2021 23:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616482446; cv=none; d=google.com; s=arc-20160816; b=moNpEf8xA+ZdHCysK3rZiwfUXUhyiX5Y2GYrabmLBWnMHgSWozC76mFU+Zle0tY8MO 4IlV3JR29P/oVKb9uReoUvBPSX7fL1YD2zERNLyO3poCgF80iDlIzAAiMk5iMVSDcjKq z/a/GltRpilGlrv+TOBV0xvUuy7ow6vuF51QSnRbzSiRB2k+zln1+FYfDWQ7K3TeH0IW D9a0HvbeoxEptccV1Jk17h6xQ1kCrwFKrQRGLYUJUpuDp6/ElcRtnl7lkGqi93bxTFyk HqfqpBXITlb+2l31NpFSEqH63GwZmtabNe7t4nVGKeCXqAHCshg41lIpPB1/0IHKcTOl Lb9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=nHdQIDC0Z8Stebwyqd9AiDhXAlbk+/iBWq6qVorwHWM=; b=PAkw3Bzdn0yWD7tQ1B/w8xKuiJAKIC5ek2WwE0yittsXqFMFlQHMoBwySeiApSo630 I023Gruwo5eed5hMA/aMXnNKe6l/TTXj6btZmmAV8T3qtlm6b4V8mMSPMJ2d47JUZp3G 9Ok8wq3yhFn+DIjj5rS8wVyt2xYrgyqNJ8BVOaYrO4BjxwgbZnlR6HtmT2rsPlNJO7sM 6QHxKH9TZfRzpR2zKSnSNY5lXLsgsML1XH3ND8bgm/Goq6TVZCONUG8XrqDYSVDRay24 0sWOLw0vtbF6sFxCvoJaLC195Dr2cDajy7JACSU+fD/PHWAnO0UMTQa5tZRh0u6iLgE+ 5niQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b59si14058025edf.40.2021.03.22.23.53.43; Mon, 22 Mar 2021 23:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229500AbhCWGwm (ORCPT + 99 others); Tue, 23 Mar 2021 02:52:42 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14065 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbhCWGwj (ORCPT ); Tue, 23 Mar 2021 02:52:39 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F4MSG6HvMzNqKd; Tue, 23 Mar 2021 14:50:06 +0800 (CST) Received: from hulk-robot-4.huawei.com (10.175.124.27) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Tue, 23 Mar 2021 14:52:30 +0800 From: Zou Wei To: , , , , CC: , , Zou Wei Subject: [PATCH -next] drm: Markdrm_send_event_helper with static keyword Date: Tue, 23 Mar 2021 07:38:34 +0000 Message-ID: <20210323073834.38685-1-zou_wei@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/gpu/drm/drm_file.c:789:6: warning: symbol 'drm_send_event_helper' was not declared. Should it be static? Signed-off-by: Zou Wei --- 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); -- 2.17.1