From patchwork Mon Oct 17 15:11:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9379585 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5AD3E600CA for ; Mon, 17 Oct 2016 15:11:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CBC329190 for ; Mon, 17 Oct 2016 15:11:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 413632922A; Mon, 17 Oct 2016 15:11:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC7C529190 for ; Mon, 17 Oct 2016 15:11:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932567AbcJQPLj (ORCPT ); Mon, 17 Oct 2016 11:11:39 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:36453 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757006AbcJQPLi (ORCPT ); Mon, 17 Oct 2016 11:11:38 -0400 Received: by mail-pa0-f65.google.com with SMTP id os4so5258087pac.3 for ; Mon, 17 Oct 2016 08:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sD7sxYgIYy0s9bBgewkKb2HiI6pKKo3w/GjQnZ5mj8c=; b=B0553oorASR91QE9/YEtYVPB3juZdq3rbkC0Xt4Yrfs2vu741ZeYABPe0BsOt5/JMi b7p0Xt1heIeIUkdW4y3klH3uq7yY0FYtCaBnZBH9G4vQNeojgizK2E03Byzs9S4Zvrb6 S5DvkMl4wvcw5EMMIhqnvq/f0N2vqFLtXqBjeN4E3jO5jeHoW6C9luKe/otknurbbjCW gy/wJKEQUwGsjLiAZzu0W6cWjOUDCbkEOdnpk2YxRWuLULQmWyPr2BS4CpmUeCOw1HeX IRivc8huj8b91dflzveyNXShfpdLD5hLRKQ3VomFrAa/lP6/L0BjDFWMNYwa1Bo/8/Hx buVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sD7sxYgIYy0s9bBgewkKb2HiI6pKKo3w/GjQnZ5mj8c=; b=bACaQzHb/eRPb0fmqtp4yn/qo035tFjzc2k3JwsPBjcmP6oTgi9bgnPkGtXn80el2v LfIVkRuL6o8bjWxMRz0NZ2bl2fMZ6ehWNSQwvgvJxyKZ7860Z+HHIhGPUvfz+bV+t21c irvrWAWWUE55s5T8wge+MoR62TOl+z+WaIh1Fh2sKRsg8ItvbZFeVKPFAmMR46+xlFsi UzV4ocoxryJg6L5ltdO0S4O1vn2EgYf9imWOK6XGciNfdLMp803TW2zdVecKKU9tu3cp OrP2W0e6FyYP5iTd3LzKOQxl5IWCavJvXm8BbYYiSMqCfBLmrMijRdD7XxGglN2sEpqE Q99w== X-Gm-Message-State: AA6/9Rm9TlqWaVATmkx+XTuuXOQ+vN8n7Z9lpglsx94Q+pNoKFRCHlzjyvsUig7Ng0jbzw== X-Received: by 10.66.6.103 with SMTP id z7mr32007815paz.134.1476717097405; Mon, 17 Oct 2016 08:11:37 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id j63sm48904174pfj.70.2016.10.17.08.11.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2016 08:11:36 -0700 (PDT) From: Wei Yongjun To: Yan Zheng , Sage Weil , Ilya Dryomov Cc: Wei Yongjun , ceph-devel@vger.kernel.org Subject: [PATCH -next] ceph: fix non static symbol warning Date: Mon, 17 Oct 2016 15:11:29 +0000 Message-Id: <1476717089-10359-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: fs/ceph/xattr.c:19:28: warning: symbol 'ceph_other_xattr_handler' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- fs/ceph/xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 40b7032..febc28f 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -16,7 +16,7 @@ static int __remove_xattr(struct ceph_inode_info *ci, struct ceph_inode_xattr *xattr); -const struct xattr_handler ceph_other_xattr_handler; +static const struct xattr_handler ceph_other_xattr_handler; /* * List of handlers for synthetic system.* attributes. Other @@ -1086,7 +1086,7 @@ static int ceph_set_xattr_handler(const struct xattr_handler *handler, return __ceph_setxattr(inode, name, value, size, flags); } -const struct xattr_handler ceph_other_xattr_handler = { +static const struct xattr_handler ceph_other_xattr_handler = { .prefix = "", /* match any name => handlers called with full name */ .get = ceph_get_xattr_handler, .set = ceph_set_xattr_handler,