From patchwork Thu Oct 3 19:44:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1992483 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=VQj5fdAV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XKMbl1tK6z1xt1 for ; Fri, 4 Oct 2024 05:45:39 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1D25F3846423 for ; Thu, 3 Oct 2024 19:45:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by sourceware.org (Postfix) with ESMTPS id C4730385DDDF for ; Thu, 3 Oct 2024 19:45:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4730385DDDF Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C4730385DDDF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727984710; cv=none; b=dvrW59cT7bwsyv6Nf6/figXUdMJa8N7w6nktapMEOQVQ0Fd3JYuU5OiBAX7I+CRmZzCqcv2ZD/9eP78k2uCkhq/2nXc3BE/SsFc3P/0g3bTZ1NOYelo3sUYiiTK9NH9w5yI5E40Rc68W08K10SWdb9e7Xh66zpa9LhKVvwDh0Ks= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727984710; c=relaxed/simple; bh=Jwv5MMvoAtP757Ta6ZrPVtOydGCcBxm0UgH900KZLFY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=TXgJFIDHU7iVDtzXJAghCEIGpuBqmWPk/gl7eRb0wRTh48ikhtdNQ/snNnxhXjzYN8ogp1abDEuqnwYXa7NJ//7z1nYXWvvq3OFOk2I+2R242ASEWpt78a20nGlSwGdC2VZOwtPVmfDsTr3K9r2U2t1FRhYAJ6stFPA50TZSaVo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-28742d10c76so799591fac.1 for ; Thu, 03 Oct 2024 12:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727984708; x=1728589508; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SDFcd59Kvp9sR9ehgAAVZwo7I9ljLa1dTouOQqt3QAA=; b=VQj5fdAVNwEoetfCtefezdd8YaNe+A3CuVxZ0Vh2632ZQ5YxaQDi8oxWELs7BMaoSI gzmkzWt5H4lr71DwzynBPZRf+F2BEdDE0UbBz1zkgMYxlhCmwuk3WjsVGQUkQNw/KCDq 0WiaiXpLLYk3fzH+vYW+dGFpsBtxSD3T3gJ+HVjw0i5aXvYy3dFhBs6pD93KVQJf9wZ/ 1feb7tJS7J8Tf0qSdBQT1+lf+ZV8a9aXbEEg5x3P0H8LzxbVGLiz0UeYge6Zghf7WTcL 9/2r6/87HarPJk93RrdKD/2g9mTBcBuNf6fBdsi+ERAGv2g9WbcNUSbSshbni4xLzVrc v/0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727984708; x=1728589508; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SDFcd59Kvp9sR9ehgAAVZwo7I9ljLa1dTouOQqt3QAA=; b=VILit1GkH1i7E82nPanxJM3lxpN45VGH3a9LGvrwXp7AdYW2uFCJnBhcSnqhhwocgy N6pBmiQu8sKAVxN2sI5Sukn1Dxztf/Ggy4FFIwqrgO0iFdtgEp50RQ/Rg8UfATAC/d0B 7bK+YqzZ6NmeT3Q1YtA5+BR0f/vV7ZVg2piDr3oo1eGrDy9azgQfdMmqtGGJTa1Lypyy 4ycAU3otiv2VUaFTzpB0ywnu/dKK3IKSmEdIQOcyBejhNf7sWfx2B3GSS2Nz7EL6zknd aYUhuWqyJti0UURC3MLLHEt9fObMas8aAH/UvUGdAvLZR9mswn4W/bhkPEWMixhGfAg1 NDIg== X-Gm-Message-State: AOJu0YzeQA/37cHtuC0weCQTLvIXYtLsjbeAgpziflz+fKupWuVB3CCc yipQvFKFDens1LRSeE0dK1RpGpGR9hrrAg/gkpqATSgw89dpUSnI1lg1QwnQv79wXlxcOHyKb7g EgjdHHg== X-Google-Smtp-Source: AGHT+IEr7NlmX/meOOuJnr7zJY9UJ/sMI/T8dpwT4iiD1NWFnQBMHs9Qb3P6+8t0daVsQQ194bnaUg== X-Received: by 2002:a05:6870:568c:b0:278:bfa:87da with SMTP id 586e51a60fabf-287c1db8b4cmr594118fac.10.1727984707800; Thu, 03 Oct 2024 12:45:07 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-287ab9b5c14sm651838fac.14.2024.10.03.12.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 12:45:07 -0700 (PDT) From: Christophe Lyon To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com, wdijkstr@arm.com, matthieu.longo@arm.com Cc: Christophe Lyon Subject: [PATCH 2/3] aarch64: libgcc: add prototypes in cpuinfo Date: Thu, 3 Oct 2024 19:44:49 +0000 Message-Id: <20241003194450.1052220-3-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003194450.1052220-1-christophe.lyon@linaro.org> References: <20241003194450.1052220-1-christophe.lyon@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Add prototypes for __init_cpu_features_resolver and __init_cpu_features to avoid warnings due to -Wmissing-prototypes. libgcc/ * config/aarch64/cpuinfo.c (__init_cpu_features_resolver): Add prototype. (__init_cpu_features): Likewise. --- libgcc/config/aarch64/cpuinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgcc/config/aarch64/cpuinfo.c b/libgcc/config/aarch64/cpuinfo.c index 4b94fca8695..c62a7453e8e 100644 --- a/libgcc/config/aarch64/cpuinfo.c +++ b/libgcc/config/aarch64/cpuinfo.c @@ -418,6 +418,7 @@ __init_cpu_features_constructor(unsigned long hwcap, setCPUFeature(FEAT_INIT); } +void __init_cpu_features_resolver(unsigned long, const __ifunc_arg_t *); void __init_cpu_features_resolver(unsigned long hwcap, const __ifunc_arg_t *arg) { if (__aarch64_cpu_features.features) @@ -425,6 +426,7 @@ __init_cpu_features_resolver(unsigned long hwcap, const __ifunc_arg_t *arg) { __init_cpu_features_constructor(hwcap, arg); } +void __init_cpu_features(void); void __attribute__ ((constructor)) __init_cpu_features(void) { unsigned long hwcap;