Re: [PATCH 05/29] target/iscsi: Remove CONFIG_SMP and if 0 ifdefs

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

 



On Wed, 2012-04-04 at 23:38 +0100, Russell King - ARM Linux wrote:
> On Wed, Apr 04, 2012 at 03:34:34PM -0700, Nicholas A. Bellinger wrote:
> > On Tue, 2012-04-03 at 15:51 -0700, Andy Grover wrote:
> > > Compiles fine with CONFIG_SMP=y or n.
> > > 
> > > Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
> > > ---
> > >  drivers/target/iscsi/iscsi_target.c |   20 --------------------
> > >  1 files changed, 0 insertions(+), 20 deletions(-)
> > > 
> > > diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
> > > index 816baba..c9bf158 100644
> > > --- a/drivers/target/iscsi/iscsi_target.c
> > > +++ b/drivers/target/iscsi/iscsi_target.c
> > > @@ -3416,8 +3416,6 @@ static void iscsit_tx_thread_wait_for_tcp(struct iscsi_conn *conn)
> > >  	}
> > >  }
> > >  
> > > -#ifdef CONFIG_SMP
> > > -
> > 
> > Mmm, last time I checked on 2.6.x this worked on x86_64, but fails to
> > compile on arm CONFIG_SMP=n due to missing cpumask_set_cpu() and
> > set_cpus_allowed_ptr()..
> > 
> > Arnd + Russel (Cc'ed), do you know if this is still the case that we
> > need CONFIG_SMP here..?
> 
> No idea, first I've heard of that kind of report.
> 
> It brings up the question why this file isn't including headers which are
> relevant for its compilation.  For the two functions you mention, that's
> linux/cpumask.h and linux/sched.h, both of which are pretty standard
> kernel includes.
> 
> I don't think this has anything specific to do with ARM.

The last time I saw this was on .32 era code with out-of-tree
iscsi-target builds, so it may have well be fixed elsewhere since then.

I'll go ahead and merge this into lio-core.git (the target upstream
tree) for now, and will verify with an arm CONFIG_SMP=n v3.4-rc build
ahead dropping into target-pending/for-next..

Thanks for the quick response !

--nab



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


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux