From patchwork Sat Dec 17 16:52:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 34217 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp1595009wrn; Sat, 17 Dec 2022 08:55:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7UDsc8OnP+4OFTdi2xA+IfazfFxxjQKYmrz2v6OyTsyHq4RI/Qk/OhrIwITfouVcSy53fW X-Received: by 2002:aa7:c7da:0:b0:463:ba70:42ff with SMTP id o26-20020aa7c7da000000b00463ba7042ffmr30400220eds.25.1671296118738; Sat, 17 Dec 2022 08:55:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671296118; cv=none; d=google.com; s=arc-20160816; b=xRlzF0jw5oAnRsUsE9oc3ZO6FbrTw5cSe3ULvGqWCKVf4f3wfSsCZw6lLNVR5CNllo F5HDAG5m8o81+/Eb56p9vis117H5KwwMM7lNF6Fb3y5Jivx8Vc9OuS41wgJs6vKDrKFG A2A+C9Ww+HHp/4Y8hM1XGoZKsBaXhFXlZyQhFrfTrIVSwDAy2UX1Zh799DRAwjiWyEmD xlqZ1F7tP++7nBKpKzYcisdu6dwRjk5hX9X8A/zbtPj3so2nfidk0GrQlRmDsJ/ynqip gwSAmJuBnbhNzJ+MynU9/cLAimLaokzNarhglp7DZ2yZCL15JaO59vRtUtPB0QEzpwX+ OOaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date:subject :cc:to:from:dkim-signature; bh=VtiAFXUoxPGVWbrfrF2d0QiTT9pcM+3AnAGNlWeoaSw=; b=Zm37OYhFG2oIIRwpDcN44+hI19ysFMDlYFz8LXpjAAaVVPHbKJXwodJQLBc2YkJAS3 xNPpYh7Lgk7HbyZ0uxE8S45oYNZWgiNKolDsmXSUSYd+va7FzjR6enIRTGFmD73jWv6q rmFGdiMsXW8PVUvNZHctQPixYxeoQPvchNS/jHM+Nf2OfOw4f6sZ/83Q5O4PWSahIx4g d4ZIPlfzxSBwDIJ4Qbm3SGSZp9CsEIe39vccLli4wqpQv734hdpNT7C7/3UQ6Vh2p0K0 Mw8LDHixv0lBd06x1VVNRGQJ+7CJc5n1mS/gJK86ctQrEmWiZUo0Yre/KjTUk59Jr3kf LbZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PiVL90qE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a056402431400b0046c036a0800si2435706edc.383.2022.12.17.08.54.55; Sat, 17 Dec 2022 08:55:18 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PiVL90qE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiLQQxf (ORCPT + 99 others); Sat, 17 Dec 2022 11:53:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiLQQxe (ORCPT ); Sat, 17 Dec 2022 11:53:34 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6785D120A9 for ; Sat, 17 Dec 2022 08:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671295963; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=VtiAFXUoxPGVWbrfrF2d0QiTT9pcM+3AnAGNlWeoaSw=; b=PiVL90qE9mvYz4Q0R+srTADYUmDuhjJAvYBowdjOFpViEdRMsfTVrn09n4nP+rg2x5b9qf M0R93EdtRSytN1oVjBbBXiIJMq6rliNqhg76CcVX89n7ay3SNhzoiaecThqFGMY13fkHCH 8s8xK11mUj7pSRBEHUeuhZ2N0i6Qho4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-630-L_OKN2wJMPycZbZxOl4drA-1; Sat, 17 Dec 2022 11:52:37 -0500 X-MC-Unique: L_OKN2wJMPycZbZxOl4drA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5D7CB88F46A; Sat, 17 Dec 2022 16:52:37 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E62F14171C5; Sat, 17 Dec 2022 16:52:36 +0000 (UTC) From: Florian Weimer To: linux-modules@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] kmod: configure.ac: In _Noreturn check, include for exit Date: Sat, 17 Dec 2022 17:52:34 +0100 Message-ID: <877cyq6kh9.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752480998749512124?= X-GMAIL-MSGID: =?utf-8?q?1752480998749512124?= Otherwise, an implicit functiona declaration is used, causing a C99 compatibility issue. Signed-off-by: Florian Weimer --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) base-commit: 6c5f2f13689e6a4668f87171752d7818bed4b602 diff --git a/configure.ac b/configure.ac index 6989e93..12e0518 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,8 @@ AC_COMPILE_IFELSE( AC_MSG_CHECKING([whether _Noreturn is supported]) AC_COMPILE_IFELSE( - [AC_LANG_SOURCE([[_Noreturn int foo(void) { exit(0); }]])], + [AC_LANG_SOURCE([[#include + _Noreturn int foo(void) { exit(0); }]])], [AC_DEFINE([HAVE_NORETURN], [1], [Define if _Noreturn is available]) AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])