From patchwork Thu Jun 14 09:23:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaejoong Kim X-Patchwork-Id: 10463713 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 2C197603B4 for ; Thu, 14 Jun 2018 09:24:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D64E28A91 for ; Thu, 14 Jun 2018 09:24:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1272C28A97; Thu, 14 Jun 2018 09:24:18 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, 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 B43EE28A91 for ; Thu, 14 Jun 2018 09:24:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754821AbeFNJYQ (ORCPT ); Thu, 14 Jun 2018 05:24:16 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36197 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754664AbeFNJYP (ORCPT ); Thu, 14 Jun 2018 05:24:15 -0400 Received: by mail-pf0-f196.google.com with SMTP id a12-v6so2942600pfi.3 for ; Thu, 14 Jun 2018 02:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6W9Nxy7MgrjJ6U6AGuxLkJjocGvrY1h43YgcWkcLJMc=; b=eCYDN9MYgLbVLe7+sLPgPJNEVMRaX7KXGARKU+38KRfnknzHyWKpFkM7/sgb4kz9Ve p7/NeS5dPzoghO7ESOM4fiv0Kte6n5mzIGzSu0+6A3scZfGYWj3+um++jyKy8Efax1Pb soToj0zDNzgt01dZqWSp+qnfrMVl4reHvCHMquycMOhz6A/LEBHMnbGFFWC2kfoJiIDZ lkNwAqDpuRwddFSXktwU1nx9BC/11HXDphGf9Ky8mtLmjoAuPTCwP+N64Z86VvejFV7W ELuNAWhMMD/ttBSwLPsxwKlk5StPkZMOwyueDjd/XC5WLyvyG4z7vZlW1doTuc89pe64 WZPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6W9Nxy7MgrjJ6U6AGuxLkJjocGvrY1h43YgcWkcLJMc=; b=VTPTHO0zIMGQlSj/CLIYXkoyY8TlIAcQDddRy4sL9D5tt5YhEN96pazLy8JiOrqpX3 YgGL8GlGE9DJ2d9A9+BPvlS4crLyUAnA5fE9nQxo3wt1hDl0zlYHujeEKCBN1uowr3GT d6DGUmM2IznYT4xGf5XSvgjNYH/6+WpaZQnX6LVamG9V+HqTixsv3BtIlVTnNutcevxL rnP5LHypY/nC5+9K/4qdewMXMwhXURjjdkHnWSsQA/KIJUtdGo1zxCWDHCyuvrprWH0y jRxUnzUlsiVDNF47LJ+9B3BxaTyoYVqNySh3T1KoR35Ugmq7abFIcvS/In+c2CgvVaJ3 2xJQ== X-Gm-Message-State: APt69E2Ho8V52Ld3qARqA0ILj+1EqCitTGc7eVe5T7Y24BHDPV68uebI JuxAJjwZRjK28bfcGqEusAc= X-Google-Smtp-Source: ADUXVKKYubsxlRz0Xd6orI3GIqgFqkUhsYC3N1B9mpcyE8L4VlAkpzsgpoHsRHfnaQT8GKTmZN8WHA== X-Received: by 2002:a62:9945:: with SMTP id d66-v6mr8677732pfe.192.1528968253813; Thu, 14 Jun 2018 02:24:13 -0700 (PDT) Received: from climb.lge.net ([27.122.242.77]) by smtp.gmail.com with ESMTPSA id m10-v6sm5512040pgq.89.2018.06.14.02.24.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 02:24:12 -0700 (PDT) From: Jaejoong Kim To: Felipe Balbi , Greg Kroah-Hartman , Krzysztof Opasiak , Alan Stern Cc: linux-usb@vger.kernel.org Subject: [PATCH 3/3] usb: gadget: storage: Remove EXPORT_SYMBOL_GPL for kref_{put, get} Date: Thu, 14 Jun 2018 18:23:59 +0900 Message-Id: <1528968239-2447-4-git-send-email-climbbb.kim@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528968239-2447-1-git-send-email-climbbb.kim@gmail.com> References: <1528968239-2447-1-git-send-email-climbbb.kim@gmail.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removing EXPORT_SYMBOL_GPL from kref_{put, get} since it is used only in f_mass_storage Signed-off-by: Jaejoong Kim --- drivers/usb/gadget/function/f_mass_storage.c | 6 ++---- drivers/usb/gadget/function/f_mass_storage.h | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c index b6e2930..ba0eb7e 100644 --- a/drivers/usb/gadget/function/f_mass_storage.c +++ b/drivers/usb/gadget/function/f_mass_storage.c @@ -2558,17 +2558,15 @@ static void fsg_lun_release(struct device *dev) /* Nothing needs to be done */ } -void fsg_common_get(struct fsg_common *common) +static void __maybe_unused fsg_common_get(struct fsg_common *common) { kref_get(&common->ref); } -EXPORT_SYMBOL_GPL(fsg_common_get); -void fsg_common_put(struct fsg_common *common) +static void fsg_common_put(struct fsg_common *common) { kref_put(&common->ref, fsg_common_release); } -EXPORT_SYMBOL_GPL(fsg_common_put); static struct fsg_common *fsg_common_setup(struct fsg_common *common) { diff --git a/drivers/usb/gadget/function/f_mass_storage.h b/drivers/usb/gadget/function/f_mass_storage.h index 58857fc..3b8c4ce 100644 --- a/drivers/usb/gadget/function/f_mass_storage.h +++ b/drivers/usb/gadget/function/f_mass_storage.h @@ -115,10 +115,6 @@ fsg_opts_from_func_inst(const struct usb_function_instance *fi) return container_of(fi, struct fsg_opts, func_inst); } -void fsg_common_get(struct fsg_common *common); - -void fsg_common_put(struct fsg_common *common); - void fsg_common_set_sysfs(struct fsg_common *common, bool sysfs); int fsg_common_set_num_buffers(struct fsg_common *common, unsigned int n);