Received: by 10.213.65.68 with SMTP id h4csp642463imn; Fri, 23 Mar 2018 12:20:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELsfXBvdjvchVi1pKVWlnoGR4wbym2bgtnnMyh+eOcU6mRwdOZS2qELFDgvSiukjbOZJr2C3 X-Received: by 10.99.123.19 with SMTP id w19mr21102475pgc.405.1521832816831; Fri, 23 Mar 2018 12:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521832816; cv=none; d=google.com; s=arc-20160816; b=yP5zzIdB/lnTb78HK1mMI16JUakR/+lILfAZ4GGChLnRVGlAQ0iMQU7j4FoLfn+X3I aUa/odehwGIT2M8hrLGcbdH5p15pCdTLzcvt/9J7//l2JklFlMamlcLg8HzazNGf9A+i 5azMY3nLWPlsds0RCxKZzQp9/L2r6oBkvdM3DkCtcpk91wmmcTr9jL4HAWwj7YRSwAid T0h/oAepdQe4ppjMyqWyRNf8XNSwvIn1HCS0L6vS3iYyVnf8uQlQJnl9Dx6a/WVfIaFG 4MYWprsyofh+zF3iDngLtS3joa41V2oLt2oJHqW1+pfpHS2QlBa/8yl+ku61EsYBEcVW m83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=HoNshrOKL+kE53JcYy1ny1raUhKn4XH7odtBU8iRscM=; b=Z+IMwsRzfKFE69UaG3rA5gOaf59IeTpw1aoVOzcUTNpa3dUEaWJL8NbNqZR2WQbQOD nBdFk73YNzO72pqNTn6RVn7UQbUWJTTsb5SV4EGO56z4kjMa9mjMvLDGKxgZTZFjDvyA w0PhW8xYyDHEEOnlz+3upPXNuUEVZRqjPbLytQN9ZDZlKUPDkmK21fMHVxxrFnPG/PZO PK5zGp9N//qAk+W1416Esa3Yr/QETCq++WrYy2pH3IqwgmBF1kUSLqc+7iJZ/av6w37S MbdzM9818PrdXNeMtqQXSWvvhX7M27mbsz3p8mZu3oewwK2NI0GfHBKhPeAXuuhUj7M2 vkTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38-v6si9058628pln.397.2018.03.23.12.20.02; Fri, 23 Mar 2018 12:20:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbeCWTSO (ORCPT + 99 others); Fri, 23 Mar 2018 15:18:14 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:59025 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbeCWTSJ (ORCPT ); Fri, 23 Mar 2018 15:18:09 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1ezSCW-0003v4-Bq; Fri, 23 Mar 2018 13:18:08 -0600 Received: from 97-119-121-173.omah.qwest.net ([97.119.121.173] helo=x220.int.ebiederm.org) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1ezSCV-00033I-Hj; Fri, 23 Mar 2018 13:18:07 -0600 From: "Eric W. Biederman" To: Linux Containers Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, khlebnikov@yandex-team.ru, prakash.sangappa@oracle.com, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com, serge.hallyn@ubuntu.com, esyr@redhat.com, jannh@google.com, linux-security-module@vger.kernel.org, Pavel Emelyanov , Nagarathnam Muthusamy , "Eric W. Biederman" Date: Fri, 23 Mar 2018 14:16:10 -0500 Message-Id: <20180323191614.32489-7-ebiederm@xmission.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <87vadmobdw.fsf_-_@xmission.com> References: <87vadmobdw.fsf_-_@xmission.com> X-XM-SPF: eid=1ezSCV-00033I-Hj;;;mid=<20180323191614.32489-7-ebiederm@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.121.173;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19JXPAiNZwQ5vLvCDKG+VmPu7upRnlGpbY= X-SA-Exim-Connect-IP: 97.119.121.173 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa08.xmission.com X-Spam-Level: *** X-Spam-Status: No, score=3.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TR_Symld_Words,TVD_RCVD_IP,T_TooManySym_01,XMNoVowels, XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 XMNoVowels Alpha-numberic number with no vowels * 1.5 TR_Symld_Words too many words that have symbols inside * 0.7 XMSubLong Long Subject * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa08 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa08 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;Linux Containers X-Spam-Relay-Country: X-Spam-Timing: total 190 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.4 (1.3%), b_tie_ro: 1.74 (0.9%), parse: 0.55 (0.3%), extract_message_metadata: 7 (3.8%), get_uri_detail_list: 0.63 (0.3%), tests_pri_-1000: 4.6 (2.4%), tests_pri_-950: 1.03 (0.5%), tests_pri_-900: 0.90 (0.5%), tests_pri_-400: 15 (8.0%), check_bayes: 14 (7.6%), b_tokenize: 4.4 (2.3%), b_tok_get_all: 5 (2.7%), b_comp_prob: 1.19 (0.6%), b_tok_touch_all: 1.87 (1.0%), b_finish: 0.55 (0.3%), tests_pri_0: 152 (80.2%), check_dkim_signature: 0.43 (0.2%), check_dkim_adsp: 2.7 (1.4%), tests_pri_500: 3.3 (1.7%), rewrite_mail: 0.00 (0.0%) Subject: [REVIEW][PATCH 07/11] ipc: Move IPCMNI from include/ipc.h into ipc/util.h X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The definition IPCMNI is only used in ipc/util.h and ipc/util.c. So there is no reason to keep it in a header file that the whole kernel can see. Move it into util.h to simplify future maintenance. Signed-off-by: "Eric W. Biederman" --- include/linux/ipc.h | 2 -- ipc/util.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/ipc.h b/include/linux/ipc.h index 821b2f260992..6cc2df7f7ac9 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -8,8 +8,6 @@ #include #include -#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ - /* used by in-kernel data structures */ struct kern_ipc_perm { spinlock_t lock; diff --git a/ipc/util.h b/ipc/util.h index 89b8ec176fc4..959c10eb9cc1 100644 --- a/ipc/util.h +++ b/ipc/util.h @@ -15,6 +15,7 @@ #include #include +#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ #define SEQ_MULTIPLIER (IPCMNI) int sem_init(void); -- 2.14.1