Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3082058rwb; Mon, 15 Aug 2022 17:41:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR5JysntajQmTBQFsvZal/3+2CYCJ122W+tVRSqO2EAGNIkwwKZHhkCmQ5mNshcugVU0SEtq X-Received: by 2002:a05:6402:524a:b0:43d:aa71:33d8 with SMTP id t10-20020a056402524a00b0043daa7133d8mr17000515edd.33.1660610468728; Mon, 15 Aug 2022 17:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610468; cv=none; d=google.com; s=arc-20160816; b=yS0ZRWH9RxGx6jHgA2FshjemhptA8hoRXF5kNn2v0xplb7Y+2vvLECQD6bPER4k1XJ jEdq2lIakqr1kRsOqtt1xJBWZTAiCr09A+0Zychp9hNn3WlPleeEHP7gHpoNC/EZZo2z 26iuPOxDzV6ZNaJbOBVvjvdHywiIFHjIHx7WkvedueaD7XuWL9cFdwALwcfyvJOsOO0T DcyTRNIu3IYKQLyMzug+4wx0a+1i8nK7UdlT9LjOWEx8BdJVnQNmc/fvHiYXEfD4un9m clWbepLo3fuwX4R/tyNluQEA75pCh6jOKyO4gym0WLLFqZsPXfXvtt2SwmsLh9UmmW1V JqSw== 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=WOMMERoQIeU6UZlyG0CjPlvu9IQALEn0fMoWsneiWcNUTh2i6oD/thsBpLJMhb2vvS drhg8Q3k+XWGwy+ppJP1lNd2itXe1QLo0hC0cWcnUvX/5c6RGAiWBy1ZMVRjbFgXw5pQ FOFHFRaJO3nHhZJ+WFMPUp+rE+C8DLxUPzuGaI5LYznKr83uLf9KfqNOTqCaKdKmrD82 uKSPlunSE9Vxpb+AQb25Xzqq2ekJ8AGhkAf5S2RePk0lAJ1sMxE4mX5kX8CGOu8Zllge sajSne1YKCBoyV27Q+/Btql4sHu/FVedQGcGCFCbG7vnD83x1eqiVYMkGSdXrXFP1vDE p3zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QxOkdGnx; 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 n15-20020a50934f000000b004422925e5bfsi7517688eda.468.2022.08.15.17.40.43; Mon, 15 Aug 2022 17:41:08 -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=QxOkdGnx; 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 S1351840AbiHOX7A (ORCPT + 99 others); Mon, 15 Aug 2022 19:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355336AbiHOXvz (ORCPT ); Mon, 15 Aug 2022 19:51:55 -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 1961292F44; Mon, 15 Aug 2022 13:16: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 B6BFDB80EB1; Mon, 15 Aug 2022 20:16:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20BA6C433D6; Mon, 15 Aug 2022 20:16:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594590; bh=791j+2hWy8TOd/D1gDSC01GR07M5nk56qoSUdhg5FAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QxOkdGnxngnk3GLR8e84SPujyN9EwOECSLqRNLraA8gqW5rfs/Tf+vMTCD4Hus99L lpjPf0lIfYPGN/5tcbSP6y9LCWheEGV0qX22WCK3RZNmYCoQ0bWzU1oqCANg04JXXD c0GY9CD3+UHu80Dmq+nDMktRBKHoUicI1whK1mZY= 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.19 0496/1157] selftests: timers: valid-adjtimex: build fix for newer toolchains Date: Mon, 15 Aug 2022 19:57:32 +0200 Message-Id: <20220815180459.503776273@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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