Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4205881ybz; Tue, 28 Apr 2020 07:28:53 -0700 (PDT) X-Google-Smtp-Source: APiQypIkSGEc5Ghzq56YFPlnzA64HsMHYlTieWZgeYS5TypERT5ndKGZZZOmfCEj8qoaq7lGFRn1 X-Received: by 2002:a17:906:4548:: with SMTP id s8mr24372765ejq.349.1588084133170; Tue, 28 Apr 2020 07:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588084133; cv=none; d=google.com; s=arc-20160816; b=aXJVvu472wh9RNk+ElJhI8sF3fsZFhaJCulz0zwDYuVtSPAPEm7PO8sKflqGeItcVg m81/oIuOuqLoiRXrdcKbDANkFfSVH5+el/Rjjqq1AcBoPHSuKmU4qsnDpeKsoxgguw2q 2cYkEydesUatr2Hb1L4k3A0Q9DZOpft8mUGXq6ST1P/dZZPQIgX7Q5R4Czf6xc6kFB0n JTrGpPPayNggX3EB4nEctboxwOsvL2ks0fqWZo7QimMza49YZPq1Pm1OmNfEZXKDtNhr NB9BmcEoQWm7JldNno5qK738Z7g6c0Kj9o+QbfOBn69HOrhMF3d8jGsACASF6UpHzSDD kOEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=Q536HUdRDiwCeFtyBvxsfcPLV6dHJL7EQUA8DH0pwk4=; b=nPb3mEtH0BZFndnh8ZMRDSWrHQ7CLNeQB3UfrdZOnVyF+uvBDqgfNqKAqMlNHsvhL6 GGF9jfQPRnSBqQGk3tzmLrir6MDWibwBaZT7RN4tk5bvgEFmw6wZDADj08aTJTmbMHn7 WQ3eREVXnMmh+48tC6jgcVYnSPswCiTpwvIcQn+hzbYQwNN03os0wV7Weh9DL50AKhg0 0vKybcLs/m86Byyvh/4614eLrC1kKS1orPhAc7sbBvoh1Pye/DAm+EaW4xdhwFwsBKfY MRpP+HM6Cd355A3uPDQbvD6/tS2cb1KeDeR3phvlQ6zDl3nCbsZ2r0X9tw4/biWPD9ZQ GG6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si1671993edt.563.2020.04.28.07.28.25; Tue, 28 Apr 2020 07:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgD1O0u (ORCPT + 99 others); Tue, 28 Apr 2020 10:26:50 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36815 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbgD1O0t (ORCPT ); Tue, 28 Apr 2020 10:26:49 -0400 Received: by mail-pf1-f193.google.com with SMTP id z1so9065414pfn.3; Tue, 28 Apr 2020 07:26:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Q536HUdRDiwCeFtyBvxsfcPLV6dHJL7EQUA8DH0pwk4=; b=dofea+5K95Dm5q5kAcGTgwL29/bTfhMQWkNwLKTSDIVnAFHKLO0n9KVDa+KHbt0HR3 RX9QsfeAgQmJl0kw96M2kAgzuGmQtxtCTJSQ3i/csjLuubtoLY4qGqV5a4d1xbIvvhQB wXeaqWLSWRr926gNGFSAS+ywmnDCvi1ULEP5rLmZiMwH12/7Kq8SrFVNKaYl/njYSnps rZxQKl/cBqBUoH0VLYG39+RQggXLjLb1DXTtIvonQXxbWz8oMF2dgRzlHQmHgAOagVWm 28ZS+R7VzGca+RlLx8XQgHO8w9QtLjHytjLhSOWJU2AL1s40BVbl/e6DM6afjcu0/Pfq 9Mzw== X-Gm-Message-State: AGi0PuZFq3Vt6dc4FP/aDxVuAzq8OvDMUAe2r40KfVjff/hBWYQ6Tc9g K08pNORXQoBMLc+33MzJpx8VR3+n0vyeGg== X-Received: by 2002:a62:ee02:: with SMTP id e2mr5444174pfi.161.1588084008048; Tue, 28 Apr 2020 07:26:48 -0700 (PDT) Received: from ?IPv6:2601:647:4000:d7:1473:9ec8:73db:e572? ([2601:647:4000:d7:1473:9ec8:73db:e572]) by smtp.gmail.com with ESMTPSA id y21sm15047059pfm.219.2020.04.28.07.26.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Apr 2020 07:26:47 -0700 (PDT) Subject: Re: [PATCH][next] scsi: qla2xxx: make 1 bit bit-fields unsigned int To: Colin King , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" , Arun Easi , Himanshu Madhani , linux-scsi@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200428102013.1040598-1-colin.king@canonical.com> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4cZA9DH5xialliWU447Bts8TJNa3lZKS1 AvW1ZklbvJfAJJAwzDih35LxU2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XA9rrc4EBvZruWQ+5/zjVrhhfUAx12CzL4oQ9Ro2k45daYaonKTANYG22y //x8dLe2Fv1By4SKGhmzwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: <0c085901-349e-63f5-2dce-679eca553718@acm.org> Date: Tue, 28 Apr 2020 07:26:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200428102013.1040598-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-04-28 03:20, Colin King wrote: > From: Colin Ian King > > The bitfields mpi_fw_dump_reading and mpi_fw_dumped are currently signed > which is not recommended as the representation is an implementation defined > behaviour. Fix this by making the bit-fields unsigned ints. > > Fixes: cbb01c2f2f63 ("scsi: qla2xxx: Fix MPI failure AEN (8200) handling") > Signed-off-by: Colin Ian King > --- > drivers/scsi/qla2xxx/qla_def.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h > index daa9e936887b..172ea4e5887d 100644 > --- a/drivers/scsi/qla2xxx/qla_def.h > +++ b/drivers/scsi/qla2xxx/qla_def.h > @@ -4248,8 +4248,8 @@ struct qla_hw_data { > int fw_dump_reading; > void *mpi_fw_dump; > u32 mpi_fw_dump_len; > - int mpi_fw_dump_reading:1; > - int mpi_fw_dumped:1; > + unsigned int mpi_fw_dump_reading:1; > + unsigned int mpi_fw_dumped:1; > int prev_minidump_failed; > dma_addr_t eft_dma; > void *eft; Reviewed-by: Bart Van Assche