Re: [PATCH 2/3 ver 2] SCSI: implement runtime Power Management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 27 Jul 2010, James Bottomley wrote:

> > > @@ -147,7 +148,18 @@ static inline void scsi_netlink_exit(voi
> > >  /* scsi_pm.c */
> > >  #ifdef CONFIG_PM_OPS
> > >  extern const struct dev_pm_ops scsi_bus_pm_ops;
> > > +#ifdef CONFIG_PM_RUNTIME
> > > +extern void scsi_autopm_get_target(struct scsi_target *);
> > > +extern void scsi_autopm_put_target(struct scsi_target *);
> > > +extern int scsi_autopm_get_host(struct Scsi_Host *);
> > > +extern void scsi_autopm_put_host(struct Scsi_Host *);
> > >  #else
> > > +static inline void scsi_autopm_get_target(struct scsi_target *) {}
> > > +static inline void scsi_autopm_put_target(struct scsi_target *) {}
> > > +static inline int scsi_autopm_get_host(struct Scsi_Host *) { return 0; }
> > > +static inline void scsi_autopm_put_host(struct Scsi_Host *) {}
> > 
> > You didn't compile this, did you?  The compiler gets distinctly annoyed
> > to see an inline function with no actual variable for the argument ...

Arggh!  I hate changes that are affected by multiple configuration 
options.

In fact I did test an earlier version of the patch, but it's entirely
possible that I missed one of the four combinations.

> > I fixed up this and the one in scsi_device.h
> 
> Since there were actually 3 relevant config variations, this turned out
> to be the final fix.

Yep, you're absolutely right.  Many thanks for fixing this up.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux