From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752228AbbCAI3n (ORCPT ); Sun, 1 Mar 2015 03:29:43 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:52408 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbbCAI3k (ORCPT ); Sun, 1 Mar 2015 03:29:40 -0500 Message-ID: <721fb67352e3cefe26a4fda6d2b289fe.squirrel@codeaurora.org> In-Reply-To: References: <1424678898-3723-1-git-send-email-gbroner@codeaurora.org> <1424678898-3723-3-git-send-email-gbroner@codeaurora.org> Date: Sun, 1 Mar 2015 08:29:39 -0000 Subject: Re: [PATCH v3 2/4] scsi: ufs: add debugfs for ufs From: "Gilad Broner" To: "Akinobu Mita" Cc: "Gilad Broner" , "Jej B" , "LKML" , "linux-scsi@vger.kernel.org" , linux-arm-msm@vger.kernel.org, "Santosh Y" , linux-scsi-owner@vger.kernel.org, "Subhash Jadavani" , "Yaniv Gardi" , "Dolev Raviv" , "Lee Susman" , "Raviv Shvili" , "Vinayak Holikatti" , "James E.J. Bottomley" User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> +#define UFSHCD_UPDATE_TAG_STATS(hba, tag) >> +#define UFSHCD_UPDATE_TAG_STATS_COMPLETION(hba, cmd) >> +#define UFSHCD_UPDATE_ERROR_STATS(hba, type) >> + >> +#endif > > Is there any reason that these are defined as macros instead of > static functions? No special reason that I'm aware of. I will convert those to functions. >> out_remove_scsi_host: >> @@ -5769,6 +5969,7 @@ exit_gating: >> out_disable: >> hba->is_irq_enabled = false; >> scsi_host_put(host); >> + ufsdbg_remove_debugfs(hba); >> ufshcd_hba_exit(hba); >> out_error: >> return err; > > This ufsdbg_remove_debugfs() call on error path of ufshcd_init() is > unnecessary. Because ufsdbg_add_debugfs() is called at the last of > ufshcd_init() and can't fail. > I will fix this in the next patchset. -- Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project