From patchwork Fri Jul 12 13:02:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1959846 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=ImLUxfRo; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::638; helo=mail-pl1-x638.google.com; envelope-from=swupdate+bncbdk7hq7yrekrbaotys2amgqeix6mupi@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-pl1-x638.google.com (mail-pl1-x638.google.com [IPv6:2607:f8b0:4864:20::638]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WLBbX1jnxz1xpd for ; Fri, 12 Jul 2024 23:03:02 +1000 (AEST) Received: by mail-pl1-x638.google.com with SMTP id d9443c01a7336-1fb116ff8bfsf20194825ad.0 for ; Fri, 12 Jul 2024 06:03:02 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1720789378; cv=pass; d=google.com; s=arc-20160816; b=nWWXhd3pFle4je/+fKqeOxRnbxfy09bjMsAbOVHrRVvP34DkaVKn1bIUPebE/H12Qd oAwe0qgFxt8fbLMcGIhe3eBCT/AYO3VPm5dO4zsby0SxPw1TaCNdFH/yksEJm0Fr1Zpu fQ635WG4pj8cqIIrUkKPwzge42XAPUaDQCfe/4e5I2AH5o+2zWhe4IiicezHjZIWbLgL 8qE5V2XdLCSn+dESRASS/gkWo96RnNMpDxacD0wrr8axyRF36YVKKMB9mwkcHBDrcEOe 5N+ZPb6UOKlZOUAaDtzzeTI5ac878Z3q4hQEap56LDDLb5Ixi45wSsMqxmDz9YwK4D19 yGwA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=ns3u4mwEs6CSpbEcIE/ONw6PpOOkpsUlZp7XgBb0Nas=; fh=g0LnIXHJHSvXhZzAKfF3kLSTqH/XfrFxZ/MZg+SoZ5c=; b=KdsIibweqeVYpNE8NODGHoEtoLgxnNQQT15tQia1kjM8jlH7VEORfr6KsOyaDc603L b0HEhFy6hW8wQXQxnJZb7EKHSWHjj1Ve+37/oIkJaZXoa8qIyaHAiTiNKdorZyNAWGHH OWkMHYsVZEonmis3cKbU4ZBMPKWPWPV1fdh74OJyeU2HUumN+i4KTXRjdr+m8XXTm28i wf9Q8ZMnZ/Qo9KlufK3XwT3YVBqfXPuERqXurq+sfEXPIE0GdjjiCzCw79gyKCemL6x8 A/u1QPKrqgp7Mt1x0fua5UVUNPWISgmOmQxSsRUIkd1OkgG/tQJAV7eNY+1w6furlWWZ i8/w==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=NTEhzR0f; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::60f as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720789378; x=1721394178; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=ns3u4mwEs6CSpbEcIE/ONw6PpOOkpsUlZp7XgBb0Nas=; b=ImLUxfRonTNKODIQbcZu+LYkUtdNhEcksaABPhaRkOVzCCbE93bdn4j26FDqO4obC7 fTYMJXk3w1OQL3OpD+6ibj29afml5dlR5MPEmZx2MNo4n3Lf86VL4Tdj8ph0gL9wf18K WBJ3N4bzRQnZTp4EkDl79TveItkchiScLXuS9Ma4cZQmZZJ13HH1AWC5BdLked/8tELx CYNawQva+9O424oGUzTEsUadIQdfrVu1JW/ox0vlqN/KMaocVs6IRWcbuSCyd99pO725 m2nkcE6uLlfQPULEXGnAsr3/Aqsuofj45DyveohPzNbbazsIRbDXBM+dA5pNKknuuOCt Xf5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720789378; x=1721394178; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=ns3u4mwEs6CSpbEcIE/ONw6PpOOkpsUlZp7XgBb0Nas=; b=iBTgUh9PcebUOcBYEJC7zW9+beaNUnavOCBh2bGx2KyZI2ygJnDxFCU8/KRj4hD/pB ntyquYWi/jpDXxNeykjK2GksweZx2FGLvJ/3GeMSzP05qQ5xXZqUXzOLJEsNj9PYUj7o bnsGB46lEthbCl6faFq4JNVxAlY1q0wuztvFs7tnYb+NvAMb5AvjwN8hhwrgn6ovr5Kk kMsQ9lZbyanKCmwqBPYZDYqBEgh++6etkcCFdMCxDjnl/RonBzLEiYCZmccOD+lIV/+8 PDnDFa/QwSFlUoESeglg3xlqW5wmAuHT1yHNul3NdscFuGvKeaz/SiFj7xXU6Dsbg6Hh PyrQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=3; AJvYcCWLxYSyz555Ehtome/QhD9YWu/0AaCwnojNmcziowirG1HcRrgS2N7UQQqzDQ9sjJKRCnMqWNTmLWp6COCsNNw/xl7t4JGC0WxVT/cXAg== X-Gm-Message-State: AOJu0YybdjI9MXFazjnY9xHagbZ9flVQXsXp9EQl7sMh9wWo7vqXIsFw q0ZG4iZN03zG0Mu3qQcXsuG+25S+va8FR8rIfsf2Lop4xede9t78 X-Google-Smtp-Source: AGHT+IFOEHwEfJugh4nfe5iissaBNYaZUQI44zu3wCURa6Y3Y7DXVa8ETxEo8xpa6yEJMWC1yTW0ww== X-Received: by 2002:a17:902:f691:b0:1fb:1fd6:5e57 with SMTP id d9443c01a7336-1fbb6ce5033mr96897245ad.6.1720789378303; Fri, 12 Jul 2024 06:02:58 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:903:2a84:b0:1f7:1d41:9224 with SMTP id d9443c01a7336-1fbdd4172dbls12181495ad.1.-pod-prod-05-us; Fri, 12 Jul 2024 06:02:55 -0700 (PDT) X-Received: by 2002:a17:90a:e54f:b0:2c8:e888:26a2 with SMTP id 98e67ed59e1d1-2ca35c291c0mr8955692a91.13.1720789375694; Fri, 12 Jul 2024 06:02:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720789375; cv=pass; d=google.com; s=arc-20160816; b=cioPVNER8dRcDsMKHtL5Z/pFIWoAUvgBTk2nV5IlGk+QHyf7mkn/9tGq7tzeVbJQJi UUhjc9jQniegYime/nZsLI/ADQ94kFzdTfQMi4oZrLcweIK09ARaGM4LwTX2PmV/aeYg bVtog/QlAmXWg40tb/3Z8uA8ADgLjd4oOe5XmmKdgiT/zzkNxCmlhWIS+xAw+7lGF6F+ Lhil5Q3bX7kGKnGU5KqQsr+C0clcBKnduDs6ZSf0gMzl/kbBvTwQjX2y0GePJ0eB9Ykg ycnrA41LuCXSYiaxFyiFNIvwI1DA3YJ/AgHYspZaSnxcx3wmRML566Le9qYdOA7V5E72 +cSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=gAuUOTk60dtokVFM/BKFnAO+qwOBlf3rOepqfIOtPEs=; fh=Zaas7zo9QAZR51NXyZEDKjGEOyAL/jH6m/nrwgSdorI=; b=OWZTRthvv0iAaX5tIVGlGC0NtWA2aGlRYPIhciphcRnuImXGen/Q7i0aqRsHCn00hS vfqvAmRJmyJmNP5Ff1hnDY+Pv6gyAOJqI2YU8Qac5kZ56LtNgOBCyQLm2qlIrfc6ch2I B4QfW9AEsBG5AU1wKnOM48FJRAQ1qNeT0ePnww339zCmubtujdsVMJv89cnpwviSwesS pD0VBhK14kAdgADbYb2zvPBpxvYeizpMJcmSurZ7CqWg7PBgvllo1yNqq7LZwrDoM+6S l0qYK6dHFFi08F5ufgqzGSepGdgrpauU8ME49Q9PRUlF5UKf1ZwnHlUqe5bEuEam1iok RZ7w==; dara=google.com ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=NTEhzR0f; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::60f as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060f.outbound.protection.outlook.com. [2a01:111:f400:7e1a::60f]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2ca42e6d7d3si735706a91.1.2024.07.12.06.02.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2024 06:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::60f as permitted sender) client-ip=2a01:111:f400:7e1a::60f; ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qmEZIfpX6V6F6EwtOSHv56aYMwtV0Srpl3p1LbQxhKICasatVKzep0CN36r0nLaNlHFaBZgiraT8EfWDXw9KZ3Or7ShWmssZR3Y9C5FUqibGZg67/0GfV+mpuFc0LzSBfUZHfZA+VXhK4Tog2hefkLuDAwZSnjza1iBOTkLIw5Jk32RL7gAugotA4GmWuQetcdnMnAQhe6jlkG1fPb0ZFzyfby5Sd0cswG5e12MVoETY+pk3AWmuucNs+2rWZ4//xXSoX8FJgZAoOB7bum8YhxLwzCrSelldJQvJ7kDCffRSemDxCK8mAZijHesv2U643mLkZBD2+N8608PjLQTIhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gAuUOTk60dtokVFM/BKFnAO+qwOBlf3rOepqfIOtPEs=; b=kivOC/dFOz+5pY+LIWg/2TROA3vZtvbd1kND/i1w9ayUh0G907ExJCqc+1L16yZK9x+iaidHEjcASlXSSRrn/iZ9svjTCv7VHI7vqyNpByP7nGlS69h3JhuhDgCR9T1xTLGsGFEQxK1kqJPrHkvJkwtHx98kk/cX6Uk01SOrP34EsaPMbHDwFQXXRsnm8m4GHsv5E+cHHI55EAYdPKU1UFhWVzh5eYv4alwHY9S5R64mwxQ9rD6XFuUfTUvKDok8reVetyCzJ8feFc83wWv7mquCmu1fkv2XIEXXq33oEq5rPtE6DUzhVCH6eGiSIWvginbxJPTyKfjXuyNFpapH1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 217.111.95.7) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=arri.de; dmarc=fail (p=none sp=none pct=100) action=none header.from=arri.de; dkim=none (message not signed); arc=none (0) Received: from AM4PR07CA0004.eurprd07.prod.outlook.com (2603:10a6:205:1::17) by AM7PR07MB6980.eurprd07.prod.outlook.com (2603:10a6:20b:1c3::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.8; Fri, 12 Jul 2024 13:02:52 +0000 Received: from AM3PEPF00009B9E.eurprd04.prod.outlook.com (2603:10a6:205:1:cafe::24) by AM4PR07CA0004.outlook.office365.com (2603:10a6:205:1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.20 via Frontend Transport; Fri, 12 Jul 2024 13:02:52 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 217.111.95.7) smtp.mailfrom=arri.de; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=arri.de; Received-SPF: Fail (protection.outlook.com: domain of arri.de does not designate 217.111.95.7 as permitted sender) receiver=protection.outlook.com; client-ip=217.111.95.7; helo=mta.arri.de; Received: from mta.arri.de (217.111.95.7) by AM3PEPF00009B9E.mail.protection.outlook.com (10.167.16.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Fri, 12 Jul 2024 13:02:52 +0000 Received: from N9W6SW14.arri.de (192.168.54.130) by mta.arri.de (10.10.18.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Fri, 12 Jul 2024 15:02:51 +0200 From: Christian Eggers To: CC: Christian Eggers Subject: [swupdate] [PATCH] Lua: fix compiler warning Date: Fri, 12 Jul 2024 15:02:42 +0200 Message-ID: <20240712130242.17901-1-ceggers@arri.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Originating-IP: [192.168.54.130] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM3PEPF00009B9E:EE_|AM7PR07MB6980:EE_ X-MS-Office365-Filtering-Correlation-Id: d3ce65c0-84e1-41df-cdac-08dca272f075 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: ZtEJC4Q4IjCggslP8VAcdZIEwoJFj3DBr7Yl/BWnbc1MRMddkLm/sMEfDavUcaSmrvz/kI6ov2JAfUewfJ02/dfBb8PLBI3QhyMTRkeM4LyXLh7U5F3wsRtPSLNhBM0BWbLWBk7Ay8bY+r+jyvi53HmdPIxbU0HIZ+zhR8ZmV2y4L5GI/QactuoZz4jSOqIq8BYgZPdPK0YjL9rjA97giueP3ST+vN3hcEcs62D8luDJFPOvUFan64Mt92xRP8NlpxHDGbeTRy+uBp5AXvCbw49m4+E9vjgzcYutz8YcZP70LFQYiNh3WC+04cTflAuFvBl9Ju/wSr29LfE2x8PwSjRAhJ5iUYu6svUYRNE6EiMhyFxh89lYdhtKtmM/Q8WQscYOf4vWwNJYSXjlwWIJawL8vku7kuV+aXeBP8zXO0xsORbOEbcCrMEBxdEyLbtHFC+d/xOeo/vd7NYhBh+rUTE/6iw+E27KDt2H2DJMmTmmZr1NDRL3WQaE/pgL8txmG7NAo3VqgsaWEzSF6Wk0AMFijaZaZF3ifoqz+uso9yagd0p8kI6DcZh+O8RXkyT3BeX+QpVhZmIkTH7HXscCUcpoES6XjhoOB/qt2WRC+mRahwDmLNIatsgEfHXsuGMAymhN+qMKaTHST9O/1iGeUZp4HwAPqbUwtyp0VRqLvUXkyNb4xjD0Ru4ytOiaCvWljanniNV69363W0d2pvHL0acDOluExvatoHNKXxaUP10YfZ6Z0UehTpWMreN8vVxe+qT83tyqGD3Rt0x+222qTejfATkJ2cA8xPjToPwX+PIdIDGjCFSehprhgbaUIFLBFIqg+hmxYWqmLUO+JUvYBFnM9/yuVS0EYKzpOi+i6Ph4HZtmh6uYe+KmUjyNKcDtKJct+Li5DX4VgP8Bwb7T1/fMzJOqWF0xXlaOLAbxsv+KQreBu3pFoU1zVy3u8Mgvqxz6cGVGYgpI7wiID6Oxwif4ifUs6vIS6u+QoQn857IRTRTwwhs/GVusuAqou2UEqn0160lQauHrE0SxDsilvjB1ujDdfJrjUF2YlG4fS3/McJgijI5kLLKQi/lWnRwWWZP2jcbKOCRdxYv4qh0dqdMaQuAGr7+6iRMd8JIrKxL3thMBECDAebg84N1EucXXK56kk0a3gJLifU6LmJbhiwG4kdWMabVGNAcrgyqzfyChtA6CPxxuZMmFmDw1r+ylyopNcB/3lYkzWykhhHS/6lYOiLxK68OKpARv/5ZXobqtptpq3+ZQouHtH0Nm/JZAT4x5e/F8ufzxnDwjRKiia+hYgABA2Gk391B8cO9BktOhEUOWrs6wI8b59jrMRcxWV7nt3R1zmmp10yI1yP67lCafhFpUAzF12u6mWbBhBMwA//hLu9PVo1slEu5h/h82XGh48UGLTHlQAeQfffjP6LjD4Imu3FU27sBIvgnXyFAM08wdcfoGI55Xk1iFKVv/ X-Forefront-Antispam-Report: CIP:217.111.95.7;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mta.arri.de;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: arri.de X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 13:02:52.3522 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3ce65c0-84e1-41df-cdac-08dca272f075 X-MS-Exchange-CrossTenant-Id: e6a73a5a-614d-4c51-b3e3-53b660a9433a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e6a73a5a-614d-4c51-b3e3-53b660a9433a;Ip=[217.111.95.7];Helo=[mta.arri.de] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF00009B9E.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6980 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@arri.de header.s=selector1 header.b=NTEhzR0f; arc=pass (i=1); spf=pass (google.com: domain of ceggers@arri.de designates 2a01:111:f400:7e1a::60f as permitted sender) smtp.mailfrom=CEggers@arri.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , In contrast to C++, the C language requires an explicit 'void' if a function expects no arguments. Fixes: f91abdc8674d ("Lua: Sessionize Lua Handlers") Signed-off-by: Christian Eggers Reviewed-by: Michael Glembotzki --- include/lua_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lua_util.h b/include/lua_util.h index d82a76d2c29a..55240e414efb 100644 --- a/include/lua_util.h +++ b/include/lua_util.h @@ -101,7 +101,7 @@ struct img_type; #define lua_exit(L) #define lua_close(L) static inline lua_State *lua_session_init(struct dict __attribute__ ((__unused__)) *bootenv) { return NULL;} -static inline int lua_init() { return 0; } +static inline int lua_init(void) { return 0; } static inline int lua_load_buffer(lua_State __attribute__ ((__unused__)) *L, const char __attribute__ ((__unused__)) *buf) {return 1;} static inline int lua_parser_fn(lua_State __attribute__ ((__unused__)) *L,