Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1297313ybg; Fri, 18 Oct 2019 15:25:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaIEGa4AyVHDU/RYBcMB1rODKIJYTEIOmBMieGi6+aktWjCz3/2bz8FAzDFE6nj+o4lNf5 X-Received: by 2002:aa7:d888:: with SMTP id u8mr11946835edq.144.1571437518451; Fri, 18 Oct 2019 15:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437518; cv=none; d=google.com; s=arc-20160816; b=MlPRZXrrPKJhHx8JOz/T5kjFLB2Y47JlY0MnxM+bp7p4YQtoiOVB3tvvcMaaOLdTbN G6pWToHjvwIs6vkLqWK30ai0xXDBcHv/xAQJBbgAodsfTO0+OIo44KdT7itoV4G93J+v spkCzk0w5CQOLDag8XY6dmhSrzP/JXXVLBa+2f84v6X703X/PnYw3AMOJljth5dqUYnW hsbhqSJEjYR1BU5qEGnq52fo34xwEY2j19FV2jGHcDvt31SC58qiNlPovuxfBovkF21y eN5IM+F1NHfRjEV4vtIDoNvGe9o+rVw48ixHA651Sb+Lba783km13LTyYvJ3DaGF47K+ 7ovg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Fja9Gt2B2/DBj4SCSTf44z+mXpP45MXj3+t8BNYs+ic=; b=FchevlC0UwnN4Q3yJGeHVAxaGWpkKhwE1pix+hzSgSmSiO547JO594gm94WHysgi5K PuQGAdFRjtNLhGtY3IHgSzhJPNUgBlsAKU6i6m8IyQMI81VCdVCu8SNcKxPN8ayN3fvt eXXshIWPLrQMp1ooUR6wubmcARjW+Mxo7XTcvKAO/zf2nxjBkl+I1dsn+9WU4erjLxIY cMnXnTwvCVDkC0q1botWobIGdojPM2BbO0VxKxSfbCUN+wAzLFU3ZPfVQrwRpjdCLenf s/JUH9oEl+6iRqkQJD6kHEHirUAo8yLSRTXcUgg/RImgL+mtyzH/A2E0nh9Sr7P26ilS Bx8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=cEtvxQFb; 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 k1si4762415ede.255.2019.10.18.15.24.55; Fri, 18 Oct 2019 15:25:18 -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=cEtvxQFb; 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 S2407344AbfJRAty (ORCPT + 99 others); Thu, 17 Oct 2019 20:49:54 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:39530 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407271AbfJRAtx (ORCPT ); Thu, 17 Oct 2019 20:49:53 -0400 Received: by mail-il1-f193.google.com with SMTP id a5so3941219ilh.6 for ; Thu, 17 Oct 2019 17:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Fja9Gt2B2/DBj4SCSTf44z+mXpP45MXj3+t8BNYs+ic=; b=cEtvxQFb6Wq310iPciXVgojndV2bclFUO+ObVlogs2+0qitTmU0a1m3cCj+69z9HYQ c1cKLE0d4qBkVBQTVu9uL+fbRXh70eiIyrt4lI8EHOdpssngWDrt5lVpRPhCwWz3vdCO FHVKdKL4eNBtCX2R6sAo5oq8f+fNAICzCjSa2W1fPVbgehN6xvcXIEt/14F9rOtMnxxF eG6jNz37+PJ9sn2ZO9G1T/B///TzwQvmYzqKJEyHjmziNymtMfVY5ueDdR31rq387Hu5 rP2XAc2+icZEuyKdnWiPyYdUScxT4YuTQmjTfuBoW+9rPseXZ2Nh4wPf1yuhTnZYPPZU UV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fja9Gt2B2/DBj4SCSTf44z+mXpP45MXj3+t8BNYs+ic=; b=i+vUFES34luzDzuHoSlU77yoqPAQzo3hlKLGDn9GGpCbHAcCuMUidTvnkCCZOTRU0L Ty9hWLYM+8/XQmmFQFBkWy6V87hmQ0MtCg2VLWhQoQ0NmtNR4XhSpCYlOy59gxluB/DJ 7Fr94ZtZkbwgHkYLeX99POH8cMjM81TzTD+bMqMBZCILZgsNQSnGOgBKDp4CtrRdg0BM de5mtyD8FD4ihwBXSguE4P3CKAqz2BrnMMb0+16luF7g6RR6ulrNjDAXFcY163z8h4w3 rCH/RV05D2EG13t5jcuC1MbRsizqJQ6bjBEkUWBFWMdUTgLlVVx4vX+0Rf0s3qcnTOsg bOyw== X-Gm-Message-State: APjAAAXOCy8m07FEqx1gyzNaobEJGwLryR2aMHeCi0tmUZWGT3UqOAUP jvJmY0dpK6GNeTY/w9wU5H88YvOXjPA= X-Received: by 2002:a92:dd88:: with SMTP id g8mr7007262iln.221.1571359792718; Thu, 17 Oct 2019 17:49:52 -0700 (PDT) Received: from viisi.Home ([64.62.168.194]) by smtp.gmail.com with ESMTPSA id z20sm1493891iof.38.2019.10.17.17.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 17:49:52 -0700 (PDT) From: Paul Walmsley To: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 3/8] riscv: init: merge split string literals in preprocessor directive Date: Thu, 17 Oct 2019 17:49:24 -0700 Message-Id: <20191018004929.3445-4-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018004929.3445-1-paul.walmsley@sifive.com> References: <20191018004929.3445-1-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sparse complains loudly when string literals associated with preprocessor directives are split into multiple, separately quoted strings across different lines: arch/riscv/mm/init.c:341:9: error: Expected ; at the end of type declaration arch/riscv/mm/init.c:341:9: error: got "not use absolute addressing." arch/riscv/mm/init.c:358:9: error: Trying to use reserved word 'do' as identifier arch/riscv/mm/init.c:358:9: error: Expected ; at end of declaration [ ... ] The compiler doesn't seem to mind the split string literal, but it's pretty ugly to my eyes - enough to outweigh the value of the 80-column warning from checkpatch. Fix by concatenating the strings. This patch should have no functional impact. Signed-off-by: Paul Walmsley --- arch/riscv/mm/init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index fa8748a74414..fe68e94ea946 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -339,8 +339,7 @@ static uintptr_t __init best_map_size(phys_addr_t base, phys_addr_t size) */ #ifndef __riscv_cmodel_medany -#error "setup_vm() is called from head.S before relocate so it should " - "not use absolute addressing." +#error "setup_vm() is called from head.S before relocate so it should not use absolute addressing." #endif asmlinkage void __init setup_vm(uintptr_t dtb_pa) -- 2.23.0