Message ID | 1246914900-9034-12-git-send-email-khilman@deeprootsystems.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n66LHupl016635 for <patchwork-davinci@patchwork.kernel.org>; Mon, 6 Jul 2009 21:17:56 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n66LHoJj015162 for <patchwork-davinci@patchwork.kernel.org>; Mon, 6 Jul 2009 16:17:56 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n66LHooK008344 for <patchwork-davinci@patchwork.kernel.org>; Mon, 6 Jul 2009 16:17:50 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id E119D80635 for <patchwork-davinci@patchwork.kernel.org>; Mon, 6 Jul 2009 16:17:25 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 7E56F806C3 for <davinci-linux-open-source@linux.davincidsp.com>; Mon, 6 Jul 2009 16:16:58 -0500 (CDT) Received: from red.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id n66LGwmI025848 for <davinci-linux-open-source@linux.davincidsp.com>; Mon, 6 Jul 2009 16:16:58 -0500 (CDT) Received: from mail160-va3-R.bigfish.com (mail-va3.bigfish.com [216.32.180.114]) by red.ext.ti.com (8.13.7/8.13.7) with ESMTP id n66LGqqG010150 for <davinci-linux-open-source@linux.davincidsp.com>; Mon, 6 Jul 2009 16:16:57 -0500 Received: from mail160-va3 (localhost.localdomain [127.0.0.1]) by mail160-va3-R.bigfish.com (Postfix) with ESMTP id AFBF91058181 for <davinci-linux-open-source@linux.davincidsp.com>; Mon, 6 Jul 2009 21:16:52 +0000 (UTC) X-SpamScore: 0 X-BigFish: vps0(zzzz1202hzzz2dh62h) X-Spam-TCS-SCL: 1:0 X-MS-Exchange-Organization-Antispam-Report: OrigIP: 209.85.146.177; Service: EHS Received: by mail160-va3 (MessageSwitch) id 1246915011355971_634; Mon, 6 Jul 2009 21:16:51 +0000 (UCT) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mail160-va3.bigfish.com (Postfix) with ESMTP id 24EB81628057 for <davinci-linux-open-source@linux.davincidsp.com>; Mon, 6 Jul 2009 21:16:51 +0000 (UTC) Received: by wa-out-1112.google.com with SMTP id m38so874848waf.8 for <davinci-linux-open-source@linux.davincidsp.com>; Mon, 06 Jul 2009 14:16:50 -0700 (PDT) Received: by 10.114.58.20 with SMTP id g20mr8134125waa.130.1246915010705; Mon, 06 Jul 2009 14:16:50 -0700 (PDT) Received: from localhost ([216.254.16.51]) by mx.google.com with ESMTPS id v32sm592548wah.48.2009.07.06.14.16.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Jul 2009 14:16:50 -0700 (PDT) From: Kevin Hilman <khilman@deeprootsystems.com> To: linux-arm-kernel@lists.arm.linux.org.uk Date: Mon, 6 Jul 2009 14:14:45 -0700 Message-Id: <1246914900-9034-12-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1246914900-9034-11-git-send-email-khilman@deeprootsystems.com> References: <1246914900-9034-1-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-2-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-3-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-4-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-5-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-6-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-7-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-8-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-9-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-10-git-send-email-khilman@deeprootsystems.com> <1246914900-9034-11-git-send-email-khilman@deeprootsystems.com> Cc: davinci-linux-open-source@linux.davincidsp.com, David Brownell <dbrownell@users.sourceforge.net> Subject: [PATCH 11/26] davinci: sram warning fix X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list List-Id: davinci-linux-open-source.linux.davincidsp.com List-Unsubscribe: <http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=unsubscribe> List-Archive: <http://linux.omap.com/pipermail/davinci-linux-open-source> List-Post: <mailto:davinci-linux-open-source@linux.davincidsp.com> List-Help: <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=help> List-Subscribe: <http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source>, <mailto:davinci-linux-open-source-request@linux.davincidsp.com?subject=subscribe> Sender: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com |
diff --git a/arch/arm/mach-davinci/sram.c b/arch/arm/mach-davinci/sram.c index db54b2a..4f1fc9b 100644 --- a/arch/arm/mach-davinci/sram.c +++ b/arch/arm/mach-davinci/sram.c @@ -60,7 +60,7 @@ static int __init sram_init(void) int status = 0; if (len) { - len = min(len, SRAM_SIZE); + len = min_t(unsigned, len, SRAM_SIZE); sram_pool = gen_pool_create(ilog2(SRAM_GRANULARITY), -1); if (!sram_pool) status = -ENOMEM;