From patchwork Mon Feb 11 12:25:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10805581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE4C217E0 for ; Mon, 11 Feb 2019 12:26:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCFE42A157 for ; Mon, 11 Feb 2019 12:26:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6EC528F39; Mon, 11 Feb 2019 12:26:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E5382A157 for ; Mon, 11 Feb 2019 12:26:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727327AbfBKMZY (ORCPT ); Mon, 11 Feb 2019 07:25:24 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44640 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727318AbfBKMZX (ORCPT ); Mon, 11 Feb 2019 07:25:23 -0500 Received: by mail-lj1-f194.google.com with SMTP id a16so4463021ljb.11 for ; Mon, 11 Feb 2019 04:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P5r+7TNRpT4IOWYOkJ4Od3nYrWD71FZGJYmKpbNhmMc=; b=hWGNlgok/Afol8f4prcEdIM03knAXuUS0vPIR4Hals6x65dhEhbnf2mQ1g/bMijxYo w/bDGAcgT3GK9B3tKPICceWVw6KsFTqmyLhweCa8nYGhjA22iGcI+4+nTajupEJ8mznq JcH3K71jvHWI3FDygU3iy2n4HluzEsWWXVcOLhnehicnOmJjdRE0MyO9Tz2rb1dheBBE JGwMvzTvuabjkd4RHxiQRVrFBMGexU+0UQqkQGaQhfz02iBIW9PHbj49AiPQ0nY9ZO93 68WdUOV2nx+V+ygfEwP7qjyKHz/y9QdvTPpyT62SiFpM8TaGJa1EdzNNhQYrQIPKcr+6 pJCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=P5r+7TNRpT4IOWYOkJ4Od3nYrWD71FZGJYmKpbNhmMc=; b=t3koqk2NOHjWoIRXG4NJp9QzmPlrN1CZUXQj94al7T3x5dgqakZv1j//0ad3Gx9yLP fU0QSXhGWhYT3H73Gs5grj5elGrk+9+haf7XewEBMBfYaGaAQNvn1NOPJ9Y2LZj9g3aU rm6iXDG7tr/FLpFuqyGoJPD68giCMwpIzM7MAMggzwFe2I4/gkj7HxsXNoMV3zg7GGrH gjK2urC1CgXR5OwrwLmiAIl3VXyxuSMGzw+qCfOS+MczpwXVClU/E4EgW2I0MJnWN8y8 7ryquzkTuu/4pnstW3ZguK1sb9LF5mjheV2z1uoBDARqNti8bnyzL15B0q5q27YlLZNE 696g== X-Gm-Message-State: AHQUAuZ7ThgJC2qC2ZaqnWcqaRQ7V6jmagV7dWn2nTXnDFnB0Ji/Pgzn boe6mPoB2YcIuxAPS9Mb8Y+IOQ== X-Google-Smtp-Source: AHgI3IaCLBCua02CbzvdHEmPu3Nkd8IDEQ+Yxcn2u6gB8rwYt+beBOVndsaXB+ZEI2VSY/caHhqSkg== X-Received: by 2002:a2e:2416:: with SMTP id k22-v6mr8066565ljk.80.1549887921125; Mon, 11 Feb 2019 04:25:21 -0800 (PST) Received: from skyninja.webspeed.dk (2-111-91-225-cable.dk.customer.tdc.net. [2.111.91.225]) by smtp.gmail.com with ESMTPSA id d70sm2278481lfe.14.2019.02.11.04.25.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 04:25:18 -0800 (PST) From: =?utf-8?q?Matias_Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , =?utf-8?q?Matias_Bj?= =?utf-8?q?=C3=B8rling?= Subject: [GIT PULL 3/8] lightnvm: Use u64 instead of __le64 for CPU visible side Date: Mon, 11 Feb 2019 13:25:04 +0100 Message-Id: <20190211122509.19910-4-mb@lightnvm.io> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190211122509.19910-1-mb@lightnvm.io> References: <20190211122509.19910-1-mb@lightnvm.io> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andy Shevchenko Sparse complains about using strict data types: drivers/lightnvm/pblk-read.c:254:43: warning: incorrect type in assignment (different base types) drivers/lightnvm/pblk-read.c:254:43: expected restricted __le64 drivers/lightnvm/pblk-read.c:254:43: got unsigned long long [unsigned] [usertype] drivers/lightnvm/pblk-read.c:255:29: warning: cast from restricted __le64 drivers/lightnvm/pblk-read.c:268:29: warning: cast from restricted __le64 drivers/lightnvm/pblk-read.c:328:41: warning: incorrect type in assignment (different base types) drivers/lightnvm/pblk-read.c:328:41: expected restricted __le64 drivers/lightnvm/pblk-read.c:328:41: got unsigned long long [unsigned] [usertype] In the code it seems explicit that lba_list_mem and lba_list_media members of struct pblk_pr_ctx are used on CPU side, which means they should not be of strict types. Change types of lba_list_mem and lba_list_media members to be u64. Signed-off-by: Andy Shevchenko Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index 85e38ed62f85..0dd697ea201e 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lightnvm/pblk.h @@ -131,8 +131,8 @@ struct pblk_pr_ctx { unsigned int bio_init_idx; void *ppa_ptr; dma_addr_t dma_ppa_list; - __le64 lba_list_mem[NVM_MAX_VLBA]; - __le64 lba_list_media[NVM_MAX_VLBA]; + u64 lba_list_mem[NVM_MAX_VLBA]; + u64 lba_list_media[NVM_MAX_VLBA]; }; /* Pad context */