From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24020 invoked by alias); 8 Aug 2012 21:59:04 -0000 Received: (qmail 24012 invoked by uid 22791); 8 Aug 2012 21:59:03 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from toast.topped-with-meat.com (HELO topped-with-meat.com) (204.197.218.159) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Aug 2012 21:58:50 +0000 Received: by topped-with-meat.com (Postfix, from userid 5281) id 048902C0ED; Wed, 8 Aug 2012 14:58:50 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: libc-ports@sourceware.org Subject: [COMMITTED PATCH] add missing const in arm_gnu_pltexit signature Message-Id: <20120808215850.048902C0ED@topped-with-meat.com> Date: Wed, 08 Aug 2012 21:59:00 -0000 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=LtfpOghc c=1 sm=1 a=eens4Am-H9YA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=14OXPxybAAAA:8 a=hWYPantjPqdqBSK1apgA:9 a=CjuIK1q_8ugA:10 a=WkljmVdYkabdwxfqvArNOQ==:117 X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00063.txt.bz2 This fixes a 'discarded const' warning compiling dl-runtime.c, because the signature of the function pointer lacked the const that other machines have. Committed as obvious. Thanks, Roland ports/ChangeLog.arm * sysdeps/arm/ldsodefs.h (ARCH_PLTEXIT_MEMBERS): Use const on `struct La_arm_regs *' parameter. diff --git a/ports/sysdeps/arm/ldsodefs.h b/ports/sysdeps/arm/ldsodefs.h index aa323d3..73375b6 100644 --- a/ports/sysdeps/arm/ldsodefs.h +++ b/ports/sysdeps/arm/ldsodefs.h @@ -1,5 +1,5 @@ /* Run-time dynamic linker data structures for loaded ELF shared objects. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,7 +32,7 @@ struct La_arm_retval; #define ARCH_PLTEXIT_MEMBERS \ Elf32_Addr (*arm_gnu_pltexit) (Elf32_Sym *, unsigned int, uintptr_t *, \ - uintptr_t *, struct La_arm_regs *, \ + uintptr_t *, const struct La_arm_regs *, \ struct La_arm_retval *, const char *) #include_next