public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Smart <james.smart@emulex.com>
To: James Bottomley <James.Bottomley@suse.de>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 4/6] lpfc 8.3.21: Initialization and user interface changes
Date: Fri, 18 Feb 2011 17:29:37 -0500	[thread overview]
Message-ID: <4D5EF2D1.4080106@emulex.com> (raw)
In-Reply-To: <1298062769.3007.181.camel@mulgrave.site>



On 2/18/2011 3:59 PM, James Bottomley wrote:
> On Wed, 2011-02-16 at 12:39 -0500, James Smart wrote:
>> - Make link speed not supported by port message an error message.
>> - Add support for new SLI failure codes add sysfs parameter to reflect the
>>    security setting and current state.
>> - Add all lpfc module parameters to the /sys/modules/lpfc/parameters directory.
>>
>>   Signed-off-by: Alex Iannicelli<alex.iannicelli@emulex.com>
>>   Signed-off-by: James Smart<james.smart@emulex.com>
>
> Someone didn't compile check this:
>
> drivers/scsi/lpfc/lpfc_debugfs.c:96: error: 'S_IRUGO0' undeclared here (not in a function)
> drivers/scsi/lpfc/lpfc_debugfs.c:96: error: bit-field '<anonymous>' width not an integer constant
> make[3]: *** [drivers/scsi/lpfc/lpfc_debugfs.o] Error 1
>
> The error is here:

Actually I did. I compile check after every patch application, and started 
with a scsi-misc-2.6 git snapshot the evening prior to the post.  We also do 
PPC cross builds and checks as well before posting.  So I'm a little at a loss 
why this is failing.  Hmmm.... maybe my check didn't enable DEBUGFS, as we've 
been running this in so many places it didn't seem meaningful.  If so - crud. 
I apologize.

Checking it out now....

-- james s




>
>> diff -upNr a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
>> --- a/drivers/scsi/lpfc/lpfc_debugfs.c	2010-08-04 10:31:45.000000000 -0400
>> +++ b/drivers/scsi/lpfc/lpfc_debugfs.c	2011-02-16 11:33:35.000000000 -0500
>> @@ -82,23 +82,23 @@
>>    *                               the HBA. X MUST also be a power of 2.
>>    */
>>   static int lpfc_debugfs_enable = 1;
>> -module_param(lpfc_debugfs_enable, int, 0);
>> +module_param(lpfc_debugfs_enable, int, S_IRUGO);
>>   MODULE_PARM_DESC(lpfc_debugfs_enable, "Enable debugfs services");
>>
>>   /* This MUST be a power of 2 */
>>   static int lpfc_debugfs_max_disc_trc;
>> -module_param(lpfc_debugfs_max_disc_trc, int, 0);
>> +module_param(lpfc_debugfs_max_disc_trc, int, S_IRUGO);
>>   MODULE_PARM_DESC(lpfc_debugfs_max_disc_trc,
>>   	"Set debugfs discovery trace depth");
>>
>>   /* This MUST be a power of 2 */
>>   static int lpfc_debugfs_max_slow_ring_trc;
>> -module_param(lpfc_debugfs_max_slow_ring_trc, int, 0);
>> +module_param(lpfc_debugfs_max_slow_ring_trc, int, S_IRUGO0);
>>   MODULE_PARM_DESC(lpfc_debugfs_max_slow_ring_trc,
>>   	"Set debugfs slow ring trace depth");
>
> I assume this is just supposed to be S_IRUGO like everything else?
>
> James
>
>

      reply	other threads:[~2011-02-18 22:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-16 17:39 [PATCH 4/6] lpfc 8.3.21: Initialization and user interface changes James Smart
2011-02-18 20:59 ` James Bottomley
2011-02-18 22:29   ` James Smart [this message]

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=4D5EF2D1.4080106@emulex.com \
    --to=james.smart@emulex.com \
    --cc=James.Bottomley@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    /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