Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp126732pxb; Tue, 14 Sep 2021 20:53:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/hmFPDGlXHVNEflZSq6XKXu9UYUV4ky6tdiiJSO9W//xuUXAzc19FpPk4pmH0HqXBoEPY X-Received: by 2002:a02:662b:: with SMTP id k43mr12799683jac.1.1631678034586; Tue, 14 Sep 2021 20:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631678034; cv=none; d=google.com; s=arc-20160816; b=z7Cf1kuqrTXu4BhYfYVFOx0c+FU8M4iPVtdsVIOfjGprLvX1SofNk9ccDq8iaS8W1I 5gdafNajo8xAqlNWmcyc/fKoz8zxOpu1XlTmhcHlHiIFIcJh0yygCX7h3QSRKGmWW4c5 KzOSH4Sa9P6Sz4mT6uPsBds+msvBJ0wBKGd66qlJiiuslT3HeUP/g0gPH4vKHLGwwohi Py0ZGVeJLz2qSJzs1A6Iqilm2T8ig9TpR/sNIl1Ac97C0h9Bx4RCjrdi8WNPPPuvkF6t 5l5btQfZjUcellR+sIx7C0w8LNXe3KateOxH/8CZdulgPbJtXmGz19W0xj82u82My2Cc OW8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=LJ4f8HmngmERpwG7jIZZPQRjRc0k1LbYpBN6nK8NBIc=; b=JxWGhwDnh+aAn0nGaymCWGAIX/ARHHosyOzqkUnnY+qhEjQM4FEIRzcMI9GdQAu1eY lkhSsj3tcOmEgSl1yWezYuyQMkUO/fymgi8i+AkN6TQrOEhVLm7Cd/qdXlPQKz1OjC22 emb0KvFKLRD3yt0ts3IlV8K4jkOGPFCqKQn+SUN+MjxBbYba2irXQ7/ux+mlRASaUnW2 5gq5S1x4R2tYRLuhqI9K1lza3TJPZdwdHT05dF9e8zxB+BPZTKRt7aHY4iRo+vxV2F8R sWIV+GoYpQiBb2oBDMIZXdXWWcsGcS4+KROLJd7Q6jwUJ+SF55BLAcK0nUXMyxN2V+AV axuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LEgWaiRi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si11238952jaa.114.2021.09.14.20.53.43; Tue, 14 Sep 2021 20:53:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LEgWaiRi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbhIODyU (ORCPT + 99 others); Tue, 14 Sep 2021 23:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236435AbhIODx6 (ORCPT ); Tue, 14 Sep 2021 23:53:58 -0400 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DAD7C061766; Tue, 14 Sep 2021 20:52:40 -0700 (PDT) Received: by mail-ot1-x330.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so1750928otq.7; Tue, 14 Sep 2021 20:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LJ4f8HmngmERpwG7jIZZPQRjRc0k1LbYpBN6nK8NBIc=; b=LEgWaiRibOmqug5ZHTfRHkoXMuKiJ6jf2lFXyKM5BFmlPas2u3osFBzaEvEqGYmluF bdeb5F9zoHSh9FIkwLNOi7uxo/di6b5B8XaK1+yojDAmnRwkJqTFPivpleBy+oTuPANb N5tlheoijyXkHvQgLHRIfn1dLRz5B7qIgEOOOOdHvhejLR/9HJIhCjK3PN1B20Q+y16j 35mjX7Yk7E6L4CTd4qX4AU9HuPrM9G9Tdk3tOGtJMFqn2jOxUWvfdEjGTu0DV6aRJfI/ F+N/PN778SdT/lrcjXqwLfQ8R09Ba76wHGBB06qmoCqeHxOl08ZnLwAb76zmHlQtPxpJ xXAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=LJ4f8HmngmERpwG7jIZZPQRjRc0k1LbYpBN6nK8NBIc=; b=MiyilRJuyzM7vtmMMQPmykxohvsCOZArjc+zoX/sQjLLuYBDJfZYKolQODAkUnylRL GXHjYGU57jqsWmH3O8csg8MsPnUvmvs5feMgyohDVyM6we/yAbIb52VJWBntYpR/7lk6 rbUG5GRIDKTJOGdvy9AEGP0yL28fueGOwdgpIhgpXN6Y+/U3sqHuYGsEcH/YKqAnREG1 etARF9Mhbk5NuYTDQtCB0FTWmT8zzXin6Oj1KH1lZF+8DsCoNJS4oLeUJgm8vjaXHrTw gYaTik7X3o/q1lSDr0CzO7ZDbIuAfU5xcm9+pbvks2ykvCzxNKuZA9JZwBCoF5tWwZsW zJjQ== X-Gm-Message-State: AOAM531CBgBU9DnNFGOEy3Sj2QqQUm+SKTBdkiqlV//hdx5W+bHltRl4 JSuxs2+we8fwV7/qgMLapZK2x/rc9tQ= X-Received: by 2002:a9d:d35:: with SMTP id 50mr17575124oti.22.1631677959552; Tue, 14 Sep 2021 20:52:39 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y16sm3060719otq.1.2021.09.14.20.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 20:52:38 -0700 (PDT) Sender: Guenter Roeck From: Guenter Roeck To: Linus Torvalds Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , "James E . J . Bottomley" , Helge Deller , "David S . Miller" , Jakub Kicinski , linux-alpha@vger.kernel.org, Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, netdev@vger.kernel.org, linux-sparse@vger.kernel.org, Guenter Roeck Subject: [PATCH v2 4/4] alpha: Use absolute_pointer to define COMMAND_LINE Date: Tue, 14 Sep 2021 20:52:27 -0700 Message-Id: <20210915035227.630204-5-linux@roeck-us.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210915035227.630204-1-linux@roeck-us.net> References: <20210915035227.630204-1-linux@roeck-us.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org alpha:allmodconfig fails to build with the following error when using gcc 11.x. arch/alpha/kernel/setup.c: In function 'setup_arch': arch/alpha/kernel/setup.c:493:13: error: 'strcmp' reading 1 or more bytes from a region of size 0 Avoid the problem by declaring COMMAND_LINE as absolute_pointer(). Signed-off-by: Guenter Roeck --- v2: Declare COMMAND_LINE as absolute_pointer instead of using absolute_pointer on the define arch/alpha/include/asm/setup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/include/asm/setup.h b/arch/alpha/include/asm/setup.h index 58fe3f45a235..262aab99e391 100644 --- a/arch/alpha/include/asm/setup.h +++ b/arch/alpha/include/asm/setup.h @@ -36,7 +36,7 @@ * place. */ #define PARAM ZERO_PGE -#define COMMAND_LINE ((char *)(PARAM + 0x0000)) +#define COMMAND_LINE ((char *)(absolute_pointer(PARAM + 0x0000))) #define INITRD_START (*(unsigned long *) (PARAM+0x100)) #define INITRD_SIZE (*(unsigned long *) (PARAM+0x108)) -- 2.33.0