Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3472514rwa; Tue, 23 Aug 2022 05:27:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4kY230AtqQPkU4oT329BRGTx+CouuWw5lez+TdYvOc0AvqpFYuX3/+Kds4t7ka62khZiyr X-Received: by 2002:a05:6402:4381:b0:447:34cc:8abc with SMTP id o1-20020a056402438100b0044734cc8abcmr608953edc.118.1661257630716; Tue, 23 Aug 2022 05:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661257630; cv=none; d=google.com; s=arc-20160816; b=Ys/NviqiNiaZCMVdb9C/yxT9N/7rU2iVSc29be8tfGyiGMvqE/x+oloGTfXx33aqtm l4uyRSUWpd91qQdHMwvC78KHqDvK6t4xNbuEzUCLgNEREHelT7ha1AsjpBiANbaiQ6q1 a94kSS2zC/0yW0paOQ9BFFN80cLLwnFkemvF8M7lxrrn13I7RiNWUhWAgZkVfadXhfMQ tzFEXsW6TLcndO+LXg00PFRe1ty28tpHCgH1FQdQpa3BQbEayHgnIIVHzEpRlds1ZcdX N8o++mzvLmPUnfLiR3Q++uAgJbYxd0iKrf+4DIfkKacTs6Nb0TkRPNAKEEYf4wIJhVib g3qg== 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=yje96vw8kI7JhjETLhmXc4dKV0d9rMZQ7QwjfUn0C2u3NzQIHlSIV/1Hw66CW1GtrC DNwSoJmJHVFaHaGqbgUHe57ZVMfyxkgczKUEUkjp0OI3/1UEB15bdTExMujxuE2+G4k1 5DQJrCqtrhWpdnuZP+YYWatB8Kh1kg3FN+MECTrzXq/DUguP/jDNAei8Z/JjZtYnasxp 6ggDW3m/oKxeE+iRIney3TilgN94vOa2nG0MQ9d3uf5W8vfIHxoOtOsA5t+41CbTbDzW Hfv6538IyP+A0cEH5RgslsCg4NjkwgbrUscUv6WRdXSCwijI4gMVoNOFFg2yo/srPeHb ZIuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UWHd7VRP; 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 v3-20020a056402348300b00446eb5c6a3fsi1960266edc.555.2022.08.23.05.26.44; Tue, 23 Aug 2022 05:27:10 -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=UWHd7VRP; 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 S1355078AbiHWKjV (ORCPT + 99 others); Tue, 23 Aug 2022 06:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244002AbiHWKXf (ORCPT ); Tue, 23 Aug 2022 06:23:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE992A3D5B; Tue, 23 Aug 2022 02:04:33 -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 ams.source.kernel.org (Postfix) with ESMTPS id E8EF9B81C86; Tue, 23 Aug 2022 09:04:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F6C9C433B5; Tue, 23 Aug 2022 09:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245470; bh=791j+2hWy8TOd/D1gDSC01GR07M5nk56qoSUdhg5FAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UWHd7VRP4Q2bpAkUdTHpA6ERiroTRjQTKsv647Z40U8uhUIyOtDmVl90kAWpkvhkB UtPx4cZt1sNNdzWOIEAYS+oUlQNO0hGSNytqKkKdkiJVXFVKXfOAODvO/PBjHelnWr ZpWElsSwKYMEvSWYpWlmOSUxk86MM2qRRwljQA20= 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.19 088/287] selftests: timers: valid-adjtimex: build fix for newer toolchains Date: Tue, 23 Aug 2022 10:24:17 +0200 Message-Id: <20220823080103.261591707@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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