Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1382275
| From | Peter Chen <hzpeterchen@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7 3/3] usb: otg-fsm: Prevent build warning "VDBG" redefined |
| Date | 2016-04-19 10:30 +0200 |
| Message-ID | <rpzcL-3LU-21@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <rkv06-sF-19@gated-at.bofh.it> <rkyKm-3D8-17@gated-at.bofh.it> <rkzwM-4pv-27@gated-at.bofh.it> <rkPBw-8oO-15@gated-at.bofh.it> <rkPUS-k6-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v7 3/3] usb: otg-fsm: Prevent build warning "VDBG" redefined Peter Chen <hzpeterchen@gmail.com> - 2016-04-19 10:30 +0200
csiph-web