Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5111977imm; Tue, 18 Sep 2018 04:38:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYkzGRk2ELD3+hK+5DKkHhfZl3WDM6vqY5ztdhD2FTZVf9pWYZn8gFC1IW7qeW5LJ4ispOu X-Received: by 2002:a17:902:e004:: with SMTP id ca4-v6mr28425755plb.252.1537270686272; Tue, 18 Sep 2018 04:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537270686; cv=none; d=google.com; s=arc-20160816; b=XLKbuIDnao2bOlU3hXf6uw2EBv2mtDDGDPR5MGmXxzvTx6YE8wiiixJm7gsTfyljln nZ3oOn1cp49XO6pQlLkF+9r4XUd2ZLDDrNpMyd1EVvrbuwaYr1XBr9S2AdA30oa5kT6e y+yc5DCHrHflE8degJ+SHqc6jJIG826X2n/1o5clW/kCtMMGcGkG8LgvAe0fHE4XTztz vR5K+a0n4qHAORhRLDAt8wPushPplzMDhjnFiMXDRGvARB8gZvWoprZDq1eSpg4eDVkI zNVmCHgohUL2M77SLVCf4YE/We4cwP045fX1Q5WFEaP2CObr9qNBCsWI0wCHGQ5RXSPG 0G8A== 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 :references:in-reply-to:mime-version:dkim-signature; bh=t9Y+jyPUH5P+1FKYGLzh+is3Z4n4lE1pjVBr0R3FxVI=; b=TiVr4lKmzIZC6DZyJBeR4B0X44+XFQ3UV8y5Lr4YCsG4mmmlUdkpdGJf+Keo1e3B+U 4A2DHM4uYGqeBX9nOHs57A6wVDQUJ2dcgNcSV7EwHK3uJn5vgg8czTdKrS3WPzi3dSUP 14QDANIrhcWegVLCrSW9AHTXSjINQVnW5SOW1mrq+Sf8h/JzntN7i3X6+9hJ2hNBMkJM JdpSA3Tuf6YiRVOWrUAR+MHLDzpIvSeLDwLIDLcQhDsyKUrGLwunHdpWSlVRHqcRzBwy Jx2gTRx4/Ta7jW5I3SdebkCgWKILmgWhyqHrJ6aWcOxn6/FMEGVfrsnn3XBwOnIwPs5c WDTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MxjZVDGA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si17242693pla.450.2018.09.18.04.37.50; Tue, 18 Sep 2018 04:38:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=MxjZVDGA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729039AbeIRRJ2 (ORCPT + 99 others); Tue, 18 Sep 2018 13:09:28 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:37880 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727660AbeIRRJ2 (ORCPT ); Tue, 18 Sep 2018 13:09:28 -0400 Received: by mail-yw1-f67.google.com with SMTP id x83-v6so623061ywd.4 for ; Tue, 18 Sep 2018 04:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=t9Y+jyPUH5P+1FKYGLzh+is3Z4n4lE1pjVBr0R3FxVI=; b=MxjZVDGAAzQPQDx1CerTQdc8iZTO/Svp3RAm3SBDMuHCK866vSXAULxezF3LiDyKeK XhCBCvZsJFEE+TQZhVXkl0BP7rTRnDP83LBBjTjYee+TRgMScOFFoRZF3stXzyJMu20e PpEVgoUL7UsxQdQfU9sYl3rmFp+8Qz7EyN0rU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=t9Y+jyPUH5P+1FKYGLzh+is3Z4n4lE1pjVBr0R3FxVI=; b=QgfjpRZPxtWjVsVAoPQYjHhLrCqwVihm8U87IWjMroAuufQNY1hLDYG5mosulO183O krVsl9/AJ7xzjM+GXzymngkOA9IeY4aSsoch7iubzUxxQ4QgkBwW01lefC+WTdTEMeEn Yd6fCHBCeox0AfA0aLAfxtuiDPEB6sUbzhHWVK1X59upGPW92WpGboeEoLcNfoJadMZt 74k8EDmPWKNT8eV5Kx5rjv3T0q/i/LqQX+QPcPuuQu68kZRsTIu1bjVOCsYlF7oF9HsD +qfD2rPxSYuASwMNYUqMIamYbbONVmIOeC7snubg+BVLniP5OmawSL5WSRb0a/RhD+Uz KpPA== X-Gm-Message-State: APzg51BoYXb+1FR7n9Tm/A6jKdgOXvuMtB2ri3ydX87OjYzIVQcFfp2t rpXO99iD7UxG16daOYf9qfi5U9ZbdUK5ZjSIdvddcw== X-Received: by 2002:a81:9851:: with SMTP id p78-v6mr11847159ywg.175.1537270636651; Tue, 18 Sep 2018 04:37:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0d:cc4f:0:0:0:0:0 with HTTP; Tue, 18 Sep 2018 04:37:16 -0700 (PDT) In-Reply-To: References: <1536036087-15260-1-git-send-email-firoz.khan@linaro.org> <1536036087-15260-4-git-send-email-firoz.khan@linaro.org> From: Firoz Khan Date: Tue, 18 Sep 2018 17:07:16 +0530 Message-ID: Subject: Re: [PATCH 3/4] sparc: Add system call table generation support To: Arnd Bergmann Cc: David Miller , sparclinux , gregkh , Philippe Ombredanne , Thomas Gleixner , 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 6 September 2018 at 21:02, Arnd Bergmann wrote: > On Tue, Sep 4, 2018 at 6:42 AM Firoz Khan wrote: > >> The system call table generation script is added in >> syscalls directory which contain the script to generate >> both uapi header file system call table generation file >> and syscall_32/64.tbl file which'll be the input for the >> scripts. > > I would argue that for sparc we only want a single input > table, since the 32/64 versions are similar enough that the > differences can be addressed with 'abi' flag, rather than > having everything marked as 'common'. Isn't that the > purpose of the abi flag in the first place? > > Arnd Yes, we can do that way also. But few concerns I would like to share with you. I feel it add the complexity in the scripts. eg:- 108 32 setresuid32 sys_setresuid 108 64 setresuid sys_setresuid This case the script has to be smart enough to parse the .tbl file properly. It need more logic in the scripts. This is not common. So if you keep separate .tbl we can avoid this. ABI flag is serving *nothing* in all other architecture including SPARC. But as I told in the cover letter, I followed x86/arm/ s390 architecture's system table generation implementation. They are keeping ABI flag. In our case we can delete this flag completely from all architectures. Most of the architecture these 32/64 similarity is absent. So it would be better keep separate files to maintain a generic script across all architecture. One question here is; while invoking the script I'm passing the abi flag. It is simply keeping in the .tbl file to make the file similar to x86. What I can do here? - Firoz