Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1345441ybg; Fri, 18 Oct 2019 16:23:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGoipPaBOmVmpfE2vhjHO7mQPghki5rW+JSBOdpwGOx75io2y904UUy8ZxPv4fVHxa0LFc X-Received: by 2002:a50:ee8f:: with SMTP id f15mr12497385edr.127.1571441029035; Fri, 18 Oct 2019 16:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571441029; cv=none; d=google.com; s=arc-20160816; b=DgwB/u0pWqI8Hg74Gg9N7gjjYRdN5uZhmkyZAK/ylRAGRyhU7kRB/TxEkDLS9D/z2C +SxysUg8SrDcKpNf+bikSAFbSjW2N2MwOFr07qEEZT19GZND/42VuAqHr87rtaKvFjhR 2ADBjnKC8pSdRkiu283I4anJyC+qtgvn5IyPlj2NXstBzYrUyzIp4AMdcrAclm1BBPCp gkG07x9ZakCEYfAvnAXc4eu7EYRG1+BqcBE3fzSUxjP5W51gVXA7QqW2qKEokflmrimp 0YNo9tOpgfaygy5rC44+APxnHrZAQLfKORvPwlx8EMqZ0lapkmYpf5NF/DVM3ITXcmoN lElg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=7e+V7TaWRTvEWCyZ3TIBozn+C5eqQAWMSVjzjswVInM=; b=e+KqImVpwgQa6pO5brtG2iG0BnuNzcBRqdLj+sYN2flUa1EYQMcbLyv34bKfafa8xN y2Olnf0FaaRvjRyjztJvi97XPGMALsShtRnIYV47ENgjK+Dqq/HrZb/cX27q1qFrVy2+ NgO29tIvjUC52RR10uVCJya7wTvFex7nGW6SDIa5mGAzKHDu1NYvQw2846j1IpZ1g3Dz A0ycID6nu5kISEla6a+edVpy7zByauIyXQNzS8ZnJ881QC8YBMY51zfZXRJaz7JkumCp NDDTkoQRvVW+WEvsXNnx5qMVHCwm3TWVgSKt3qbAS6F6OWw0qjepouO9QxdBgz66kbjA qtWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=FCqTGYJL; 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 e18si4624458eds.68.2019.10.18.16.23.25; Fri, 18 Oct 2019 16:23:49 -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=FCqTGYJL; 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 S2404278AbfJRGIW (ORCPT + 99 others); Fri, 18 Oct 2019 02:08:22 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:40115 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732869AbfJRGIW (ORCPT ); Fri, 18 Oct 2019 02:08:22 -0400 Received: by mail-il1-f193.google.com with SMTP id o16so4475462ilq.7 for ; Thu, 17 Oct 2019 23:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=7e+V7TaWRTvEWCyZ3TIBozn+C5eqQAWMSVjzjswVInM=; b=FCqTGYJL4pcSf09mUXTCjzzD/tN3GA+pmkhsswPDoSW9RMSfp1NX0HlpWVZVFKaJsO yOkJo6TaA8Njus7B3/phczPKLgPYZRo557wLrJb1n9FXSxOkwU8EuxO7aqwU4tyTH/o8 9dOlTKITXaZxpxg9rjDfI6S86wzzPy/La/9b7g0Yvo8u3ahiXsJul2DBCLR1zF5OekAL HLJ/AoD6Zsn62pDmSaL9kV5Ofc0jKiR2gUwHTh3+Z3uBSMh/l4cWDAJ+56JWYTBAC6q+ Hsj02s7BERuahGOWHyGcT+SayLq5wSAoUD12NIR/1RWM4X7uX3UTUsaRsGqvjbTrlOJp X8Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=7e+V7TaWRTvEWCyZ3TIBozn+C5eqQAWMSVjzjswVInM=; b=T8fF+F7kv8LrAez2BQeMkcJ4hdVCwAo73xPgRP924Sk9S8zwogmO6BSFFCFpmdYsH3 vUSr/GfLm5/mPr+reMODWxpmnvZw2htBSDc05twLCAPJzmnmgP3uPR0e2eJmtmZ8X10L FWlbDkC9t+sksllM6h22MDMBj//xY8O02uO+e+q+FefsLCDHeIpmEhDIfG6XfDqG4OR+ B9MfP+/xS0/r4Qi1AgImkG7ICY95BwIV2SEvczrJZujhh2iOAxTPajyIq3i+l3NkM2hn hfrjpOn/gYd/EQT0JYraIAUq9d0/j52cOWz6qfB5U0NmTz+vdRmMG2J3JBoliHgDsEKL zh6g== X-Gm-Message-State: APjAAAVjF4KRWm1i0OgwAmBuTRegisT9ZlfyafIZtkLJs1/oFROdwyy4 tzFcrTlT+/211TkffxpnDbvsrQ== X-Received: by 2002:a92:7982:: with SMTP id u124mr8515068ilc.161.1571378901624; Thu, 17 Oct 2019 23:08:21 -0700 (PDT) Received: from localhost ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id t24sm1478227ioi.44.2019.10.17.23.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 23:08:21 -0700 (PDT) Date: Thu, 17 Oct 2019 23:08:19 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Luc Van Oostenryck cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive In-Reply-To: <20191018054701.sjueyb3agoaopnla@ltop.local> Message-ID: References: <20191018004929.3445-1-paul.walmsley@sifive.com> <20191018004929.3445-4-paul.walmsley@sifive.com> <20191018040237.3eyrfrty72r63pkz@ltop.local> <20191018054701.sjueyb3agoaopnla@ltop.local> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Oct 2019, Luc Van Oostenryck wrote: > I quickly checked and gcc also complain about the second line: > $ cat y.c > #ifndef __riscv_cmodel_medany > #error "setup_vm() is called from head.S before relocate so it should " > "not use absolute addressing." > #endif > > $ gcc -c y.c > y.c:2:2: error: #error "setup_vm() is called from head.S before relocate so it should " > #error "setup_vm() is called from head.S before relocate so it should " > ^~~~~ > y.c:3:8: error: expected identifier or '(' before string constant > "not use absolute addressing." > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > So it seems that gcc doesn't join these lines. I guess that's what I get for assuming that the original code was tested. Thanks for doing that, and sorry for the noise. > Fell free to add my: > Reviewed-by: Luc Van Oostenryck Done. - Paul