lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 6 Nov 2009 11:17:38 +0800
From:	"Zhang, Sonic" <Sonic.Zhang@...log.com>
To:	"Thiago Farina" <tfransosi@...il.com>, <trivial@...nel.org>
Cc:	<vapier@...too.org>,
	"Hennerich, Michael" <Michael.Hennerich@...log.com>,
	<linux-kernel@...r.kernel.org>,
	"Song, Barry" <Barry.Song@...log.com>,
	<uclinux-dist-devel@...ckfin.uclinux.org>
Subject: RE: [Uclinux-dist-devel] [PATCH] blackfin/trivial: remove duplicatedMAX macro from stamp.

Acked-by: Sonic Zhang<sonic.zhang@...log.com>

-----Original Message-----
From: uclinux-dist-devel-bounces@...ckfin.uclinux.org
[mailto:uclinux-dist-devel-bounces@...ckfin.uclinux.org] On Behalf Of
Thiago Farina
Sent: Tuesday, November 03, 2009 5:05 AM
To: trivial@...nel.org
Cc: vapier@...too.org; Hennerich, Michael; linux-kernel@...r.kernel.org;
Song, Barry; uclinux-dist-devel@...ckfin.uclinux.org; Thiago Farina
Subject: [Uclinux-dist-devel] [PATCH] blackfin/trivial: remove
duplicatedMAX macro from stamp.

Since the kernel api already has the macro "max", just use it instead of
declaring another one.

Signed-off-by: Thiago Farina <tfransosi@...il.com>
---
 arch/blackfin/mach-bf537/boards/stamp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/blackfin/mach-bf537/boards/stamp.c
b/arch/blackfin/mach-bf537/boards/stamp.c
index c46baa5..c76da37 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -385,10 +385,9 @@ static struct platform_nand_data
bfin_plat_nand_data = {
 	},
 };
 
-#define MAX(x, y) (x > y ? x : y)
 static struct resource bfin_plat_nand_resources = {
 	.start = 0x20212000,
-	.end   = 0x20212000 + (1 << MAX(BFIN_NAND_PLAT_CLE,
BFIN_NAND_PLAT_ALE)),
+	.end   = 0x20212000 + (1 << max(BFIN_NAND_PLAT_CLE,
BFIN_NAND_PLAT_ALE)),
 	.flags = IORESOURCE_IO,
 };
 
--
1.6.5.1.61.ge79999

_______________________________________________
Uclinux-dist-devel mailing list
Uclinux-dist-devel@...ckfin.uclinux.org
https://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ