Received: by 10.192.245.15 with SMTP id i15csp1239911imn; Sun, 11 Mar 2018 10:04:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELuwz6fV/fdiGzmTg9lwms8ksXnTo2Q7Yxhg2FqK/UySgj2NljwDC4dSY84/cS50qZqsjHjC X-Received: by 2002:a17:902:3103:: with SMTP id w3-v6mr5287462plb.99.1520787894320; Sun, 11 Mar 2018 10:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520787894; cv=none; d=google.com; s=arc-20160816; b=g0Efz8tUYsy5WGV9DNlOvxbvdBuQRFTnFqB9YbbOHYX6EWmJLK/HQhZYS4ujQZNoD2 p0sMQnlnuZKrlSY9YZYdMaC3Jins7LtkyXF+vlmsvU/kJ1kuWXMNknYYEKa66ipB+sVt y4kPTCnNKECvUS7KMG39NdZCNDTY6eh2UH6RgreMOpavemewLjIrufg5cwaSjkVDH4Dn Fa3hdrFFN5W55EpTKsCexGEXex4czyXJjs3v0W0p2mleHoRWvcB+lDdvO/i4LY0ZtmD1 xHG+fmmo+0E4eRGOWrXaDklRUXSb5yAZar1eLfZXxrqnxUOmFjmccb0QWktVgFqhV9nv VbGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=vpxSrhdnBfUWwYMmx2AfeSChmAmWHMhZZGy5foCzpwE=; b=KMrgw76ABTfq55S5bNZlrTWPOqYfn4BbtecUHe0h1tdynRvQHrnn1ttZY72pqla1oA HazhMmFm4boHKoMtceTtw8OSfXyMN078AslYIOAVf5S/dWoR1pU7QRyZELNlwT0qQ/8U skgdko02PGpFWaM92CF9jDSUL/PdD5TvIjBXHJJqyfY//9jojGjb1SYGq3Q4u3u7RdrJ H8TSF+UYJ1+gqZ4tmZIiM/SMZA1KlFamKo3+4ui+HTljlASo+N6okspUAQPZclJrCMfJ yJbfxlvlIgbdwNwqS1B59cy63KnXljbnUMpbl3Bs/hbcH8rGtAnBLFmlJ36k+poRcaLH 5+rQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si1321476plk.380.2018.03.11.10.04.39; Sun, 11 Mar 2018 10:04:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932273AbeCKRDp (ORCPT + 99 others); Sun, 11 Mar 2018 13:03:45 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44318 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932153AbeCKRDn (ORCPT ); Sun, 11 Mar 2018 13:03:43 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1ev4No-00076c-Hj; Sun, 11 Mar 2018 17:03:40 +0000 From: Colin King To: Santosh Shilimkar , "David S . Miller" , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][rds-next] rds: make functions rds_info_from_znotifier and rds_message_zcopy_from_user static Date: Sun, 11 Mar 2018 18:03:40 +0100 Message-Id: <20180311170340.27696-1-colin.king@canonical.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Functions rds_info_from_znotifier and rds_message_zcopy_from_user are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnins: net/rds/message.c:70:27: warning: symbol 'rds_info_from_znotifier' was not declared. Should it be static? net/rds/message.c:358:5: warning: symbol 'rds_message_zcopy_from_user' was not declared. Should it be static? Signed-off-by: Colin Ian King --- net/rds/message.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/rds/message.c b/net/rds/message.c index 9c41bdd9e444..7448fa192543 100644 --- a/net/rds/message.c +++ b/net/rds/message.c @@ -67,7 +67,8 @@ static inline bool rds_zcookie_add(struct rds_msg_zcopy_info *info, u32 cookie) return true; } -struct rds_msg_zcopy_info *rds_info_from_znotifier(struct rds_znotifier *znotif) +static struct rds_msg_zcopy_info * +rds_info_from_znotifier(struct rds_znotifier *znotif) { return container_of(znotif, struct rds_msg_zcopy_info, znotif); } @@ -355,7 +356,8 @@ struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned in return rm; } -int rds_message_zcopy_from_user(struct rds_message *rm, struct iov_iter *from) +static int rds_message_zcopy_from_user(struct rds_message *rm, + struct iov_iter *from) { struct scatterlist *sg; int ret = 0; -- 2.15.1