Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp768346imm; Wed, 17 Oct 2018 08:03:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV63IMtL7TiSccCaBE5MSpHbpW1gNPYAjUgi11nHoHcMltMGJAnO0PKXpzhwuC+mKat6KPsmP X-Received: by 2002:a62:f58a:: with SMTP id b10-v6mr27077830pfm.253.1539788624258; Wed, 17 Oct 2018 08:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539788624; cv=none; d=google.com; s=arc-20160816; b=APpZdes74C4TrCoEReghCPEBqT40AfEXn7cX/g+r2xpL47oz4bKuKPTPKcL92/l4yo lBgQ7qgQqs0a/rKLO7wzjNHmzgXARlmSNRiY0g/ziUZGWQ2CkFNoGRuP4/6TdM2S7KUQ VVFWXfqz+3BrlQ1ECKORJxNT85ez8JJFkwXO++NJ6Z+wl1OfekJPbVqJV8pns9FCU9aK bbh/SHdMk40n24npYYkey490ExFaFrO5Rheh6aPdZJDO5Kz5n6E0RdqWl9C0Z20NqRCa Tn0OAtp4ZQiK/vh8tXT+VxOexBQrgZ+Cb6782WpKfeZgO5zLxFhalEJKqPoZVZFXI5Qi WuYw== 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=jcVtJ8jFrYe8lGvm2RH0krjJ1rX8q0qlrQdjHm8p+18=; b=lw+INGYWnKmUse7nlsi7vSrvQ/VxR5bZRbrxkzt6v+WRCFZh44voqGme9DbN01ySTZ REdxT6aA8GhGnJ9sFz7Wxa0+Ytx8OkyRhVGRTIYjHCpkTCXZ59CvEFpX7nqP8w30Jlh7 Q1y+90Fc/y8V1xLvNeYQfPoPuqxC6f94WhtGu1TST1BQvd80hbDC/69SoyhvVY1JZsQE nXBPeRIK3AewVVtDb8hlJIq8G2zk65JvVPbaUXZo967ClFRYbe4CcbenTtdEF3GBOtP1 DVxOkO2v0NBhPJbFnhjnYGrlKEno+byjYHPGmaziHlbUbJrsaRaxGQ2UXQA2Bfy7pszU LfPQ== 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 16-v6si17351738pgw.208.2018.10.17.08.03.27; Wed, 17 Oct 2018 08:03:44 -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 S1727840AbeJQW64 (ORCPT + 99 others); Wed, 17 Oct 2018 18:58:56 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:35772 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727047AbeJQW6z (ORCPT ); Wed, 17 Oct 2018 18:58:55 -0400 Received: by mail-qk1-f194.google.com with SMTP id v68-v6so16663038qka.2; Wed, 17 Oct 2018 08:02:50 -0700 (PDT) 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=jcVtJ8jFrYe8lGvm2RH0krjJ1rX8q0qlrQdjHm8p+18=; b=hwNJUQSIyHN6IxEOf0kuj6sIwmwp/KV8380xFgYnuGzhe9kiEqlRmj9XL3qUXPEFx7 8ugI9Fnp4sc9KZpzALs1YZKB6iwsSN/9Ndd70fYpNSvbamvsd6eo6pq6BzCZKp+u9Fzi C2mlnS5caU46r464ZGKvARBfjhjcKiOxsrVdvgi1nBFgAjHS7i7V4Y8Fl4SjqfVI6HbT Ok8SEwz9XfvCjX2ThllkUvZRKnZF2n7IqCkDBXC+razuVKd5Ge7L/wq5fpquUIuLKJx3 WVnN38dBIk3XoSo3oByW/g4QngedHR7dSG7J+4qMdlretsbT/mOHTruVjrHS7O7UR8Me altA== X-Gm-Message-State: ABuFfojWYcptK9LyBS/mzOYhiEtMSTyGM9yT2FSXZEYMoOHtIeoC1Mbg H3SPVgJ3uNuCB0xW3+UuJYtaLL048AOohRrMAuxGH0xK X-Received: by 2002:a37:2b66:: with SMTP id r99-v6mr2781481qkh.343.1539788569460; Wed, 17 Oct 2018 08:02:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 17 Oct 2018 17:02:33 +0200 Message-ID: Subject: Re: [PATCH V9 05/21] csky: System Call To: Guo Ren Cc: Andrew Morton , Daniel Lezcano , David Miller , gregkh , Christoph Hellwig , Marc Zyngier , Mark Rutland , Peter Zijlstra , Rob Herring , Thomas Gleixner , Linux Kernel Mailing List , linux-arch , DTML , Rob Herring , c-sky_gcc_upstream@c-sky.com 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 Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > This patch adds files related to syscall. > > Signed-off-by: Guo Ren > Cc: Arnd Bergmann Reviewed-by: Arnd Bergmann I had a detailed look at this one and provided lots of comments, however one tiny thing escaped me: > +#define __NR_set_thread_area (__NR_arch_specific_syscall + 0) > +__SYSCALL(__NR_set_thread_area, sys_set_thread_area) > +#define __NR_cacheflush (__NR_arch_specific_syscall + 4) > +__SYSCALL(__NR_cacheflush, sys_cacheflush) It's odd that the second one uses __NR_arch_specific_syscall + 4 rather than +1. If you can still change that changing too much other stuff, that might avoid some head-scratching later. If it causes problems, just leave it and maybe add a comment saying that the numbers inbetween are still available. Arnd