Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp775740imu; Tue, 20 Nov 2018 06:50:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VgaYg9g7lzskQXwmCQc/DYivTDsQBhlUXByEV5Cz96koJQliyYak4dcDtD1SaMytIVnJpT X-Received: by 2002:a63:4246:: with SMTP id p67mr2129615pga.335.1542725412415; Tue, 20 Nov 2018 06:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542725412; cv=none; d=google.com; s=arc-20160816; b=A8Z1JnJYgNtE6sTEt1TR5FtJXZW+QP0A5VxOwINcx8udYrBImU/SL7ovmA6I5LWQo3 BBhSPQN+x4dJzwdD/2FGS0/QxfGFx6HfAmYrRm12wzwBvsOE+kCss5c/gfqHrm408i4d 9Dcq9AZoKEH4G+tl8X296VElKtojg0b6Mr1LeKXtd1B5NflMY+hkONXaDgcKzEIXN6we X3TkgvD79QnhZzSzSYBVLZ/ObCc5ny4EH/mk/YcYzLXctxRMaDrueDYoFzdA3VhJwVOA g2HzEa4Hq5Nz1/erZi2qmHuTc8L6s0uyI8bBXt3PEqaTT+fYHyuIzZTfg+BOA/hrEmMs JQ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=1ytHfs+LGC7Kt7FaIlYKMVZnBQtU1xZYDUo378mjB9o=; b=goPI6+pZuqEKUrKpbI0uJA4eWrtkdOgPlBd1WXj6/A4Ju//Xh1d/E58eg0e1WFIskx EDQmNaDuI9CTfp2ZFbYiWTnXoAuM31sQYzB51pCARj6hEl0MQVa0oiTV79TrLnEfolQZ xVTJ1SQO7Nh+Vkfrbix3Zcoi2tNZ04Hmy2wuAFaJmjnWBtfHjzS6eQbLozyPW50dghH8 rDar0Ww6UnNzeJMp0EDWOJAno5S1BmLiVpl3GzSVgvclujbISlLRgqFeDooK7BGFhA4a DO2+2E8r8AR8k15bhlJX1RIXbsj7JRMPuyEuUfxqginlQNb9abW9/172YkkHaopsxHyg 8rCA== 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 k38si13078451pgi.235.2018.11.20.06.49.56; Tue, 20 Nov 2018 06:50:12 -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 S1728756AbeKTVXE (ORCPT + 99 others); Tue, 20 Nov 2018 16:23:04 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:38677 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbeKTVXE (ORCPT ); Tue, 20 Nov 2018 16:23:04 -0500 Received: by mail-qk1-f196.google.com with SMTP id d19so2078452qkg.5; Tue, 20 Nov 2018 02:54:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1ytHfs+LGC7Kt7FaIlYKMVZnBQtU1xZYDUo378mjB9o=; b=JiE1xIwv7PaaudY7bDWzE2e4eGfeIUe9acw5UibAM1rMztm8bmmiHGycn023T2V1XJ xempRkDthD/h9KjJP5QX0RhqXStask4UOLMfHMKRk9NseHQUKZY+YuUTdaGx6Gebbini cLG2f6Rf9oqA2EZftAb4WI8p622ITTNub8MEM3TwDoB3TnD0FpCb0x1fJ+wWP8IMkLbq YXTQ5syon8j+EuLOUDDbgkxo004J6rwxSgVHiAG3B104ObPZWoDeC/K0TIBylCKmHbYt 4wuaGZgaL0leVaV+ZQ4ePbl+fmvScSbw9rkOhLp8pdWYKS2BCYU2cMh1L4f/7ltSxDib iOsA== X-Gm-Message-State: AGRZ1gLhl8MJm/TBYCV705oxjzx7Gx5PV2LRlf8t32Dtf2ivKXZOLAoz +A+bWksw7J7cu6qWHu+4yBW0HwreLeoSRzmbfUg= X-Received: by 2002:ac8:1d12:: with SMTP id d18mr1320428qtl.343.1542711271032; Tue, 20 Nov 2018 02:54:31 -0800 (PST) MIME-Version: 1.0 References: <1542262461-29024-1-git-send-email-firoz.khan@linaro.org> <1542262461-29024-4-git-send-email-firoz.khan@linaro.org> <20181119222924.ybnl7qe4hobud5fb@pburton-laptop> In-Reply-To: <20181119222924.ybnl7qe4hobud5fb@pburton-laptop> From: Arnd Bergmann Date: Tue, 20 Nov 2018 11:54:07 +0100 Message-ID: Subject: Re: [PATCH v2 3/5] mips: remove syscall table entries To: Paul Burton Cc: Firoz Khan , Ralf Baechle , James Hogan , "open list:RALINK MIPS ARCHITECTURE" , Thomas Gleixner , gregkh , Philippe Ombredanne , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 11:29 PM Paul Burton wrote: > > Hi Firoz, > > On Thu, Nov 15, 2018 at 11:44:19AM +0530, Firoz Khan wrote: > > diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S > > index a9b895f..4eee437 100644 > > --- a/arch/mips/kernel/scall32-o32.S > > +++ b/arch/mips/kernel/scall32-o32.S > > @@ -208,6 +208,18 @@ einval: li v0, -ENOSYS > > jr ra > > END(sys_syscall) > > > > +#ifdef CONFIG_MIPS_MT_FPAFF > > + /* > > + * For FPU affinity scheduling on MIPS MT processors, we need to > > + * intercept sys_sched_xxxaffinity() calls until we get a proper hook > > + * in kernel/sched/core.c. Considered only temporary we only support > > + * these hooks for the 32-bit kernel - there is no MIPS64 MT processor > > + * atm. > > + */ > > +#define mipsmt_sys_sched_setaffinity sys_sched_setaffinity > > +#define mipsmt_sys_sched_getaffinity sys_sched_getaffinity > > Is this backwards? ie. should it be: > > #define sys_sched_setaffinity mipsmt_sys_sched_setaffinity > #define sys_sched_getaffinity mipsmt_sys_sched_getaffinity > > ? > > I don't see how the mipsmt_* functions will ever be used after this > patch. Good catch! > > - * atm. > > - */ > > - PTR mipsmt_sys_sched_setaffinity > > - PTR mipsmt_sys_sched_getaffinity > > -#else > > PTR sys_sched_setaffinity > > PTR sys_sched_getaffinity /* 4240 */ > > -#endif /* CONFIG_MIPS_MT_FPAFF */ > > PTR sys_io_setup My guess would be that he removed the wrong lines here instead, and the first half was intentional. Arnd