From patchwork Tue Mar 31 11:36:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 46584 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D72322159A for ; Tue, 31 Mar 2015 11:36:34 +0000 (UTC) Received: by lbdc10 with SMTP id c10sf3052749lbd.0 for ; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=SKrn/DJfbkQHzLP4J3yVdZphFGSeCYf63ZH6c2NhENI=; b=ezptf0tqHzCrEdqEE2jwAy55gQibmgvsVuIRd5lOVN0h74fb7IRELDT5B+3oFOcnBu qUghhCL4xYRpZhG4JBpZ/T5jAfSWuP6IuvE77vWfo+ImJqPWEx+i4OKXcrLP1/xJxKXV zuz5fKaN0b+Ppzt418XhmXTku65UoONbF5B9SO05Yt/YtBFwCcfrVv+xF2EOxrwtevB5 gMFJ4IvTohRyd0c9FfGsBPWirzsmuwIB1/b1sfkNpJW40d2sr+YcSlyH97tE+qAfSnqs DqgyKO0UzCBhyk+WmZUkfdZz95VL1TgE7ATv1kWa6jtKt82uswXB0lMsTYNV7x/vMNVn dQMw== X-Gm-Message-State: ALoCoQm9wswEh4qpKar7AZIvLkgVLgdqBmVsZtUzSGWb7QmvXCYzE3BGWlx+WL4CIvgx1Amu/Eaw X-Received: by 10.180.35.230 with SMTP id l6mr593901wij.0.1427801793809; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.169 with SMTP id x9ls693659lal.92.gmail; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) X-Received: by 10.152.36.101 with SMTP id p5mr4074750laj.50.1427801793512; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id lr17si9071826lbb.45.2015.03.31.04.36.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 04:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lajy8 with SMTP id y8so10303384laj.0 for ; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) X-Received: by 10.152.19.199 with SMTP id h7mr31564518lae.32.1427801793392; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1754159lbq; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) X-Received: by 10.152.44.200 with SMTP id g8mr8441482lam.46.1427801793018; Tue, 31 Mar 2015 04:36:33 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id cz5si2027445lac.174.2015.03.31.04.36.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 04:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbdc10 with SMTP id c10so10071778lbd.2 for ; Tue, 31 Mar 2015 04:36:32 -0700 (PDT) X-Received: by 10.112.48.107 with SMTP id k11mr14912651lbn.92.1427801792743; Tue, 31 Mar 2015 04:36:32 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id jl4sm2587574lbc.14.2015.03.31.04.36.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Mar 2015 04:36:31 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Subject: [PATCH] mmc: core: Convert the error field in struct mmc_command|data into an int Date: Tue, 31 Mar 2015 13:36:29 +0200 Message-Id: <1427801789-23522-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Everybody expects the error field in the struct mmc_command|data to be and int but it's actually an unsigned int. Let's convert it into an int to meet the expectations. Signed-off-by: Ulf Hansson --- include/linux/mmc/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 160448f..de722d4e 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -79,7 +79,7 @@ struct mmc_command { #define mmc_cmd_type(cmd) ((cmd)->flags & MMC_CMD_MASK) unsigned int retries; /* max number of retries */ - unsigned int error; /* command error */ + int error; /* command error */ /* * Standard errno values are used for errors, but some have specific @@ -108,7 +108,7 @@ struct mmc_data { unsigned int timeout_clks; /* data timeout (in clocks) */ unsigned int blksz; /* data block size */ unsigned int blocks; /* number of blocks */ - unsigned int error; /* data error */ + int error; /* data error */ unsigned int flags; #define MMC_DATA_WRITE (1 << 8)