From patchwork Fri Nov 24 08:09:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 169274 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp990450vqx; Fri, 24 Nov 2023 00:09:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IECoUjKeGLhAV77uWxP1vxKcDRNA3ZaX5rPDsoCxNKzFBxR2WZJBk7oU1uCIDKm8QWn9f+/ X-Received: by 2002:a05:622a:13:b0:423:7073:c302 with SMTP id x19-20020a05622a001300b004237073c302mr2443695qtw.33.1700813396057; Fri, 24 Nov 2023 00:09:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700813396; cv=pass; d=google.com; s=arc-20160816; b=b8Va7ixw3/nwckN8Fv8Gz6CrqkpFWMzVUxao8FdZFMCh7+dvOKYt+2QLXI0wRabrYe A03b/O4gWaV+WHhX9VrvR45SVjpIQql9RNaaV+6DDKrc5KL8ViymKnddy2N9IDN+F0bM F20sqoeu0NAFGZrjYlQoGpjWZTnffgBXf7QrfaawCIcpxXu9PquJB9iun24PGgvRdLqU HGdidA5qY0UStNkiSTro8SWY8Uo+rQPNB4ryiObJSuoQnxwTJWdQ4Y6ZObUdNy0CUd5t cX/M42uhHjwnO4XSbDLixs6DjoFUqPiKJNrIFUcqcgH5bVPpr6nP3u3QloCiZTHFbQBp A+IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:message-id:date :subject:to:from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=Sl0K7YthvFRuVJ8khZR9a1xCPyVC7biWwXEO6tMpq9U=; fh=NLxAvL/bDfPg4AGOtxqvQlND8vazkZrNzKLY8+LAbBY=; b=jA7fiHBjjOOWIYktQwkMWaDMD2yAxgUFLxifEQdkP4/tPmtkuFDYJLwBthRSXXTn6n fSH+v7TwQAyZAGnXkGTGbfKIGyp1yBmvG7iGIzqBQYMvrqDzBcPWYAjsptwxHGm0Hurj wTK1w26Yq7XKaXnetT2FwRROfYimThLSqvIweXmen1rUPruRyPrYaRMAXrctZRdAJ4bs nTg+iKoCuiqo4C+Jl8ksH8f9HU+lommI43JFfV2KGHIcRkl1B5KdTLUlA2FP80VQxzj4 N2fYeZnPsE3z2BJ+ppkSZcjy/jluac6mCYiWOXCAqbxbEuBMPT4o0O8kWl8/HVvV8BIH 8nFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iQwPujII; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 2-20020ac85702000000b004237af6e8easi2881350qtw.205.2023.11.24.00.09.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 00:09:56 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iQwPujII; arc=pass (i=1); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D06863858297 for ; Fri, 24 Nov 2023 08:09:55 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A39B23858D33 for ; Fri, 24 Nov 2023 08:09:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A39B23858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A39B23858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700813390; cv=none; b=ACMzMmR92KflJ6Cn6TwtS7LQ4k1v7dw2AkWHWCwAdvUMWx7DBIP02RfMmZxTBf0KW6/M5wS7Z1XsIfOpxc6GscGAUjJBG2TJ5oicEnJYqTCn5leCZtyER7MQF3M9POx2jTaW7AWjnCueEAxXcrMFqjigD8rIVFECrZGF0BwOn5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700813390; c=relaxed/simple; bh=ONaben9e4+NltvjZtwkm5HtiS2Bqqo7qhCtPmW9SLw0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Pus5jE9lxw1EWUNLBiU3Xg7HRHoTlm0ri9jMrWDFK4srzBD3ccHZuVfg0wfa9+m01YItVhyUIBul4ChKwLlW9JituYqfHVrVKZTdggFOmqIPmkBWLuWLucclgbXtTkkU9emXums5y0yrmBSvOeWTq7Wr0K9vdYJMToRzJs0VgEE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700813388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Sl0K7YthvFRuVJ8khZR9a1xCPyVC7biWwXEO6tMpq9U=; b=iQwPujIIAYHcks8MOR4rODCbwabqqXIMokRp9pY8ON9wNR+fFFM8V+6loNfdhFSi9O0CIr h3oyJ1sNKQy2V/RKEYhSf7wUGzvFLS2KDUN+VgsSsOnRR4+nMNzquDCCt3E3G0hBAAzXJ0 EJPsauP5StiIuKRgslXJcsEs3+ruU3I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-47-4wEnyl5BNuGPRXoZdp1wPw-1; Fri, 24 Nov 2023 03:09:46 -0500 X-MC-Unique: 4wEnyl5BNuGPRXoZdp1wPw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 90371101A53B for ; Fri, 24 Nov 2023 08:09:46 +0000 (UTC) Received: from prancer.redhat.com (unknown [10.42.28.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DD1BC1596F for ; Fri, 24 Nov 2023 08:09:46 +0000 (UTC) From: Nick Clifton To: binutils@sourceware.org Subject: Commit: Fix building s390 target with clang Date: Fri, 24 Nov 2023 08:09:45 +0000 Message-ID: <875y1rh8s6.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, 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 server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783432107782628976 X-GMAIL-MSGID: 1783432107782628976 Hi Guys, I am applying the patch below to fix a compile time warning message when building the binutils for the s390 using clang: opcodes/s390-opc.c:265:20: error: unused function 'unused_s390_operands_static_asserts' [-Werror,-Wunused-function] I also tidies up the formatting of the function at the same time. Cheers Nick diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c index 0427bd8b2e0..cbfdb3df0b7 100644 --- a/opcodes/s390-opc.c +++ b/opcodes/s390-opc.c @@ -262,9 +262,10 @@ const struct s390_operand s390_operands[] = }; -static inline void unused_s390_operands_static_asserts(void) +static inline void ATTRIBUTE_UNUSED +unused_s390_operands_static_asserts (void) { - static_assert(ARRAY_SIZE(s390_operands) - 1 == J32_16); + static_assert (ARRAY_SIZE (s390_operands) - 1 == J32_16); } /* Macros used to form opcodes. */