From patchwork Mon Apr 4 21:16:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Winkler, Tomas" X-Patchwork-Id: 8744491 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B8DCBC0553 for ; Mon, 4 Apr 2016 21:18:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E884D20263 for ; Mon, 4 Apr 2016 21:18:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0535B2024F for ; Mon, 4 Apr 2016 21:18:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754138AbcDDVS3 (ORCPT ); Mon, 4 Apr 2016 17:18:29 -0400 Received: from mga09.intel.com ([134.134.136.24]:3836 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824AbcDDVS2 (ORCPT ); Mon, 4 Apr 2016 17:18:28 -0400 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 04 Apr 2016 14:17:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,442,1455004800"; d="scan'208";a="78945175" Received: from twinkler-dhg.jer.intel.com ([10.12.87.84]) by fmsmga004.fm.intel.com with ESMTP; 04 Apr 2016 14:17:53 -0700 From: Tomas Winkler To: James Bottomley , "Martin K. Petersen" , Vinayak Holikatti Cc: Christoph Hellwig , Yaniv Gardi , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Tomas Winkler Subject: [PATCH fix for v4.6] scsi: ufs: make ufshcd_query_descriptor_retry static Date: Tue, 5 Apr 2016 00:16:31 +0300 Message-Id: <1459804591-27495-1-git-send-email-tomas.winkler@intel.com> X-Mailer: git-send-email 2.4.11 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This function was intended to be exported into the ufshcd API but after all it is not used outside ufshcd.c Make it static and drop EXPORT_SYMBOL; this can be restored when needed. Fixes warning: no previous prototype for ‘ufshcd_query_descriptor_retry’ Introduced by commit a70e91b8bbaa ("scsi: ufs: add retry for query descriptors")' Signed-off-by: Tomas Winkler --- drivers/scsi/ufs/ufshcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index f8fa72c31a9d..629140c11be6 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1982,7 +1982,7 @@ out: * The buf_len parameter will contain, on return, the length parameter * received on the response. */ -int ufshcd_query_descriptor_retry(struct ufs_hba *hba, +static int ufshcd_query_descriptor_retry(struct ufs_hba *hba, enum query_opcode opcode, enum desc_idn idn, u8 index, u8 selector, u8 *desc_buf, int *buf_len) { @@ -1998,7 +1998,6 @@ int ufshcd_query_descriptor_retry(struct ufs_hba *hba, return err; } -EXPORT_SYMBOL(ufshcd_query_descriptor_retry); /** * ufshcd_read_desc_param - read the specified descriptor parameter