Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2302606imm; Mon, 24 Sep 2018 01:47:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZFaEufzJ5K7gmVSIDV8nwwoxWbzoLarZHksUUiTk0RGMNm0iIaJUoveDqR4JiUGgJ/A1Hp X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr9368319pfj.74.1537778877792; Mon, 24 Sep 2018 01:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537778877; cv=none; d=google.com; s=arc-20160816; b=WUIPSl1htF4ZCa8KyCvF/A9l4ZYczOxgYDvUbEAMn8rkBAqtYH65e1piK4XJfadgMT 40vU5dnWuWsMQY5X3bOUCczEVtXk4GPwW79P9QitxPozA+k4ZeBTnbhmZctc1AZHIUMG vxz1UalobPJ2fSNAzFiiCOK5bxcMn5PNcOJq4nuDJnjXHJVloPmV93naYuKzDIZY3whg TYZiaDjZ6WwynEqYcp/VBiR2ZLc5sZZ+WSAq9QdxJ5F5g098OwkcvwW0VQR0RpDgvqip oZSm/4SHiCtf6/oYY95h9MAxoxRxyrFkI3PG4EjknF/eQKqd+avYBlJPN3cI187rHJ4W Lubw== 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=IB6AX+1gqLdngY133C8SE3T3DnBDlv7sNnHHYf7gcJY=; b=GkRh6/pq7etqNS9QU1/Gncj7Lfn3jIO2sHgos/PSkbtF45rRRYum6jZLa8r4FpjaCt WkoksZPkKL8ICI/ORqt3su9z5KQxC3BfVfKRYti5rup7RBouOLTVGUO3M0qSKbM8/45m BkJw5fTyyIMX09cx3CU1jsvAv8KhYoqGwIFJfKAs0Ny50bKKBPgQNTM9ho2Hz9xEZSkR DHg9tqtJga+IlKMRiBGHxokv2vPPmb0zjYKm40peNEiTWI10m9VJHXgPoQPinD5IlIWR bTL0xPE3MqRYgxka4eCDywqRuyqh/tCTOSr+Cj7Xz5cBFwZifVhEgrcteLpd3N3MZd95 UbRA== 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 p5-v6si10181517pga.576.2018.09.24.01.47.42; Mon, 24 Sep 2018 01:47:57 -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 S1728028AbeIXOs0 (ORCPT + 99 others); Mon, 24 Sep 2018 10:48:26 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39403 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727525AbeIXOs0 (ORCPT ); Mon, 24 Sep 2018 10:48:26 -0400 Received: by mail-qt1-f193.google.com with SMTP id c25-v6so2854309qtp.6; Mon, 24 Sep 2018 01:47:27 -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=IB6AX+1gqLdngY133C8SE3T3DnBDlv7sNnHHYf7gcJY=; b=uAsWnazgFCObe9U6bRZF+6IupENhfGYT9JtmBCRrMnik/1YUsfwjS/4OV7YY9DAm2d oUb87dtezVNXIPCfvE817KZH50Txrt0+3dztp5xqjBY7JTsdMWjqk0EwEyxLtis8vbb0 CzjQvqqCaHB2RaAHXONTST6AQcjy/lh+3coU2Vd6Aqo1V5t2488SxME1S9FJ31sgS0Kx JIDdBBOUuv0A0s50todSoPMgd6klyLM1mBQKElQkV217FK2+dZ889H2HWYu8NKMi9keY jcyFnnK88OasTMh6+S4n0xkQ65YjanS4Uy7NEj+GU9aMi1s3Zq1gobzbiTbwzhLtvWdy Aeug== X-Gm-Message-State: APzg51BAy6vrZT1ARK+5dCzEuqdBOXNo7bgcDDNgjzxjYLvwYAZGTCSY 64fBIWRCshIFi0vrbpG/Ph6ug749BfEPCeDTfY4= X-Received: by 2002:aed:3f22:: with SMTP id p31-v6mr7104444qtf.185.1537778846547; Mon, 24 Sep 2018 01:47:26 -0700 (PDT) MIME-Version: 1.0 References: <20180914143719.GA27689@guoren-Inspiron-7460> In-Reply-To: From: Arnd Bergmann Date: Mon, 24 Sep 2018 10:47:09 +0200 Message-ID: Subject: Re: [PATCH V4 00/27] C-SKY(csky) Linux Kernel Port To: Geert Uytterhoeven Cc: Palmer Dabbelt , Guo Ren , linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , DTML , andrea.parri@amarulasolutions.com, Peter Zijlstra , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, Thomas Petazzoni , wbx@uclibc-ng.org, Greentime Hu , Stephen Rothwell 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, Sep 24, 2018 at 9:21 AM Geert Uytterhoeven wrote: > > Hi Arnd, > > On Fri, Sep 21, 2018 at 7:19 AM Arnd Bergmann wrote: > > On Thu, Sep 20, 2018 at 10:52 AM Palmer Dabbelt wrote: > > > On Fri, 14 Sep 2018 07:37:20 PDT (-0700), ren_guo@c-sky.com wrote: > > > > On Wed, Sep 12, 2018 at 04:30:36PM +0200, Arnd Bergmann wrote: > > > >> On Wed, Sep 12, 2018 at 3:25 PM Guo Ren wrote: > > My plan was to get that all into 4.20, and then have a conversation about the > > actual syscall table changes in 4.21. If we need it for both csky and rv32, > > we might just change the generic syscall table that way in 4.21 without > > changing all the other ones along with them. I don't want to drag things out > > over too many merge windows though, and my plan was to do all architectures > > together to simplify the version checks in the libc code to only have to check > > for a single version. > > What happens with the version checks if it is backported to stable? They end up as dead code. The way these version checks are done in glibc, we always try the new interface first before falling back to the old version, but don't check the kernel version at runtime. The compile-time check optimizes out the fallback if glibc is built for a recent-enough minimum kernel version that is guaranteed to have the new version. Arnd