Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2873170imm; Sun, 5 Aug 2018 14:30:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe3UV+VuGCzvCjrwpxOPuG235sUZc+nkhK68LoxzCuZoyBoy5bYaYPZiZPsXtPBAngPkr0Y X-Received: by 2002:a63:6c05:: with SMTP id h5-v6mr12245997pgc.367.1533504634158; Sun, 05 Aug 2018 14:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533504634; cv=none; d=google.com; s=arc-20160816; b=mgHDLo1BRkQiSjBR8IK6r/Rcv84RtGGAeod1GJ/4P2z78Nm24fbP+ID8uXczp2i2+q v71xg+ZPHjnqFF4bU9oUdEJ4nv4CMeUXRldcAdgdY2Zmxj17d+jQpSGokFNOyJV0RB1U YbfWMCv1PKnW195pSwY6GE+7mnB7X4zem05FJXyoRR/0hAf2hQRfyX/+Yshli557qKwS 1JHoxennG08iWfX/5ogB1b3kMMX1GnLVIRZ1Y+VWjK92fI+YJCD7dtUdrFaW4Pc2FYCy 04K2/2yXGovy6gU6Yh4ufqLd4k6cxH29I6cDvuV4WV7o8XL2OQE8ns3Azy/qG3I5i4PU EMBA== 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 :arc-authentication-results; bh=qy3gWjRvhFb858yp0ktt9V/e2qF0xABcPEnwzy4UkQM=; b=N3QVaLp+8JgC7OKpb0CHIc5JF7ljTNN6df5fB68/QHS49QbKZX1FANN6S3isDnnGhL z7sMrwtd2aamD1r6ykC1nKSDo+rnDcamP5kpfR0mD+64OQhnvUFjqBW2c4QIhrLzL2wq M/6l5xu1UsnZMpek9D6tsvi7R6zpPsrVAfcJ17cku4SIqC4wbMcZXHeX3pxsuXz7UYj4 axAfGcXY0qw5cFDsGS5cW4BFoyGuMXM9UqkbLtpJs8rd8dPJG6oFfaE3wuNEh3g+cSFY sjEoVweNahaCqOKOiOJqHScT02iR8Hdfy6RczQRsuqx8Njtvc6RPf66O+x6dh4XbLNFe aMhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=n77eaP5F; 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 c197-v6si13204142pfc.74.2018.08.05.14.30.19; Sun, 05 Aug 2018 14:30:34 -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=fail header.i=@gmail.com header.s=20161025 header.b=n77eaP5F; 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 S1727521AbeHEXfb (ORCPT + 99 others); Sun, 5 Aug 2018 19:35:31 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:45423 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726865AbeHEXfb (ORCPT ); Sun, 5 Aug 2018 19:35:31 -0400 Received: by mail-qt0-f193.google.com with SMTP id y5-v6so11745503qti.12 for ; Sun, 05 Aug 2018 14:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=qy3gWjRvhFb858yp0ktt9V/e2qF0xABcPEnwzy4UkQM=; b=n77eaP5FfuvsZmAda9ePKocJmpfK2hwtjWEEg0WakYf4Tmn1gVcmi96Qq+YhFrJtM/ a28L10ryaYPactIHVA7XEybSrwRV2AyjWJcMs5KKE0AiBLKtCtyhcvyRTdsa2s949WC6 JMZuXv6o1beAtfdUeplNAWMAj4AdnyRulIS51eDGu8gc2MewVQO3naj79EPs3rxkSTKZ JceF4yt4ycGqsLZkq0UUSxOJqrqvEqaYoo5mANTfxk6tfVcctHz5VHTb8ydhs9v8Xx95 fJQOWq7xUxRdCi54+EEetIGW0BGlaHlZF3VMysPj5vOp2nC5QZZoBfBHyLz3fNHpN1eY QGjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=qy3gWjRvhFb858yp0ktt9V/e2qF0xABcPEnwzy4UkQM=; b=LTV5R7m/SfPiH9hJTAFjQS927MlkYaigh/A9s7WRwAuJU5yI2tk2qQi8RIfs2+9u1P Mq5yuhmtsP7j9nOJM89B2+w65h6kdd0gYEWAbdAodaGe0iJf453l/vcrU1VRjEgwgbfo IWqtRS7ixxxG4TfqJEF2TwUJ01uI1JhVD9amrlzk2/lsI2Oz7O62rVYh0pTF6FaHRxse hI6Mg+MSgXOZr90n/NVCw6GsVT2F+z9sN9+AVb+yOFr9kltE3ZRENEWzGloVcj1GlVjC niqK7TKmqj5ETuwEoPq7QEPypjumrAxbgaHftRfnApYnK+w4TmCO1GHBMPMgwXRDUfeY EsaA== X-Gm-Message-State: AOUpUlEKwdt/X6LaKvDKobPErEyhmtdbxZpLXKedxUZJ9l3EYdrx8QiQ YMs13CijW07R5ZcQUIF9CBN/Nhi9g2i/xocnMfQ= X-Received: by 2002:a0c:adf8:: with SMTP id x53-v6mr10962632qvc.19.1533504571136; Sun, 05 Aug 2018 14:29:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:967d:0:0:0:0:0 with HTTP; Sun, 5 Aug 2018 14:29:30 -0700 (PDT) In-Reply-To: <20180803073916.GA19580@infradead.org> References: <20180707054247.19802-4-deepa.kernel@gmail.com> <20180803073916.GA19580@infradead.org> From: Arnd Bergmann Date: Sun, 5 Aug 2018 23:29:30 +0200 X-Google-Sender-Auth: euUnvB5rV_ZI3-TAKftL30KPB8E Message-ID: Subject: Re: [PATCH v3 3/7] riscv: Delete asm/compat.h To: Christoph Hellwig Cc: Palmer Dabbelt , Deepa Dinamani , Zong Li , y2038 Mailman List , Thomas Gleixner , linux-riscv@lists.infradead.org, Linux Kernel Mailing List 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 Fri, Aug 3, 2018 at 9:39 AM, Christoph Hellwig wrote: > On Thu, Aug 02, 2018 at 06:26:58PM -0700, Palmer Dabbelt wrote: >> I thought we were using this to make uname print "riscv64" (or "riscv32") >> instead of just "riscv"? Is there another mechanism to do that? > > That is set in the UTS_MACHINE variable in arch/riscv/Makefile > and doesn't involve compat.h at all except when actually implementing > 32-bit compat on 64 bit, which RISC-V doesn't (at least yet). Note that the logic was also wrong, if we had an implementation of CONFIG_COMPAT for arch/riscv, it would always result in the "riscv64" string for both PER_LINUX and PER_LINUX32, when it should be "riscv32" for the PER_LINUX32 personaliy. Arnd