Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1266582oof; Tue, 25 Sep 2018 10:20:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Z75tBRKkdBhEOaa+GeoxR2u5+OsynY7aJ7XjDUAvo4KlbYz96WwnSQA1ugHqWZJ4LHr/p X-Received: by 2002:a65:5cc3:: with SMTP id b3-v6mr1976298pgt.277.1537896037511; Tue, 25 Sep 2018 10:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537896037; cv=none; d=google.com; s=arc-20160816; b=JrfCSRJmgFWzZre3/eYXszpzEmZ6bPIzdetUpvsYu/fBvH/oamc3JGt/QdBoTJV7RE Cs4SC6pc0np2BHMLysFdVKV7i4Gvk+sicslqXdrtLghu9BpW3f7/3UAh64kDdCnj8ZbF Vqn6rXrACtAMx0zmEQ36DEkxA8i8hZ6RPTRiMSVoVXWoGpKEBBhuseKbBQ3WpbE5XZtc +siW0K56m85oINVOZIOE+TH8xuQWr/QM/d3z8OSBSlNP3y8+dUk3Go1dZSptHSh4HKQO 18WDgQ+RuTkr3CldUwi03zYXzVz5TJQypnzhUA9tWVlg0TuhhUxwccjmHgReGgYAQjZx m4Xw== 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; bh=ACU/Mh5B+u/LIzshNp3u+HfZ7pUBBO10ynQKrFxRPdg=; b=WB32Le5huWbvoRg9FKihVFVmqWgNADvwXOnrHm0sLQCVUFZvdSes/BRs8+xDTODXmE Mxh09D9DsS8eaA3FuK41bPwpwV3pimM8Y6JoMSWCkaFr4PsOuNNIoMFbcPwFdq7x3zJQ 9Yf9aV6+oMB2pvOqzepeu71ibvzxrXamhcw+ZDpNXxqhXRdm8I5haU4FDt6m2IpN0+Va LhcNdkEBKVCGFBIzBAxp1a0XB/rYGi1l5hwi6+I4VkVDd40gMpaMIKKQWrVKOE8sX7Q3 oW2jJS8XWwtxxxCmngzR35FuKEa3JoxYuWSmYXKh2ta6cBciO+HoFSHFEq4faSJ6VUwM PQoQ== 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 34-v6si2942338plz.492.2018.09.25.10.20.21; Tue, 25 Sep 2018 10:20:37 -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 S1727786AbeIYX2T (ORCPT + 99 others); Tue, 25 Sep 2018 19:28:19 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:44242 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeIYX2T (ORCPT ); Tue, 25 Sep 2018 19:28:19 -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 1g4r02-00050H-Lc; Tue, 25 Sep 2018 11:19:50 -0600 Received: from [105.184.227.67] (helo=x220.Home) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.87) (envelope-from ) id 1g4r01-0001uD-Dd; Tue, 25 Sep 2018 11:19:50 -0600 From: "Eric W. Biederman" To: linux-kernel@vger.kernel.org Cc: linux-api@vger.kernel.org, linux-arch@vger.kernel.org, Oleg Nesterov , Linus Torvalds , "Eric W. Biederman" Date: Tue, 25 Sep 2018 19:19:01 +0200 Message-Id: <20180925171906.19683-1-ebiederm@xmission.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <87h8idv6nw.fsf@xmission.com> References: <87h8idv6nw.fsf@xmission.com> X-XM-SPF: eid=1g4r01-0001uD-Dd;;;mid=<20180925171906.19683-1-ebiederm@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=105.184.227.67;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18ARmvtKbdtRAblkAemujLwwcaNsbEJ190= X-SA-Exim-Connect-IP: 105.184.227.67 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa07.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,T_TooManySym_01,T_TooManySym_02,XMNoVowels, XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 1.5 TR_Symld_Words too many words that have symbols inside * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.7 XMSubLong Long Subject * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4998] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ***;linux-kernel@vger.kernel.org X-Spam-Relay-Country: X-Spam-Timing: total 203 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 3.0 (1.5%), b_tie_ro: 2.0 (1.0%), parse: 0.76 (0.4%), extract_message_metadata: 10 (5.0%), get_uri_detail_list: 1.19 (0.6%), tests_pri_-1000: 6 (2.8%), tests_pri_-950: 1.23 (0.6%), tests_pri_-900: 1.05 (0.5%), tests_pri_-400: 19 (9.1%), check_bayes: 17 (8.6%), b_tokenize: 6 (3.0%), b_tok_get_all: 5.0 (2.5%), b_comp_prob: 1.63 (0.8%), b_tok_touch_all: 2.8 (1.4%), b_finish: 0.64 (0.3%), tests_pri_0: 152 (74.8%), check_dkim_signature: 0.56 (0.3%), check_dkim_adsp: 2.8 (1.4%), tests_pri_500: 8 (4.1%), rewrite_mail: 0.00 (0.0%) Subject: [REVIEW][PATCH 1/6] signal/sparc: Move EMT_TAGOVF into the generic siginfo.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 When moving all of the architectures specific si_codes into siginfo.h, I apparently overlooked EMT_TAGOVF. Move it now. Remove the now redundant test in siginfo_layout for SIGEMT as now NSIGEMT is always defined. Signed-off-by: "Eric W. Biederman" --- arch/sparc/include/uapi/asm/siginfo.h | 6 ------ include/uapi/asm-generic/siginfo.h | 6 ++++++ kernel/signal.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/sparc/include/uapi/asm/siginfo.h b/arch/sparc/include/uapi/asm/siginfo.h index e7049550ac82..6c820ea0813b 100644 --- a/arch/sparc/include/uapi/asm/siginfo.h +++ b/arch/sparc/include/uapi/asm/siginfo.h @@ -17,10 +17,4 @@ #define SI_NOINFO 32767 /* no information in siginfo_t */ -/* - * SIGEMT si_codes - */ -#define EMT_TAGOVF 1 /* tag overflow */ -#define NSIGEMT 1 - #endif /* _UAPI__SPARC_SIGINFO_H */ diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index 80e2a7227205..1811b8101937 100644 --- a/include/uapi/asm-generic/siginfo.h +++ b/include/uapi/asm-generic/siginfo.h @@ -285,6 +285,12 @@ typedef struct siginfo { #define SYS_SECCOMP 1 /* seccomp triggered */ #define NSIGSYS 1 +/* + * SIGEMT si_codes + */ +#define EMT_TAGOVF 1 /* tag overflow */ +#define NSIGEMT 1 + /* * sigevent definitions * diff --git a/kernel/signal.c b/kernel/signal.c index e16278710b36..7b49c31d3fdb 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2856,7 +2856,7 @@ enum siginfo_layout siginfo_layout(int sig, int si_code) [SIGSEGV] = { NSIGSEGV, SIL_FAULT }, [SIGBUS] = { NSIGBUS, SIL_FAULT }, [SIGTRAP] = { NSIGTRAP, SIL_FAULT }, -#if defined(SIGEMT) && defined(NSIGEMT) +#if defined(SIGEMT) [SIGEMT] = { NSIGEMT, SIL_FAULT }, #endif [SIGCHLD] = { NSIGCHLD, SIL_CHLD }, -- 2.17.1