Received: by 2002:a05:6512:23a5:0:0:0:0 with SMTP id c37csp503667lfv; Tue, 15 Feb 2022 07:34:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUJPTIZAK9D5YaBqstE4DQDWYh4rRfwklU9+Ede9Faw/U+GC/uYzjw4DYFfBM8lcxW8Ews X-Received: by 2002:a17:906:9bf7:: with SMTP id de55mr1736731ejc.149.1644939267057; Tue, 15 Feb 2022 07:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644939267; cv=none; d=google.com; s=arc-20160816; b=ci/DM1POOB8npx9E5m78LP09VUjnnyZ7Be9LZC3vFuqOqGY5nSHcqie4tCpjNN2ONh kGUsjZFaLQ4hV5ZgDXB+X0Bix00udg6wYulp/5vdgs3+KaJjX6MqsSx9G4KP2tvfQPBA aIA3djOJzTTl+mkZCvOpBdQYvU4zeTI5tcVcY2eNzdU7BIHvbZP5r012K12C1kNC2azd ol4rbLaTh78EgdZdMZ7c9H3tOzqmLblj9IG0B70PiRNJr8YUKKVCMXScPwjm0yA5duCH PzEFJ2pOZH4QbGZuhj7vyqGcGdKDYTO9Tu6QPd6eh5r4iq7ia50qMEkDMVrhpiUzsoRG GyNQ== 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; bh=Eo9scTUX83VlNdiCByWTT6dzEL5GVTu7i+2rozfVLVM=; b=byO2khoYn53qqomcDxW0mSJGLrLbP92i3a3Xw28eteGCk6WaMNY12y61FfG2i8CRd5 THf2oXRBywXlaC7augHZgplhMh+9kg3uARO0Zy4rV9ojU+oykch6o0J2kcR9S2T8dVSJ iRwTxLttoe+ZVEvHY/zSc/+fi4J9QQvK2ddL1QrP8KLevELCuTSQfAHfzaNDSJ10NMvi OlK2v8tHAFjY8E2PDRC7gjGuauaWYyt1MVWmF3x8NdpmppyQ7CzU/llQ0s9TItfOR14A p/+GcUDwdy+SVjuoVY0eVrOdA30HuPPGCWnWfZQ7m/JOXmFEtUk7EUwMk20QJAx0npY6 KAqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du19si1946034ejc.638.2022.02.15.07.34.03; Tue, 15 Feb 2022 07:34:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237703AbiBOMlv (ORCPT + 99 others); Tue, 15 Feb 2022 07:41:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237683AbiBOMlp (ORCPT ); Tue, 15 Feb 2022 07:41:45 -0500 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83EA413D78; Tue, 15 Feb 2022 04:41:34 -0800 (PST) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4Jyggq1Kddz9sSH; Tue, 15 Feb 2022 13:41:27 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vL9aUiplKei4; Tue, 15 Feb 2022 13:41:27 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4Jyggn1t3Mz9sSK; Tue, 15 Feb 2022 13:41:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2E0C98B763; Tue, 15 Feb 2022 13:41:25 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id xyvWSD6fdps8; Tue, 15 Feb 2022 13:41:25 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.6.174]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6F70E8B779; Tue, 15 Feb 2022 13:41:24 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 21FCfFPa080608 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 15 Feb 2022 13:41:15 +0100 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 21FCfF4F080607; Tue, 15 Feb 2022 13:41:15 +0100 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Andrew Morton , "James E.J. Bottomley" , Helge Deller , Arnd Bergmann , Kees Cook , Greg Kroah-Hartman Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v4 01/13] powerpc: Fix 'sparse' checking on PPC64le Date: Tue, 15 Feb 2022 13:40:56 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1644928860; l=880; s=20211009; h=from:subject:message-id; bh=crZTv1K4CZKiS5ZWIVd8YKJws5q8Bf1xc6ZFmRIDlic=; b=h2sQgxQeKt0nGUlYcN53xt3DIURP341bRXkiE9Ch6rOTZHo+nST8Ypmr+POIh9zCsgCoq4Mkvije tugKrD4cBfTA8hFJ4+j176w0ONESz+yQzxrKLxEQr9SiBAbqUxfr X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'sparse' is architecture agnostic and knows nothing about ELF ABI version. Just like it gets arch and powerpc type and endian from Makefile, it also need to get _CALL_ELF from there, otherwise it won't set PPC64_ELF_ABI_v2 macro for PPC64le and won't check the correct code. Signed-off-by: Christophe Leroy --- arch/powerpc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index ddc5a706760a..4d4d8175f4a1 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -213,7 +213,7 @@ CHECKFLAGS += -m$(BITS) -D__powerpc__ -D__powerpc$(BITS)__ ifdef CONFIG_CPU_BIG_ENDIAN CHECKFLAGS += -D__BIG_ENDIAN__ else -CHECKFLAGS += -D__LITTLE_ENDIAN__ +CHECKFLAGS += -D__LITTLE_ENDIAN__ -D_CALL_ELF=2 endif ifdef CONFIG_476FPE_ERR46 -- 2.34.1