Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp162410ybb; Thu, 2 Apr 2020 23:45:08 -0700 (PDT) X-Google-Smtp-Source: APiQypI82D/TnwUQHnxwMqrW30A+YTkiUmRc+uwrS59Reo+8AfkwkDYYKq5T/yZrA6yLDE6660s9 X-Received: by 2002:a4a:1882:: with SMTP id 124mr5655200ooo.60.1585896308518; Thu, 02 Apr 2020 23:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585896308; cv=none; d=google.com; s=arc-20160816; b=z+qvJTp4kwdq2Kpg4jPnrX3cWj2gznxdbJ8EWCvX/SU+0lIygdtjb3tS4UB1FDygaj h3Fzs+NWUUaDHZ5YV34jVx3zOpMKJRzPhNMbUwacOf8k0Iy/FVDxC/tZs5Eh+yXTQ/pb bn6ESra6VY/UBw1XygH/pqS6GRMZcioEQzNNqyYt6vt+qD54/IWT55Y2yYK/GU2/z+5E Pus/liidNO07vtBurIeCW7FMI4nzoE1HmZkqPkeVRc1WlElduGx5CUqOFaDY5N889jBV bkg+/9nCneSIMMO/LHFgj/2hElxJbv+BDES/eqJSxTglcsK/WBZ77NEdtVglgqFsNVZT 8vGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=wN/+1DYz6DaJZt8mkK27AuNVbcfqwJVuwEk5QhwbXhI=; b=YNg3OjTfFLkvSINN5idYowPdRlxPI6TccnWk5bnPTtkDYx1G8F5wexYIZk3OxhUTjo TLj2/vJD1Doyimj9iI7ttut0LIMzID90Qh+Z9wBs8mAC6AexhC2rW2+DvTzq0voBB7Po P0U1uWOaN4S62Deoc598CGiDPGb9yxnloYfRrkwbSyKepmDqBcuslR+oDRpzKnpXB095 VTvSuFQmIPFGTZj1UNSW+fNJsXd4bSer8vmwIwlDOv3j59U1SFldtiw2P46N4R+7NXOP A2qFi0mEOa7ZUDjCGiGVUwTxY0SJ8HNrr3LTU509oE2ptE8UQcZTYSmI9q1Dtc5K21VS My5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si3571765otn.200.2020.04.02.23.44.53; Thu, 02 Apr 2020 23:45:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388043AbgDCGmv (ORCPT + 99 others); Fri, 3 Apr 2020 02:42:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52084 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387677AbgDCGmu (ORCPT ); Fri, 3 Apr 2020 02:42:50 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D37F9E26563865F4D2F7; Fri, 3 Apr 2020 14:41:07 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Fri, 3 Apr 2020 14:40:56 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH] ipc: shm: make compat_ksys_shmctl() static Date: Fri, 3 Apr 2020 14:39:33 +0800 Message-ID: <20200403063933.24785-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: ipc/shm.c:1335:6: warning: symbol 'compat_ksys_shmctl' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- ipc/shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/shm.c b/ipc/shm.c index ce1ca9f7c6e9..0ba6add05b35 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -1332,7 +1332,7 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf, } } -long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version) +static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version) { struct ipc_namespace *ns; struct shmid64_ds sem64; -- 2.17.2