Received: by 10.223.185.116 with SMTP id b49csp2924607wrg; Sun, 25 Feb 2018 09:26:17 -0800 (PST) X-Google-Smtp-Source: AH8x225h2qJTHjVdJfKTWaLiVJwW12BONoQhnBnHmYr0xcGr7JfWb9pePKsZlfHIBrSR2kxdwVyu X-Received: by 10.98.15.15 with SMTP id x15mr8093867pfi.116.1519579577722; Sun, 25 Feb 2018 09:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519579577; cv=none; d=google.com; s=arc-20160816; b=RXehobwGY2o/udt0Nact4WicQYYW6lLmV/OSU5M+tuALPK3gGF7jJTD5KJt5yL3ceQ dy9Ob+Tqy2lgpkGiQDldsC59ANGAbd6+zNJurqxtbfFTHsnOMG8itndpggf05xKbatsT vmWoQaJxVtxWlz9XoQU9z28vXywjpdeKcCy4zZXVv9L4RzMQnD/lebTLqnjFTj/88+um vCNlrbnOU7lrswt/9KZRzQk8XV6DyUkKxMlGDCFUuVJL2eViFz3/UUlhC9YAkwns8Er7 hpA+huKVylNFBzJRFJRhk3LkSmiGuViY3TSPNJrP+5Bt5i6LWx/+wcz+WymOIlWGXlCz wJ2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Icin4KWyfRuEB0Y5jFfs620lgK3TX1uv9Ak+6+zLALk=; b=eS5QeumqgB6cUzqMt4uhg+sw0fx4GDqls1yH5JSUOjIlvi+IZ8M0iUiaVXOtecpZSi 3NkhIdS3M6sv6gIC8BTR4rNJqEv42Bw8wbco28O0VUyDmxpvKmzbU03q8hGVUjk/4C2n XYXeFE7Nm6wEH/JuFbKmVqS9BlMclsJ2VTWFnEUWq1YqV3kZLWzbAX2us1ZFRbdbJrFr O3HaTLM6LNYARIErBfpuGEpXlQHz877DT/Q6U5xp4nYnbls2FJzPxgn1/58jX+B3ocn3 rPIpaIMwu80BXy69BQa5cD9gAi+s3VfGbRWEGGaURwlVqk0xF+pjCAJqLolVIh3rRahB mAhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SXJcHn5m; 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 a9-v6si5594198plt.242.2018.02.25.09.26.03; Sun, 25 Feb 2018 09:26:17 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SXJcHn5m; 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 S1752048AbeBYRX6 (ORCPT + 99 others); Sun, 25 Feb 2018 12:23:58 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37449 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751937AbeBYRXK (ORCPT ); Sun, 25 Feb 2018 12:23:10 -0500 Received: by mail-wm0-f68.google.com with SMTP id m207so12992800wma.2 for ; Sun, 25 Feb 2018 09:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Icin4KWyfRuEB0Y5jFfs620lgK3TX1uv9Ak+6+zLALk=; b=SXJcHn5mLCp1WJQ+HdTiv4iPyh+cNnzcuxZqm4MkiPjGWhCgGYC9pphsLLfVRY2G6c 9C4cZG0T3kMiWSdAOUQecHWOK7grHVci8kDSA6G/KfSZ3CYPTYNwA8+BPyJIgQOOcBJX DhD/3SyddILQ9BvYR9RqwE1x36S8aUA2fFGiASJq7cBuoBVy9pKxoIz5YRieiFDjYkMr F9naaXGVwz0BDLe5WsEu2Y5gn/SuabArza3lQw/j0O9Q7g767oo3zNcssqI9SYziCCx9 U5uJi1G0E/wFH5RWmyHHVEYPImtPHGJUL1mWL4XZxa10wlY4rBSP3432iO2sCtsAAI6U Ojyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Icin4KWyfRuEB0Y5jFfs620lgK3TX1uv9Ak+6+zLALk=; b=mm4ZctPz+RxcBxMUfsSUMyOTUJegnsaSbJkR7luLy5fK8mecx6tn9vZLlvUTaPJUjV r7jiR5kqBBTRbrFFwLlJG/mBNXisPusVfGSkzawzj9i5dzZFWbpMEikw6LW1HH2f03nr W6kf9XiBBiuVhXC1nm64mhmoYmkOF6rAeyi/efQJpGdT6PD/H6/p3uDyKEZuYChvyMM5 NpgvTy37Zh6w5CVUbDZsaYinIjqxFOChKWFko51iorOhk7aozQt2iLkhcsLuK8GITG62 XUc3bO8jadxpcQfTc2qQPWVlwCXr9txyKENDepj/LYX2HcLyeId9J5aEVt/Um2A1M8/W HHeQ== X-Gm-Message-State: APf1xPDgc+J9T6IH7hAyAPT75Nw5Hk9CcZPDYL6+1VJjCqe1lFkfGwFT Ad11fX3xyaNQYHESQO+OzPrugGPV X-Received: by 10.28.54.220 with SMTP id y89mr6904163wmh.138.1519579389283; Sun, 25 Feb 2018 09:23:09 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id d27sm7897235wrd.60.2018.02.25.09.23.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 25 Feb 2018 09:23:07 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 4DE1110C0428; Sun, 25 Feb 2018 18:23:04 +0100 (CET) From: Mathieu Malaterre To: Michael Ellerman Cc: Benjamin Herrenschmidt , Paul Mackerras , Jiri Slaby , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Mathieu Malaterre Subject: [PATCH 17/21] powerpc: Add missing prototype for sys_debug_setcontext Date: Sun, 25 Feb 2018 18:22:32 +0100 Message-Id: <20180225172236.29650-18-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180225172236.29650-1-malat@debian.org> References: <20180225172236.29650-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit 81e7009ea46c ("powerpc: merge ppc signal.c and ppc64 signal32.c") the function sys_debug_setcontext was added without a prototype. Fix compilation warning (treated as error in W=1): CC arch/powerpc/kernel/signal_32.o arch/powerpc/kernel/signal_32.c:1227:5: error: no previous prototype for ‘sys_debug_setcontext’ [-Werror=missing-prototypes] int sys_debug_setcontext(struct ucontext __user *ctx, ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Mathieu Malaterre --- arch/powerpc/include/asm/asm-prototypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/asm-prototypes.h b/arch/powerpc/include/asm/asm-prototypes.h index 0af1925e30db..7c23d9ead694 100644 --- a/arch/powerpc/include/asm/asm-prototypes.h +++ b/arch/powerpc/include/asm/asm-prototypes.h @@ -89,6 +89,10 @@ int sys_swapcontext(struct ucontext __user *old_ctx, long sys_swapcontext(struct ucontext __user *old_ctx, struct ucontext __user *new_ctx, int ctx_size, int r6, int r7, int r8, struct pt_regs *regs); +int sys_debug_setcontext(struct ucontext __user *ctx, + int ndbg, struct sig_dbg_op __user *dbg, + int r6, int r7, int r8, + struct pt_regs *regs); #endif long sys_switch_endian(void); notrace unsigned int __check_irq_replay(void); -- 2.11.0