From patchwork Sun Aug 28 08:01:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74874 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1105407qga; Sun, 28 Aug 2016 01:03:09 -0700 (PDT) X-Received: by 10.98.144.144 with SMTP id q16mr21269854pfk.98.1472371389438; Sun, 28 Aug 2016 01:03:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d63si32043853pfc.34.2016.08.28.01.03.09; Sun, 28 Aug 2016 01:03:09 -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; dkim=pass header.i=@linaro.org; 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=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755292AbcH1IDB (ORCPT + 27 others); Sun, 28 Aug 2016 04:03:01 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34392 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbcH1IC5 (ORCPT ); Sun, 28 Aug 2016 04:02:57 -0400 Received: by mail-pf0-f174.google.com with SMTP id p64so41804577pfb.1 for ; Sun, 28 Aug 2016 01:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=9Pw3Oj/aVJuYTXo4xbCA+zSoDsE1dOvLnlM85Lm4bjQ=; b=eX/yGQjFLbkfKsNImH6CO30Zd79i23vxw1+ktDuLHwUt5LZ0CfMqBEY3bi+p2caS7v uynrzWt2f2Do8ieXgV/1iojbVNMdJMOxW8ikmxQ9yb7/O7Zc3VNnb4hbpfXzZm9Qm6kx xt2obvItrPb9NfGYI4M3Veu0hRWJU35WZGpjc= 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; bh=9Pw3Oj/aVJuYTXo4xbCA+zSoDsE1dOvLnlM85Lm4bjQ=; b=lvWsFbb/Y6yAnjlbwXGl5Ir9KpZGbULHPtImdKuDNw2jUu5einH5crPuZpDy8LABnC maKV6IbSSHreXAmmyDWe9zpDdenS42pLKWakrVGwZRA00+CAmmEJIUvDGpMDoeUES8am ywaXJegiSEJdI/eV7AH9fYQyro6/iMm7hvG6t/AiKKNqmVpgzNni04sZxgBJJrqy4DDI Deuz1bNQeyk/knsSJGkwV2X3DV3pBmwLSDEnk8SMY3SBl+w7NP1m+TquNjg8c3+VF8Ux wm6t24k6zBxqTSxfCKNLrROhf6qfLBwC0UkU4Mh7/M/3y8i4lUUmMzIXyeAhxZKEB6cL oy1w== X-Gm-Message-State: AE9vXwMmtSgy969aQpl0ss7wU7jJffQ0Cu0+XDesUPCOf6cLGc0glCprNPDGGZYAmhVJ0gH9 X-Received: by 10.98.78.138 with SMTP id c132mr21374784pfb.67.1472371376020; Sun, 28 Aug 2016 01:02:56 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.142]) by smtp.gmail.com with ESMTPSA id e187sm40377765pfg.43.2016.08.28.01.02.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Aug 2016 01:02:55 -0700 (PDT) From: Baoyou Xie To: vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@linaro.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] scsi: ufs: add missing declaration in ufshcd.h Date: Sun, 28 Aug 2016 16:01:22 +0800 Message-Id: <1472371282-14691-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning about global functions without a declaration in the scsi ufshcd driver when building with W=1: drivers/scsi/ufs/ufshcd.c:1991:5: warning: no previous prototype for 'ufshcd_query_descriptor_retry' [-Wmissing-prototypes] in fact, this function is implemented in ufshcd.c and exported but need to be declared in header file. Signed-off-by: Baoyou Xie --- drivers/scsi/ufs/ufshcd.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 430bef1..2f696ea 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -713,6 +713,9 @@ int ufshcd_read_string_desc(struct ufs_hba *hba, int desc_index, u8 *buf, /* Expose Query-Request API */ int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, enum flag_idn idn, bool *flag_res); +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); int ufshcd_hold(struct ufs_hba *hba, bool async); void ufshcd_release(struct ufs_hba *hba); u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);