Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 17 Feb 2003 17:40:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 17 Feb 2003 17:40:05 -0500 Received: from air-2.osdl.org ([65.172.181.6]:30084 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id ; Mon, 17 Feb 2003 17:40:04 -0500 Subject: [PATCH] Fix warnings for XFS on 2.5.61 From: Stephen Hemminger To: owner-xfs@oss.sgi.com Cc: Linux Kernel Mailing List , linux-xfs@oss.sgi.com Content-Type: text/plain Organization: Open Source Devlopment Lab Message-Id: <1045522194.12947.92.camel@dell_ss3.pdx.osdl.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 17 Feb 2003 14:49:57 -0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 25 This patch gets rid of the following warnings. fs/xfs/support/qsort.c: In function `qsort': fs/xfs/support/qsort.c:202: warning: duplicate `const' diff -Nru a/fs/xfs/support/qsort.c b/fs/xfs/support/qsort.c --- a/fs/xfs/support/qsort.c Mon Feb 17 14:16:15 2003 +++ b/fs/xfs/support/qsort.c Mon Feb 17 14:16:15 2003 @@ -199,7 +199,7 @@ { char *const end_ptr = &base_ptr[size * (total_elems - 1)]; char *tmp_ptr = base_ptr; - char *thresh = min(end_ptr, base_ptr + max_thresh); + char *const thresh = min_t(char *const, end_ptr, base_ptr + max_thresh); register char *run_ptr; /* Find smallest element in first threshold and place it at the - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/