Received: by 10.223.185.116 with SMTP id b49csp6148969wrg; Thu, 8 Mar 2018 02:38:16 -0800 (PST) X-Google-Smtp-Source: AG47ELvXkxGVeT1XLhlsTDWRI1odzryX46uYQN95KLfnx/Q/FKMHgtaoNWisU7xoyTZgZq9+KAXV X-Received: by 10.99.117.10 with SMTP id q10mr20754862pgc.423.1520505496781; Thu, 08 Mar 2018 02:38:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520505496; cv=none; d=google.com; s=arc-20160816; b=lrSXpl9OjiYXVqIa+FXCr2OgxLUiwDS8yyu6xDtYTZCUJ1aW4o9VsxEeYY/LIClU0V TGBs4SUKB2Qelq/l6IV75ca6qGSyLphxkxiGrYj37GSWahZ77z3lHbrTCJBtOAIKW7bs goB+ZDTHgdv01ncMJaNmUzZzT2med/O1rvRPFg50MTx+ysi9hwjV1SdImdQa8TnUL3xn MSzv9R34egOqLDe+vqdfMVsva/p6IhwoquQqASim3ywiEYE3X6JgoR6nT6UMfK6UBxmP YupCzfxQdhaq2Oh6/AAkkFoZQ3zu9XiFUsf+nvtb0bRSU/qjritNUsWbdLLsVxi8SN0D Zb8Q== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=kuLsxcRnnKKrj74mUbHeUeYXxUpQjheKM3wfd164rEs=; b=ALQe1RdoeBNmoM0jdoNSUuJj10Y1zWndFVn4WvWMmsK0KGhMEP/nzijIv1oAJInqsN yS7W0d6I1ONI+ZSLZRhqVi5dfG7zBwvdIyS8YobqvKuTNQEihupYavhKvWPAdw5oLi6g 9mzEjtua0vg57vP/0rkZMst01bnAnxeFa5qi1VnH18baqnzdom8MoJBe5HUE3o411sH6 RIFcBYuJaoSF9G5bsEJvna4QaXKG7PfluOy7zxUztAxDmNaQkd4L56/SQPWd0lDKguVs 0xmCI+yy9U6j31POhEkjlrK2dEhXW1p/5kxJZG7rKN20TK8teMvJwHaZuyhrgKF6+GN5 RnYg== 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 b6-v6si7719915plk.189.2018.03.08.02.38.02; Thu, 08 Mar 2018 02:38:16 -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; 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 S935741AbeCHKhB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 8 Mar 2018 05:37:01 -0500 Received: from ozlabs.org ([103.22.144.67]:36437 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934059AbeCHKhA (ORCPT ); Thu, 8 Mar 2018 05:37:00 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3zxn4p5MX2z9shR; Thu, 8 Mar 2018 21:36:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Mathieu Malaterre Cc: Benjamin Herrenschmidt , Paul Mackerras , Jiri Slaby , linuxppc-dev , LKML Subject: Re: [PATCH 17/21] powerpc: Add missing prototype for sys_debug_setcontext In-Reply-To: References: <20180225172236.29650-1-malat@debian.org> <20180225172236.29650-18-malat@debian.org> <87muzoglga.fsf@concordia.ellerman.id.au> Date: Thu, 08 Mar 2018 21:36:57 +1100 Message-ID: <878tb2etva.fsf@concordia.ellerman.id.au> 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 Mathieu Malaterre writes: > On Sun, Mar 4, 2018 at 11:54 AM, Michael Ellerman wrote: >> Mathieu Malaterre writes: >> >>> 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 >> >> This one should actually be using the SYSCALL_DEFINE syntax, so that it >> can be used with CONFIG_FTRACE_SYSCALLS. >> >> See eg. our mmap: >> >> SYSCALL_DEFINE6(mmap, unsigned long, addr, size_t, len, >> unsigned long, prot, unsigned long, flags, >> unsigned long, fd, off_t, offset) >> { >> return do_mmap2(addr, len, prot, flags, fd, offset, PAGE_SHIFT); >> } >> >> >> We probably still need this patch, but I'm not entirely sure because the >> SYSCALL_DEFINE macro does all sorts of shenanigans. > > I see. Could you please drop this patch then. The patch does not look > that trivial anymore. I'll need to dig a bit more on how to do the > syscall stuff with a 7 params function. Ergh, yuck, seems we're the first suckers to need do that. I think I'll take this patch for now, it's still good for now at least, and then the SYSCALL_DEFINE stuff can be an addition. cheers