Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2838645pxb; Mon, 1 Nov 2021 02:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQlKyGuY4i7wkY4LHOoIq9vsi82FhYky/1AaRndXDk02enu1OlJ4/OJWtmhNZEj2trKNzM X-Received: by 2002:a17:906:d0c3:: with SMTP id bq3mr34948154ejb.277.1635760602709; Mon, 01 Nov 2021 02:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635760602; cv=none; d=google.com; s=arc-20160816; b=l3ytYH0Gb8Xzq/J5a3FK8HkcGpiitPqwBhggUZdKoQPsUCPN36Cp9zG1luWt1MPNM0 bVjUwyUm3kSgbQFLHpIohnQycuvkh/EWcZWf3BGHkin2FbWoUegF8GCOaE9t+2hb9Ev9 IV/JgK2y5MhH3oLHEwL0gq6GPzcPBPm2aguhiOtQVlf/4BUHGB7yjhR9713k2eww5NfN 9tU0O+5ptSM/3Zxf+gMkVYh971+rngTcHoTm/QZqZ22/oR/n14MEXQc+WIUIAps1VIQo VYjetj4BRxOTt8GRUlUYDdjIVwg6FRpZBr0dtITRemfO4fX7r1Jw3t2PeF3dFjOsAkiJ A++A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TqisJrZepvenT7GNts3RBXrnTD4AytRBfNozHMO8KsI=; b=ZXoKhPvAl2eoV9GT0zddGXuaoSdVoSzPrJXCb/obRjrGYwPsuP1Lc3lw9nqSY8/aTA dz46/YdzxITrNVyr+J16wCK+VxVkAvH8oeSIEfPiy9cEGYaRaZrqL014QpX92ZkBBqtR 3cwhy3RO+RWFSOYBIr445l2H6sF/63fGd4n0d7N3yndzKd1KjpeHdMa+zqtnGDBfr0Fw OPCpfd+2hkG1s1k/7eqxg5+NexitQMoz8snGmmoxncwYymJtExgn/Ge8vDb69yjhWqZB 3wWDWBIYUcqmYde9HX02UoiCh46Xe1L2ZvFIrZ2FegdH4nwY3H+wLHrFZjTwoj4HT9CP Zfvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i21si5002290edc.414.2021.11.01.02.56.17; Mon, 01 Nov 2021 02:56:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233854AbhKAJzD (ORCPT + 99 others); Mon, 1 Nov 2021 05:55:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:54490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234552AbhKAJvD (ORCPT ); Mon, 1 Nov 2021 05:51:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44A9761503; Mon, 1 Nov 2021 09:32:21 +0000 (UTC) Date: Mon, 1 Nov 2021 10:32:18 +0100 From: Christian Brauner To: Shuah Khan Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests/core: fix conflicting types compile error for close_range() Message-ID: <20211101093218.2qxflsxch3slvp5y@wittgenstein> References: <20211027192619.21813-1-skhan@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211027192619.21813-1-skhan@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 01:26:19PM -0600, Shuah Khan wrote: > close_range() test type conflicts with close_range() library call in > x86_64-linux-gnu/bits/unistd_ext.h. Fix it by changing the name to > core_close_range(). > > gcc -g -I../../../../usr/include/ close_range_test.c -o ../tools/testing/selftests/core/close_range_test > In file included from close_range_test.c:16: > close_range_test.c:57:6: error: conflicting types for ‘close_range’; have ‘void(struct __test_metadata *)’ > 57 | TEST(close_range) > | ^~~~~~~~~~~ > ../kselftest_harness.h:181:21: note: in definition of macro ‘__TEST_IMPL’ > 181 | static void test_name(struct __test_metadata *_metadata); \ > | ^~~~~~~~~ > close_range_test.c:57:1: note: in expansion of macro ‘TEST’ > 57 | TEST(close_range) > | ^~~~ > In file included from /usr/include/unistd.h:1204, > from close_range_test.c:13: > /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:56:12: note: previous declaration of ‘close_range’ with type ‘int(unsigned int, unsigned int, int)’ > 56 | extern int close_range (unsigned int __fd, unsigned int __max_fd, > | ^~~~~~~~~~~ > > Signed-off-by: Shuah Khan > --- Looks good. thank you! Acked-by: Christian Brauner