Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1864327rwb; Fri, 19 Aug 2022 10:39:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JmmrXtwvPHcofs49ZutyinEig71yDA3gjhNmBQ9omfniwiWtnZyYSpW3N5m/UflzvzbO4 X-Received: by 2002:a17:903:18a:b0:16f:e43:efdf with SMTP id z10-20020a170903018a00b0016f0e43efdfmr8130550plg.157.1660930760746; Fri, 19 Aug 2022 10:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930760; cv=none; d=google.com; s=arc-20160816; b=Z+m/m61aQYkGmVLA2DD51SjKYP5DnNOopDwI9MTSWOuYndyG/fgymzM2q9DRBDmFG2 YL7HATkze78t7BV5qgFTAYwpoev4w6HKV2Sr5/mHcet7mV8Oc25U7sWcw/ETjOy3limw ZsHkwVbqvKe9yRQpNAXdb1mcXyy1D2lWaqeZEHE6kaEvYtnd1YjiRCAuw0AWDFYaGVwj wHhIyGWsLqmHS7TlqQd5rBx1JaTSemkGRED5j3Qusg75Rb9m+VYQhMe9VWpdEOTJDeCS jTIud25unLIXjG45lWobXpidIhppY7c2ZckiCOKuOLvxzBglWIe78NqoA9gG2XYtUUTp s63w== 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=T6OgE841/D56kk3ojvyWXSWHgIdurlpi+/A5IAgwtOiHMaFAg5XudjoIzv200NXDCU Pp0X7hjwbG3vE9lJ4sGbtQu/HGTOmUdHL/XzFnGLwa1yMKAbKQaS1mjs2a0GVOVblhv2 HGxzM52OtCKImktU67BvDaAV5fDG58Rn7GbWLUWaq2fHlcFj+A2EigHsRC2bzoUOE++C 6nllIpP1Djj+KQYnIjx49yYJKoBZYdJGm2MKmbzZHvLgjPcAZeyVeeeoS3cIWekDvwhq 59nlIQiKxgTgnXrheuN229BXifuGwKSgMtPrk+KKIrTFMOjFIA8NRH5YBCZ+i4tj4rTY uUjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jb72wLmb; 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 u184-20020a6385c1000000b0042a1235c022si3241178pgd.160.2022.08.19.10.39.09; Fri, 19 Aug 2022 10:39: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=jb72wLmb; 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 S1351803AbiHSQMM (ORCPT + 99 others); Fri, 19 Aug 2022 12:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351810AbiHSQKj (ORCPT ); Fri, 19 Aug 2022 12:10:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286CD111C23; Fri, 19 Aug 2022 08:56:55 -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 1BEE761589; Fri, 19 Aug 2022 15:56:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E975C43143; Fri, 19 Aug 2022 15:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924613; bh=791j+2hWy8TOd/D1gDSC01GR07M5nk56qoSUdhg5FAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jb72wLmbeA6KM3JKw47hpss9g8TTJUBfev0N+VMrF+zxJ9OvZ0lpj3p2rrYctQO1/ P5oPa8tcU4h+xeQWCNQBO6Sz9Opo1xD3xFhM2d5a519gRGR0jMnMuitvP4Y00mDt23 UWfhDWj3FpVGFF7p0oDvpoacVfKGlpeoWZlWWH2s= 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.10 227/545] selftests: timers: valid-adjtimex: build fix for newer toolchains Date: Fri, 19 Aug 2022 17:39:57 +0200 Message-Id: <20220819153839.532535791@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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