Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2490427imm; Thu, 9 Aug 2018 14:00:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyufwAgN2ZfhUUyqmPbrOH+HbwZ6cX0e0biWN8a936iJHRCt/2JUhkWIXcrJ25C6Vc5RCH7 X-Received: by 2002:a63:1015:: with SMTP id f21-v6mr3658747pgl.354.1533848416777; Thu, 09 Aug 2018 14:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533848416; cv=none; d=google.com; s=arc-20160816; b=QHQgFKVBTm2aHsj56PL+m0Dsfc0XkaVEZT10wPBMAsgcQdqceizCXX3eXdWcCruXGB Kre32yZN/3wS9pDOvda7ZCENvhujutpc4vXqTEsTUIWl2+2xKoT89eZSem7WRqhC3odW neND9zOP8408wxt460fjErKkujovhrwTwzFmUCHP/Rf0n93v9I4gDE4GlOlA5V1PjGxa enHJp4jsQAIGsd/pG7j1ZEw4KFh7f+N4U0Xg30nxWX24UL0aA9qUuIY088roHkhn7W7L U2G5Jj2jH/fRm8Nz9cMVkmoGzOul2D68O2A1ufLmOHnsJMj9cBSxUgrHTW7RNgUWfzLX 0YYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=9EHOmG0i8twbdzzv8ukf7wzU5eriP5igoCeoarJ0Uwg=; b=TGJlI6O4CamqCZ99aTj9gxbTsli1HuFaf6+aNWfXDQYUNLR7/ZkXVuTfGzHGMj9lIK gHZ3zIgP3hUSH37yujKrZ4lc1HnI6xUm1/KTzGFCFgx914edx39BAMcBWd1qRhGh8gYa 8MKbOz0QZlFCIgSxOXBwFk6+HW8Eh844r9JQrmPhNZ9HCg9Bo8ZscxAqZqFdSBRVk8EC sr671nbCyqbGyAQYBhxnPE9U3rWi7vXrvy1VwjQVdhLcksrlOmAw/bKIJWtI45MzGfqY 4KbMkRtLLzP9BoUZ6GQI+0m7X4Cy/t5YJsa2tT7Su+bx29hCE01Y2ADas57ni0LsXq5+ +c2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=H3cUuiUh; 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 r84-v6si8369729pfj.355.2018.08.09.14.00.01; Thu, 09 Aug 2018 14:00:16 -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=@sifive.com header.s=google header.b=H3cUuiUh; 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 S1727326AbeHIXZX (ORCPT + 99 others); Thu, 9 Aug 2018 19:25:23 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37601 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeHIXZW (ORCPT ); Thu, 9 Aug 2018 19:25:22 -0400 Received: by mail-pf1-f195.google.com with SMTP id a26-v6so3415646pfo.4 for ; Thu, 09 Aug 2018 13:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=9EHOmG0i8twbdzzv8ukf7wzU5eriP5igoCeoarJ0Uwg=; b=H3cUuiUhYpFculuTrmnoyzLcBQ0L1DB/vLtZk5SUmHlQFn+7RjxviC8020G7SXK3Pe ASDA9KBwNYmZeIrZTZbQTcqFbf5EH7D06UMY2QCk4Z1Jt6zfQ5FHVzRvbkX3jDGRbfFs BenRRg7oddzud+R5DUbwUfouUnz5lTkEpHIulnDT3IzIIlWax+VP1YJapI/FbMHqiQU5 J/xkiCC+O7GyB+xHESZHK4GjjM6hMRUa8AeD0PB3rm6ttjJ2vJLUv+bsHBiogVLlnZcg waX1s8ngR5+BOgMt/IamI0MJzKJiP9vE7Mp90BY8S3CHsX2pEPcagcCxgsUVcyd/B8lH LlKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=9EHOmG0i8twbdzzv8ukf7wzU5eriP5igoCeoarJ0Uwg=; b=EwGKUB7jPNG//VzHtAcF6U+Xss5cVj0+7sqjK2hGKFTjrDWGeiBVpmkvxZxDfj/cqU rhDYSdk3xGqBiKRdqEpC6n2yGLWOkogh/R4RZQnlNu3EdrvhpsHS+iplVFhljzV2FUi/ dJB0xvuCdGncCutHd1Mzifva00efrw+5I6HZjcwlxPOoJGsmtLN4NparAtzBmMjpmffr Dlk0/O7BCw8fy/NkcQDtkQ+yGfXKlW3AHvk4ofL1JTHcV78Yim85Zj6JHVUY0KskzYq1 Kkt0yI70Cdl2rKy6eZFlTYx40nePTBXmE8lLHsj+RiYWVOlBBn+kLyztdGKcs4/8zdvX UEcQ== X-Gm-Message-State: AOUpUlEHSnkfY3/PIIYS/TovQLZmb9EjvoaALTae81XKuM37FCXQo2cS uiGGXlyMwQLuCoqbE297QnFRGxybHYw= X-Received: by 2002:a62:3601:: with SMTP id d1-v6mr3957393pfa.41.1533848328147; Thu, 09 Aug 2018 13:58:48 -0700 (PDT) Received: from localhost ([96.76.210.210]) by smtp.gmail.com with ESMTPSA id a20-v6sm16143153pfc.14.2018.08.09.13.58.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 13:58:47 -0700 (PDT) Date: Thu, 09 Aug 2018 13:58:47 -0700 (PDT) X-Google-Original-Date: Thu, 09 Aug 2018 13:53:27 PDT (-0700) Subject: Re: [PATCH] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h In-Reply-To: <20180809132612.GA31058@roeck-us.net> CC: linux-riscv@lists.infradead.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, marcus@mc.pp.se From: Palmer Dabbelt To: linux@roeck-us.net Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 09 Aug 2018 06:26:12 PDT (-0700), linux@roeck-us.net wrote: > On Fri, Aug 03, 2018 at 12:53:44PM -0700, Palmer Dabbelt wrote: >> This file is expected to be included multiple times in the same file in >> order to allow the __SYSCALL macro to generate system call tables. With >> a global include guard we end up missing __NR_riscv_flush_icache in the >> syscall table, which results in icache flushes that escape the vDSO call >> to not actually do anything. >> >> The fix is to move to per-#define include guards, which allows the >> system call tables to actually be populated. Thanks to Macrus Comstedt >> for finding and fixing the bug! >> >> I also went ahead and fixed the SPDX header to use a //-style comment, >> which I've been told is the canonical way to do it. >> >> Cc: Marcus Comstedt >> Signed-off-by: Palmer Dabbelt > > Fails to build riscv:allnoconfig. > > CC arch/riscv/kernel/syscall_table.o > ./arch/riscv/include/uapi/asm/syscalls.h:29:36: error: > ‘sys_riscv_flush_icache’ undeclared here (not in a function); did you mean ‘__NR_riscv_flush_icache’? Thanks. I added you to another patch set.