From: Sam Ravnborg <sam@ravnborg.org>
To: Jing Huang <huangj@brocade.com>
Cc: James.Bottomley@HansenPartnership.com, kgudipat@brocade.com,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
rvadivel@brocade.com, vravindr@brocade.com
Subject: Re: [PATCH 4/5] bfa: Brocade BFA FC SCSI driver (makefile)
Date: Sat, 14 Mar 2009 22:02:51 +0100 [thread overview]
Message-ID: <20090314210251.GA3353@uranus.ravnborg.org> (raw)
In-Reply-To: <200903141958.n2EJwffd030299@blc-10-6.brocade.com>
On Sat, Mar 14, 2009 at 12:58:41PM -0700, Jing Huang wrote:
> From: Jing Huang <huangj@brocade.com>
>
> This patch contains Makefile and Kconfig file for scsi and bfa. It is created
> using 2.6.29-rc8 kernel.
>
> Signed-off-by: Jing Huang <huangj@brocade.com>
> ---
> Kconfig | 9 +++++++++
> Makefile | 1 +
> bfa/Makefile | 28 ++++++++++++++++++++++++++++
> 3 files changed, 38 insertions(+)
>
> diff -urpN orig/drivers/scsi/bfa/Makefile patch/drivers/scsi/bfa/Makefile
> --- orig/drivers/scsi/bfa/Makefile 1969-12-31 16:00:00.000000000 -0800
> +++ patch/drivers/scsi/bfa/Makefile 2009-03-14 11:44:59.337712000 -0700
> @@ -0,0 +1,28 @@
> +#
> +# Copyright (c) 2005-2008 Brocade Communications Systems, Inc.
> +# All rights reserved
> +# www.brocade.com
> +#
> +# Linux driver for Brocade Fibre Channel Host Bus Adapter.
> +#
> +# This program is free software; you can redistribute it and/or modify it
> +# under the terms of the GNU General Public License (GPL) Version 2 as
> +# published by the Free Software Foundation
> +#
> +# This program is distributed in the hope that it will be useful, but
> +# WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> +# General Public License for more details.
> +#
No one else needs this boiler plate - please remove it.
> +obj-$(CONFIG_SCSI_BFA_FC) := bfa.o
OK
> +
> +bfa-objs := bfad.o bfad_intr.o bfad_os.o bfad_im.o bfad_attr.o bfad_fwimg.o \
> + bfa_core.o bfa_ioc.o bfa_iocfc.o bfa_fcxp.o bfa_diag.o \
> + bfa_fcdiag.o bfa_lps.o bfa_hw_cb.o bfa_hw_ct.o bfa_drv.o \
> + bfa_intr.o bfa_timer.o bfa_rport.o bfa_port.o bfa_uf.o \
> + bfa_sgpg.o bfa_module.o bfa_ioim.o bfa_itnim.o bfa_fcpim.o \
> + bfa_tskim.o bfa_port.o bfa_vport.o bfa_lport.o bfa_fabric.o \
> + bfa_auth.o bfa_vfapi.o bfa_log.o bfa_log_module.o bfa_csdebug.o \
> + bfa_sm.o plog.o
a) use of -objs is deprecated.
Please use:
bfa-y := bfad.o ...
b) As a style thing the following is preferred (by me at least):
bfa-y := bfad.o bfad_intr.o bfad_os.o bfad_im.o bfad_attr.o bfad_fwimg.o
# core stuff
bfa-y += bfa_core.o bfa_ioc.o bfa_iocfc.o bfa_fcxp.o bfa_diag.o
# interrup hander
bfa-y += bfa_intr.o
No longer any need for escaping the newline with a backslahs
And you can add descriptive comments too.
> +EXTRA_CFLAGS += -I$(obj) -I$(obj)/include
Neither of the above is needed.
If you really need to specify addtional options to gcc use:
ccflags-y := ...
Sam
next prev parent reply other threads:[~2009-03-14 21:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-14 19:58 [PATCH 4/5] bfa: Brocade BFA FC SCSI driver (makefile) Jing Huang
2009-03-14 21:02 ` Sam Ravnborg [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-24 0:12 Krishna Gudipati
2009-04-02 3:35 Krishna Gudipati
2009-04-02 13:36 ` James Bottomley
2009-04-04 12:41 ` Jing Huang
2009-04-04 13:19 ` James Bottomley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090314210251.GA3353@uranus.ravnborg.org \
--to=sam@ravnborg.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=huangj@brocade.com \
--cc=kgudipat@brocade.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=rvadivel@brocade.com \
--cc=vravindr@brocade.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox