From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQLOo-0005C3-KM for qemu-devel@nongnu.org; Fri, 04 May 2012 12:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQLOj-0006K0-Sf for qemu-devel@nongnu.org; Fri, 04 May 2012 12:30:30 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:43288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQLOj-0006J3-MN for qemu-devel@nongnu.org; Fri, 04 May 2012 12:30:25 -0400 Message-ID: <4FA40420.1070902@weilnetz.de> Date: Fri, 04 May 2012 18:30:24 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1336121154-26517-1-git-send-email-pbonzini@redhat.com> <1336121154-26517-7-git-send-email-pbonzini@redhat.com> In-Reply-To: <1336121154-26517-7-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/14] scsi: change "removable" field to host many features List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Am 04.05.2012 10:45, schrieb Paolo Bonzini: > It is pointless to add a uint32_t field for every new feature. > Since we will need a new feature soon, convert accesses to "removable" > to look at bit 0 only. > > Signed-off-by: Paolo Bonzini > --- > hw/scsi-disk.c | 23 +++++++++++++++-------- > 1 file changed, 15 insertions(+), 8 deletions(-) > > diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c > index fbb1041..e04b469 100644 > --- a/hw/scsi-disk.c > +++ b/hw/scsi-disk.c > @@ -61,10 +61,12 @@ typedef struct SCSIDiskReq { > BlockAcctCookie acct; > } SCSIDiskReq; > > +#define SCSI_DISK_F_REMOVABLE 0 > + ERROR: code indent should never use tabs #23: FILE: hw/scsi-disk.c:64: +#define SCSI_DISK_F_REMOVABLE^I0$ total: 1 errors, 0 warnings, 74 lines checked 0006-scsi-change-removable-field-to-host-many-features.patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.