From: Brian King <brking@linux.vnet.ibm.com>
To: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>,
linux-scsi@vger.kernel.org
Cc: wenxiong@linux.vnet.ibm.com
Subject: Re: [PATCH 3/5] ipr: Inquiry IOA page 0xC4 during initialization.
Date: Fri, 30 Oct 2015 17:08:30 -0500 [thread overview]
Message-ID: <5633EA5E.2040104@linux.vnet.ibm.com> (raw)
In-Reply-To: <1446223749-17416-3-git-send-email-krisman@linux.vnet.ibm.com>
On 10/30/2015 11:49 AM, Gabriel Krisman Bertazi wrote:
> diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
> index 69257c4..f0238cc 100644
> --- a/drivers/scsi/ipr.h
> +++ b/drivers/scsi/ipr.h
> @@ -849,6 +849,16 @@ struct ipr_inquiry_page0 {
> u8 page[IPR_INQUIRY_PAGE0_ENTRIES];
> }__attribute__((packed));
>
> +struct ipr_inquiry_pageC4 {
> + u8 peri_qual_dev_type;
> + u8 page_code;
> + u8 reserved1;
> + u8 len;
> + u8 cache_cap[4];
> +#define IPR_CAP_SYNC_CACHE 0x08
> + u8 reserved2[20];
> +}__attribute__((packed));
This triggers a couple complaints from checkpatch. You need a space after the },
which checkpatch flags as an error and __packed is preferred to __attribute__((packed)),
which is flagged as a warning. There are a couple of other warnings that checkpatch
issues in this series, so you might want to take a look at them, fixup, and resend.
We should probably spin a follow up patch to fix up the __attribute__ usage in ipr.h,
since you were simply being consistent with that.
Thanks,
Brian
--
Brian King
Power Linux I/O
IBM Linux Technology Center
next prev parent reply other threads:[~2015-10-30 22:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 16:49 [PATCH 1/5] ipr: Add delay to ensure coherent dumps Gabriel Krisman Bertazi
2015-10-30 16:49 ` [PATCH 2/5] ipr: Clear NO_ULEN_CHK bit when resource is a vset Gabriel Krisman Bertazi
2015-10-30 17:52 ` Manoj Kumar
2015-10-30 16:49 ` [PATCH 3/5] ipr: Inquiry IOA page 0xC4 during initialization Gabriel Krisman Bertazi
2015-10-30 22:08 ` Brian King [this message]
2015-10-30 16:49 ` [PATCH 4/5] ipr: Issue Configure Cache Parameters command Gabriel Krisman Bertazi
2015-10-30 16:49 ` [PATCH 5/5] ipr: Driver version 2.6.3 Gabriel Krisman Bertazi
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=5633EA5E.2040104@linux.vnet.ibm.com \
--to=brking@linux.vnet.ibm.com \
--cc=krisman@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=wenxiong@linux.vnet.ibm.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