From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761420AbZEMToT (ORCPT ); Wed, 13 May 2009 15:44:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752599AbZEMToF (ORCPT ); Wed, 13 May 2009 15:44:05 -0400 Received: from www.tglx.de ([62.245.132.106]:52791 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752251AbZEMToE (ORCPT ); Wed, 13 May 2009 15:44:04 -0400 Date: Wed, 13 May 2009 21:42:51 +0200 (CEST) From: Thomas Gleixner To: Jaswinder Singh Rajput cc: Ingo Molnar , Al Viro , x86 maintainers , LKML Subject: Re: [RFC][PATCH -tip] x86: audit.c remove unnecessary global arraysn In-Reply-To: <1242240694.3364.3.camel@localhost.localdomain> Message-ID: References: <1242240694.3364.3.camel@localhost.localdomain> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 May 2009, Jaswinder Singh Rajput wrote: > ia32_dir_class[], ia32_write_class[], ia32_read_class[], ia32_chattr_class[] > and ia32_signal_class[] are used only by arch/x86/kernel/audit_64.c > which can be replace by local variables: > > dir_class[], write_class[], read_class[], chattr_class[] and signal_class[] Groan, it can be replaced by local variables, but it does not result in the same functionality. These audit classes are arrays of syscall numbers, which are different for 32 and 64 bit. ia32/audit.c includes unistd_32.h not unistd.h for exactly this reason. Thanks, tglx