From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757285AbbIUQYg (ORCPT ); Mon, 21 Sep 2015 12:24:36 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:34356 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756784AbbIUQYP (ORCPT ); Mon, 21 Sep 2015 12:24:15 -0400 From: Rasmus Villemoes To: Maurizio Lombardi Cc: Tejun Heo , joe@perches.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, dgilbert@interlog.com Subject: Re: [RFC PATCH 0/3] fix *pbl format support Organization: D03 References: <1442394523-19176-1-git-send-email-mlombard@redhat.com> <87d1xi4kic.fsf@rasmusvillemoes.dk> <20150916174536.GE3243@mtj.duckdns.org> <877fnq2jc0.fsf@rasmusvillemoes.dk> <56001A43.6050501@redhat.com> X-Hashcash: 1:20:150921:linux-kernel@vger.kernel.org::rQxWo0Zlnghkvm7U:0000000000000000000000000000000000YSC X-Hashcash: 1:20:150921:tj@kernel.org::8XGT0JOh/AvHX0aN:00000g5o X-Hashcash: 1:20:150921:joe@perches.com::WaJqi8Viqab0lE1Q:000w8Z X-Hashcash: 1:20:150921:dgilbert@interlog.com::AogQEJVbz+87LiZr:00000000000000000000000000000000000000001D+l X-Hashcash: 1:20:150921:linux-scsi@vger.kernel.org::W9uBNKkGkkSrohNx:000000000000000000000000000000000001nuw X-Hashcash: 1:20:150921:mlombard@redhat.com::xCimJwJZMpp0xgnX:0000000000000000000000000000000000000000005TPQ Date: Mon, 21 Sep 2015 18:24:13 +0200 In-Reply-To: <56001A43.6050501@redhat.com> (Maurizio Lombardi's message of "Mon, 21 Sep 2015 16:54:59 +0200") Message-ID: <87fv27lp02.fsf@rasmusvillemoes.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21 2015, Maurizio Lombardi wrote: > Hi Rasmus, > > On 09/16/2015 10:35 PM, Rasmus Villemoes wrote: >> >> I just remembered: I noticed a while ago that the qualifier member is >> only used inside format_decode (in the end, the information is folded >> into the type member), so one might as well use a local variable for >> that. This gives option (3): Make field_width a 24 bit bitfield. I think >> that should be sufficient for any realistic bitmap that one would >> print. The patch is also rather small. Surprisingly, bloat-o-meter even >> says that it's also a net win in code size: > > I tested your patch with scsi-debug and it works for me: Thanks for testing it! What do people think of this option? Rasmus