Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3329226rwa; Tue, 23 Aug 2022 02:59:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4p7E8FLX6Gd861AwTcn1f7x6cZSo+5ltSgzSYpLQCDC3c9YTMa9ebAjOR/5NJjULRjCUfT X-Received: by 2002:a17:906:4fd3:b0:733:8be:24f8 with SMTP id i19-20020a1709064fd300b0073308be24f8mr16187821ejw.767.1661248744489; Tue, 23 Aug 2022 02:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661248744; cv=none; d=google.com; s=arc-20160816; b=C1yj/8ARyHiYS9mQpqUGjdYUk4q3/vwtEh+JCYeROVdZjYEdW2qqTUTlEU59VtO+Jk KxHrDfNfmz/Qb1oHBdw+qVNr8sYi1M9HEG2aRdp3yNdCaFajzTruog52KnM+TVjx7sEV w5m05nZ2pbFt06kHrUaGFYTDDzfGxHx4S/SxRjSiq1ATCcALnvurB2N2DVgJSncO4OPR qMVegDY6dIxKOpciaDsXkaWMmGmoj+XISNUJxZyMjNdOudmIHlCc2lXBxt+Sb2ptd5Ej chu9srkmbs3BkBAmgAsHZcM7NVym+vKh86kHv7nnMfcjEfj/tahD1IJ7O6E0enElPWqm O5TA== 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=p8EOqFJPdLDyfgZ81dg3KXL1DyYYMLvLVzhEX8MUUwaQzPj+wVHa5TVxOt/V6CKo5G YtmwBMhfN2rdzEA4gtNL2NlqCxBcoR/bNUzOqvSuUkB/2Jo9Qk38SnbnKE7SNwjTDFxX 5X7O00UEcC3y3zyMHwQ5ZQ5u/laoo2ZYL2f/4M5pPxIeVqJzR1WBPFC6j11GfoTuGJE2 EychO5PU/8hJ9Bi96eTpPcLOI5QivELeiVRRIUP9GkwuxdSb20monLWii8pvmZzuQ9zq LDoPtaiWuQacoG7cgzfkNoHRrPy7DhyLTk6a7ibsb5TMO9K81LeeUywo9ORLsDFzecPP pVsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VIh6GOuS; 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 gs24-20020a170906f19800b00730a1f55ac8si9181750ejb.821.2022.08.23.02.58.37; Tue, 23 Aug 2022 02:59:04 -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=VIh6GOuS; 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 S242777AbiHWJlw (ORCPT + 99 others); Tue, 23 Aug 2022 05:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242879AbiHWJj1 (ORCPT ); Tue, 23 Aug 2022 05:39:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC23322BC2; Tue, 23 Aug 2022 01:41:10 -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 3B57E614E7; Tue, 23 Aug 2022 08:40:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B3EEC433C1; Tue, 23 Aug 2022 08:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244017; bh=791j+2hWy8TOd/D1gDSC01GR07M5nk56qoSUdhg5FAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VIh6GOuSr/7lKgPKH3szZshSvRy3n0eQBEBGdRimYKCEvF4bYP8NrlrzKgWNShkXK T0dFkQ2OTaKe8FVejq0FzxP9uqJhpPEQrcuXZip7ijxrUChUhRGOse3hRfYTppco4E aEmnBAGZ2TH+NmRdEF389Tdv4unUilRMQDoCm3uk= 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 4.14 073/229] selftests: timers: valid-adjtimex: build fix for newer toolchains Date: Tue, 23 Aug 2022 10:23:54 +0200 Message-Id: <20220823080056.336287734@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@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