Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2884775rwb; Mon, 15 Aug 2022 13:17:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6D+pbLlz0GcdTzkA5IU5dWWEC/NYvwYgz8zIWW+n49zBXf74DxEh6GtECpdhWP/+BVpX7p X-Received: by 2002:a17:90b:33c5:b0:1fa:773f:d4d9 with SMTP id lk5-20020a17090b33c500b001fa773fd4d9mr7803679pjb.90.1660594637738; Mon, 15 Aug 2022 13:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594637; cv=none; d=google.com; s=arc-20160816; b=HSCaLrNhPEGCtjK5cjgY3ekjMg6CRcnsAP2I1bpg8KZBQ8Wxille6ETm+qyB/Tmab3 lbfc0PoCweLabhCWzCmgd9+Dc/bLMH1MoEyYJmF4zJi7MQb7nk8/ckV7ow4qjUyHRLGe MIWjKd3wtmnbcFXNPXEywhySw3AKLZ3OcMejmSCzMdip0564ixbYvdk2cj2xMqnlRX8a bM+9wWYwm4lnVwH6QqZWTgE574G6xHy+Lx6aA1pvHHDBVhsplsbNAbA7Twr+kEbFAxan gh3R54c6Tew33ikwNn6z3Q+1zQnUdbscIQ2ZYd2iZDICmzB8o02BaZQqipl+JRFB/9/A ZU5w== 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=NvjHJvH3Iw2mMg73zwiHS62LENiIuc5FtPxnQvmLp/6+VgVyyGPe4JA20P36Qboub6 87DErKKBOPCiyV8JhyDU0UDLbmF9LqL6eZZSdgtFDc2/XoWM7aoFKwIzLsw+lRDQRJTc 2/QVeVOLETHR/pph84j+OX5Ges5u9Cl69/5UH6Y7XTvs3pBEHLF9kOPRBefUonOYY78m aEGCOaQ+P0LcuHvwcfYxmlbCniqQxiEeYBhje8YfbRpuewA3McfnSM8130YdbZoH7MdE XkgXPa+0ATY2sVQibZFyznUCAl9+HKIEvMQ6QuQr8kQ67rpUnQS8hG+V/zilJw9LHiAy 9e+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qJ94i9N6; 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 e11-20020a17090301cb00b0016eea30627esi13277367plh.565.2022.08.15.13.17.06; Mon, 15 Aug 2022 13:17:17 -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=qJ94i9N6; 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 S244762AbiHOS6t (ORCPT + 99 others); Mon, 15 Aug 2022 14:58:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244856AbiHOS4A (ORCPT ); Mon, 15 Aug 2022 14:56:00 -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 99002AE60; Mon, 15 Aug 2022 11:30:32 -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 1A1D9606A1; Mon, 15 Aug 2022 18:30:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 189A2C433C1; Mon, 15 Aug 2022 18:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588231; bh=791j+2hWy8TOd/D1gDSC01GR07M5nk56qoSUdhg5FAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qJ94i9N6/HbiEnGL5wnEF5KiWa93n+vcu3+TPCfhLY4xf41YdfZoTXlEvQ+dhil+k x+Eg+eYZfF9raZZyxY07aHMdsnXKUwnrGvoA48qzlxuWTtpprWSHuXS0usoHJGh1z7 nzAoTF4m2a3HWRBSMGBBK4nvfWGJ6zn5RAXs38Jc= 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.15 337/779] selftests: timers: valid-adjtimex: build fix for newer toolchains Date: Mon, 15 Aug 2022 19:59:41 +0200 Message-Id: <20220815180351.675607587@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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