Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3014362rwb; Mon, 15 Aug 2022 16:10:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5QGQG6U/W8UdUDmmrG3XFNfk8V7qYmm3j6tdGw+8A2899xcy21MxtLl72WEaRcqoQrd7+Y X-Received: by 2002:a17:907:60c7:b0:731:4b42:4e3e with SMTP id hv7-20020a17090760c700b007314b424e3emr11777733ejc.236.1660605020477; Mon, 15 Aug 2022 16:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605020; cv=none; d=google.com; s=arc-20160816; b=XCKMuZ5EgE20RJ7ApN4OfPAeR8iJqTFbiLEJ1gMwNysYmmWkuwmhKNaubxlyIJnhVM Pf2laNerolCjlWrQebUEyfPjZ6HyNRgmvIoZIx7r//Frd3k5Ot5RD5C2GU70bq8VYYXz l3g0WpycIfsb96NLOiqHCdjKbaKABNOlZiH7fH+7my7a+0lzFIH5YlesU3ERKeVzgjuX TQUiXMy2AQwibluwPmrUSmdyyvC72HnGF3liXzRrnZN3Wc2RRD923/DztA45lhQ6YJkf NzHDP93vMEeAcYmWG8FFaYqunHZ7FQHwtm6QdnJSwbsn8tKEVfHeF9VXqeQftTXV86gY pseQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3lIf3TjtgmSZFFOiz82gAKgdgz9VM/MnJNg27aazPek=; b=WBnb+XRQ4w8LFGtqec9cglK89nFJ79hC+NN8ZcBeldM/auACAsRelQDdl+iQgo7Q9W PWc4mMwVHDf20lma1xRVKVZd8MuR6McR9yUFlkX78rAOpLb4zB2/NqM+Duo1t0ejRHBl VqbtyD6BIKo0T7xQ4pGVDPGDGRU68Iv3F59EWH5GZ3ZaZYomTZPqmiw1fpsmzloNCTO+ aUepqHt9S943xqJXyW025Dfjy7CISQA2uuJIs48xGePmIYx+AYfRgM79cnXben+akLh1 XlT+Lx1Rt1cQco750qt184/oazHyIv0o2esDSU6hv6EunXqe75hSb/5sRpMBuVc64auY 28qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JXVzWNL9; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a50870f000000b0043cdfee4b1fsi8659784edb.383.2022.08.15.16.09.54; Mon, 15 Aug 2022 16:10:20 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=JXVzWNL9; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244144AbiHOVQS (ORCPT + 99 others); Mon, 15 Aug 2022 17:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348017AbiHOVH4 (ORCPT ); Mon, 15 Aug 2022 17:07:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444042E68D; Mon, 15 Aug 2022 12:17:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D6E6A60EF0; Mon, 15 Aug 2022 19:17:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4146C433C1; Mon, 15 Aug 2022 19:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591068; bh=791j+2hWy8TOd/D1gDSC01GR07M5nk56qoSUdhg5FAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JXVzWNL9Z1DSyVDeQQTbVrCCsjYzHu1TeBW69fZhrDoePkwbnlWNjEyl3TuuDZrvI SBgWzB+bcPyrEXh8Ypkhr6Bdk9ezud6uJAD5kp21v5AUXQt+vOyZhERH7bhtxU0rmn D9ph9cyAqBcpiErmA72GVGJOpCXK2UfN6z14MH/4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wolfram Sang , John Stultz , Shuah Khan , Sasha Levin Subject: [PATCH 5.18 0460/1095] selftests: timers: valid-adjtimex: build fix for newer toolchains Date: Mon, 15 Aug 2022 19:57:39 +0200 Message-Id: <20220815180448.625934164@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Wolfram Sang [ Upstream commit 9a162977d20436be5678a8e21a8e58eb4616d86a ] Toolchains with an include file 'sys/timex.h' based on 3.18 will have a 'clock_adjtime' definition added, so it can't be static in the code: valid-adjtimex.c:43:12: error: static declaration of ‘clock_adjtime’ follows non-static declaration Fixes: e03a58c320e1 ("kselftests: timers: Add adjtimex SETOFFSET validity tests") Signed-off-by: Wolfram Sang Acked-by: John Stultz Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/timers/valid-adjtimex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timers/valid-adjtimex.c b/tools/testing/selftests/timers/valid-adjtimex.c index 5397de708d3c..48b9a803235a 100644 --- a/tools/testing/selftests/timers/valid-adjtimex.c +++ b/tools/testing/selftests/timers/valid-adjtimex.c @@ -40,7 +40,7 @@ #define ADJ_SETOFFSET 0x0100 #include -static int clock_adjtime(clockid_t id, struct timex *tx) +int clock_adjtime(clockid_t id, struct timex *tx) { return syscall(__NR_clock_adjtime, id, tx); } -- 2.35.1