Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753303AbcDSI3L (ORCPT ); Tue, 19 Apr 2016 04:29:11 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34621 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752962AbcDSI3I (ORCPT ); Tue, 19 Apr 2016 04:29:08 -0400 Date: Tue, 19 Apr 2016 16:21:46 +0800 From: Peter Chen To: Roger Quadros Cc: Peter.Chen@nxp.com, balbi@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 3/3] usb: otg-fsm: Prevent build warning "VDBG" redefined Message-ID: <20160419082146.GB15789@shlinux2.ap.freescale.net> References: <1459331790-29651-1-git-send-email-rogerq@ti.com> <1459331790-29651-4-git-send-email-rogerq@ti.com> <56FCF0BF.2000203@ti.com> <20160405085237.GD31351@shlinux2.ap.freescale.net> <5703B500.900@ti.com> <5703C223.5010008@ti.com> <20160406064639.GA8466@shlinux2.ap.freescale.net> <5704B730.2040105@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5704B730.2040105@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1630 Lines: 44 On Wed, Apr 06, 2016 at 10:13:52AM +0300, Roger Quadros wrote: > On 06/04/16 09:46, Peter Chen wrote: > > On Tue, Apr 05, 2016 at 04:48:19PM +0300, Roger Quadros wrote: > >> Peter, > >> > >> On 05/04/16 15:52, Roger Quadros wrote: > >>> Peter, > >>> > >>> On 05/04/16 11:52, Peter Chen wrote: > >>>> On Thu, Mar 31, 2016 at 12:41:19PM +0300, Roger Quadros wrote: > >>>>> If usb/otg-fsm.h and usb/composite.h are included together > >>>>> then it results in the build warning [1]. > >>>>> > >>>>> Prevent that by using dev_vdbg() instead. > >>>>> > >>>> > >>>> After considering it more, I think it may not be a good solution > >>>> that we delete VDBG at one header file, but keep it at another > >>>> one. In future, we may add VDBG at another file, and cause the > >>>> same problem. In fact, I find VDBG is defined at several files > >>>> in USB folder (and only at USB folder), I plan to replace them > >>>> with standard one (dev_vdbg) together. > >>> > >>> OK, please ignore this patch then. > >> > >> On second thoughts can you please retain this patch and post the > >> VDBG removal from composite.h cleanup separately? > >> > > > > I find the struct usb_otg has a struct device pointer, and you changes > > all fsm stuffs under struct usb_otg (like otg.fsm) in your later patches, > > then, would you please refine this patch that just using otg->dev for > > print and move VDBG to phy-fsl-usb.c, of course, you need to move this > > patch in that patch series. > > OK. I'll rework this patch and include it in the otg series. > I have already queued your 1st and 2nd patch at my tree. -- Best Regards, Peter Chen