Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp844795rwe; Wed, 31 Aug 2022 12:04:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4m8/ErP3WcPwtKwM+oNFKkTyOjsBeO+IYK4voUNZ0LV1BkYvGGcGQrDvULaE7XFrbnRANs X-Received: by 2002:aa7:88c8:0:b0:536:926:700f with SMTP id k8-20020aa788c8000000b005360926700fmr28044598pff.72.1661972670022; Wed, 31 Aug 2022 12:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661972670; cv=none; d=google.com; s=arc-20160816; b=IUlUA5QmQldow7SxSg2aEtxWWjqAqSZZA2Z8WI2QXndOQlsPz9aPW81Aumfjgg/JbZ QD8j0T9Q7n4jOI3sJmuy8neCqyWagLN906+8OCv/W4Xn1ezAuYH4+0s7VioVRy8vG2O6 avu3KL+bVvMXbFWReSRPjqwVbe4WL4dQGQSAckXQeOUqWroJ2NUcXRATe1RVd+Nlc4P1 DO9vt9obp8XhxjeYrmUZjOmlglLocAjZdgzax9NUOQLSkuCS3yEo+hh9d2l7esEeztaU 6w/eNsSyLkB+R0tTugHsNWCBZuYMZibBDCZwwO/lUf3mkGFhM2hbbW2s90y95egLow/V ITYw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LK+GS4OtoLdP3AC7pYhPAbhJgOHNZfY72PLTodzI33E=; b=hNw6J4MQDOwTRvJtNHBGID+qzCkvTQwXsuq0jJLqUoibrHpmZG2k/h9Gnu0xeWCmBT M/W3iWp1EkZNEEvJd+K62/8k5SLdPe8K4VTeclasP+z3GK3MxGWH2jsBJVG1NUbbrSnv +eJAFsMD38vWzrJJ7FGTpZGKswH3BMkbWDNjKCzmoUtUoc7oYMl/hab9DiLubTTQXlgc YcGGk/wOY3/h48cT+BAzC6Y9XRXXrvQVxJzo3B/B1P3H6dcJpi4uBM4LGDTLOApKCzsQ ClCg94e7YlZGTuSKsiaPOY8F/vPgPgXmamwfzY7BXDZnODwFGKcZRRCxBp2NpzMCUxP4 gQrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Z5TO/DIx"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cv3-20020a056a0044c300b00538516e2c90si7642433pfb.43.2022.08.31.12.04.19; Wed, 31 Aug 2022 12:04:30 -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=@kernel.org header.s=k20201202 header.b="Z5TO/DIx"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232936AbiHaS0e (ORCPT + 99 others); Wed, 31 Aug 2022 14:26:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbiHaSZh (ORCPT ); Wed, 31 Aug 2022 14:25:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B58FEEF002 for ; Wed, 31 Aug 2022 11:21:51 -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 D79FA61CD9 for ; Wed, 31 Aug 2022 18:21:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D992C4347C; Wed, 31 Aug 2022 18:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661970110; bh=9uoF+g4LweCmuA8kE2/a+fIZkh1WmvOLh306TOxum+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z5TO/DIxTSPXgs2wk9pcL/8e82ok9w0UGdRmWpKKHvk6mWQl/toUj7HeeJ7XRjv4q 8Kyd3RpRGsoLgjIhI+ezj6x80BsVInfsTo8UJEuZDNrKpj+B2fRZEFM7uDRNRyDJLY iXKve3NiNrTPfIGtCWlgcKGcyOgijYkQmYeOx2o9M7v3A49taA3D0Kc06Km5C6WVU1 qRSaQcYB4m6fiHNVD4ZDjaj3ZiBDw+7NGVCFY5Pez89s33zZH9RGNdk0V8YebyJEDh AJ6u97Y1b1xFJ9xaGjZJi25g/g8s3BOt+O6h/yuaz4jXZiMxIsPuTF7UauCCAyjmgu XlcLvCKkKg5kw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id D53CE5C0513; Wed, 31 Aug 2022 11:21:49 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@fb.com, w@lwt.eu, Willy Tarreau , "Paul E . McKenney" Subject: [PATCH nolibc 02/18] tools/nolibc: fix build warning in sys_mmap() when my_syscall6 is not defined Date: Wed, 31 Aug 2022 11:21:32 -0700 Message-Id: <20220831182148.2698489-4-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220831182113.GA2697286@paulmck-ThinkPad-P17-Gen-1> References: <20220831182113.GA2697286@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 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: Willy Tarreau We return -ENOSYS when there's no syscall6() operation, but we must cast it to void* to avoid a warning. Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/include/nolibc/sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 08491070387bc..b8c96878c9ce0 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -692,7 +692,7 @@ void *sys_mmap(void *addr, size_t length, int prot, int flags, int fd, { #ifndef my_syscall6 /* Function not implemented. */ - return -ENOSYS; + return (void *)-ENOSYS; #else int n; -- 2.31.1.189.g2e36527f23