From patchwork Tue Aug 18 03:33:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Collingbourne X-Patchwork-Id: 11719769 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5ED4F14E3 for ; Tue, 18 Aug 2020 03:34:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 32BD82053B for ; Tue, 18 Aug 2020 03:34:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dmtAi53t"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="Gl3PH0Ra" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 32BD82053B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ObtVLXCjO8XyhWnq2zEXzD3u3RaW8+GS2F7TF7LMoWQ=; b=dmtAi53tSJaSqLGrxl5osdbWC a2Ucrusy+S7ZQIeO3Jz+BSrZlL19PJ8qj0HCwErrCXlNoS9Xfk8fA3/TBfwjePcmPMACFLjtY8VDN C6wFQy7cj+8ZHNN6flqB2m8zecOfFgZHBBmhll6xSoL3jWvg74h1+1fAO9ol5t2X7anZgaM7FvaQl YSl7vfmAfUhjs9EDs3TmyKb0AtKyXUeSqKv93R+jiAixOqkuebdh0B9rLrWzeGscqDeRvzdhxdQFt vKXkXH093BRk6rQ81Q23WGtC0ZijhlDoKMbL64jDQUmgyQIJEHbI/324b8DrTNvEfbNCpf4Mi8pPc lnbUL/gFQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7sOP-0002Xq-5f; Tue, 18 Aug 2020 03:34:33 +0000 Received: from mail-qk1-x749.google.com ([2607:f8b0:4864:20::749]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k7sOA-0002QD-6h for linux-arm-kernel@lists.infradead.org; Tue, 18 Aug 2020 03:34:19 +0000 Received: by mail-qk1-x749.google.com with SMTP id 1so12245078qkm.19 for ; Mon, 17 Aug 2020 20:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=HhqB7tysGvpvjsu6480OhGk1+/lXC6B0Q4dHLp4XXBg=; b=Gl3PH0RaEHU6miVdlzYqEwCn0VhJcTKfA/QNx4OZvz2XQk6KPGa6BX+LGSCmKClnkj IS4BfF9TyIUMLYRJxAm6GhJFqpfzl/xYJG4c+j6hSw7alf+X63SXo5k4RNM8tExRYWhF lJUB5eahnCzT55UHc9lUTU9ynUbWpW8EhLvCU827bffzrY4irWHIUqcZMBYDtsRsY3ja EyZf6qg2ASoaf7mUeQ9SVXVMEaXDeHEsmySVFO8NgrFNyGftL/yXXy7sFL+aWTrl4G0X 4SI+zS6Vg5KOFkI3sgUtgJ+QV2T+52tnx+aDyV7SEfNJo7nV10hPJ6bUkD48rh8G9/jc ylcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=HhqB7tysGvpvjsu6480OhGk1+/lXC6B0Q4dHLp4XXBg=; b=Mq+a7500G5JlcRoRO5A0F+A3qSxs6+IAvCl/HUVfGNup+LLe2rhqH5OPsSvQbDTXxk 8gL/n1UatB/U19YXI6Faz1MfAjPN43CKBHgyiRgJd7yj93hIHIJP+EWAck1tgTWJAcwe m23+fz3knY5Ewoh5a2++FC8/xxQSkwF9gbhpuIfZSP0H19hMGS/Hndg94P9F0yW9rU5o eurEKfy7kCOpqFWL9RTZj96Ur542q/ThRienXaLiKDeL3PUx3kvDDRawQ5EEvQAJJVag RPwco4DWFNpNweyI0rBuBYv/0v6IackWvfCDR7anSp41yCOB3jNYECaJJUOlPQ//kwYB 368w== X-Gm-Message-State: AOAM533Dxl4AGE9q7NFAZWIZ39/vEzEjqypcNqVcaCc6u/opTuotfwm3 6+4EUoh0bNY8uDCO7PPanRr+cHQ= X-Google-Smtp-Source: ABdhPJyy0GT7eyrTg5qYOg+WqaT9atEH6ARG8Jn8KWRUOukuE1dfbjFVPFNugvIkdV2rIG97Tka9CSI= X-Received: by 2002:ad4:5849:: with SMTP id de9mr16907792qvb.22.1597721647293; Mon, 17 Aug 2020 20:34:07 -0700 (PDT) Date: Mon, 17 Aug 2020 20:33:46 -0700 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.28.0.220.ged08abb693-goog Subject: [PATCH v9 1/6] parisc: start using signal-defs.h From: Peter Collingbourne To: Catalin Marinas , Evgenii Stepanov , Kostya Serebryany , Vincenzo Frascino , Dave Martin , Will Deacon , Oleg Nesterov , "Eric W. Biederman" , "James E.J. Bottomley" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200817_233418_327795_5D589DFB X-CRM114-Status: GOOD ( 11.82 ) X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:749 listed in] [list.dnswl.org] -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_MED DKIMwl.org - Medium sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-parisc@vger.kernel.org, Andrey Konovalov , Kevin Brodsky , David Spickett , Peter Collingbourne , Linux ARM , Richard Henderson Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org We currently include signal-defs.h on all architectures except parisc. Make parisc fall in line. This will make maintenance easier once the flag bits are moved here. Signed-off-by: Peter Collingbourne --- View this change in Gerrit: https://linux-review.googlesource.com/q/If03a5135fb514fe96548fb74610e6c3586a04064 arch/parisc/include/uapi/asm/signal.h | 9 +-------- include/uapi/asm-generic/signal-defs.h | 6 ++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/arch/parisc/include/uapi/asm/signal.h b/arch/parisc/include/uapi/asm/signal.h index d38563a394f2..92a1c7ea44b4 100644 --- a/arch/parisc/include/uapi/asm/signal.h +++ b/arch/parisc/include/uapi/asm/signal.h @@ -69,14 +69,7 @@ #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 - -#define SIG_BLOCK 0 /* for blocking signals */ -#define SIG_UNBLOCK 1 /* for unblocking signals */ -#define SIG_SETMASK 2 /* for setting the signal mask */ - -#define SIG_DFL ((__sighandler_t)0) /* default signal handling */ -#define SIG_IGN ((__sighandler_t)1) /* ignore signal */ -#define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ +#include # ifndef __ASSEMBLY__ diff --git a/include/uapi/asm-generic/signal-defs.h b/include/uapi/asm-generic/signal-defs.h index e9304c95ceea..ecdf6312bfa5 100644 --- a/include/uapi/asm-generic/signal-defs.h +++ b/include/uapi/asm-generic/signal-defs.h @@ -15,8 +15,14 @@ #endif #ifndef __ASSEMBLY__ +#ifndef __hppa__ +/* + * These have a special definition on parisc, see: + * arch/parisc/include/uapi/asm/signal.h + */ typedef void __signalfn_t(int); typedef __signalfn_t __user *__sighandler_t; +#endif typedef void __restorefn_t(void); typedef __restorefn_t __user *__sigrestore_t;