From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 69E1242681; Wed, 4 Oct 2023 00:28:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 337E540289; Wed, 4 Oct 2023 00:28:46 +0200 (CEST) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by mails.dpdk.org (Postfix) with ESMTP id 67A0A4027A for ; Wed, 4 Oct 2023 00:28:45 +0200 (CEST) Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-d8195078f69so1549480276.3 for ; Tue, 03 Oct 2023 15:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1696372125; x=1696976925; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=D++db6pY73dqAyH/VpfXJnAHEjh7gmAJl0B54ULo0pM=; b=1UXZ4WjkV4XUoNyhSDl/GdWUKDfSy/Jv07OV6RhFhr6gTxmRJC1HZlBEzvWeeZs2+U 9aaUeoDNTEwyzqrpoKELd8gjcxvbXaspy+T34suiJro0wqzdGTUAAQ+uMtBxWELhkpFc AfF1WfPPkK/VExQorKGARNeRvRGbtPmM2Yqnxos6UTAM7k9QWhUYdQK7/10/hip8WG8U eKzPcgRt1J1ZulakiQNHVJuTZyhrgd3UXAgTCcA8+VgbZnif59HQV8foRICDp8xFt6Uy KvpGGOjVUcTe+j/40L/YeFby9H0KJ+e9b4zeGlAezXP8VErJxqM0NQo/mMiQ+Q/4Ga9F +myg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696372125; x=1696976925; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D++db6pY73dqAyH/VpfXJnAHEjh7gmAJl0B54ULo0pM=; b=cXBTuJbgMSjm+yIHm5YQlBiJVxN/uzJWbF7dGUjjfSrftJ98t+GvSxRijbrfHMNB8m eWkvK6iWuaHTQv8rtER1m7fy68PPMHi4tGhSS1OgIk1kPox4Zk2H3y3S+cfjKJcAXsRw LYd/TTeZPuM4BaB4vPS8p1CHkhem/OJBRix5Pmmki8uVahsm+1Otr7wL6ogSpC7csQGB mOpNBLEW6E6Fj1Qi5i9pvsMWhz4LVebdO/NvUssRNfBxBPTUdEiQZGXFIuYn4P8FTyTT aIzWYRg20ayd38YLcDFO1pjN2EFggv8UrBbmBfmdi2sO0Z8RekGVO9eW4K0VrsmqOnz+ nlcw== X-Gm-Message-State: AOJu0Yy5X8HlY8EF8Q/MPNcBlSJNtsE8rHNyc3VWQt6YsyZoO9XL5q4U nZSobPUgz4+zNs+ueaH8J/y6GA== X-Google-Smtp-Source: AGHT+IFblUj5Bo0zbFRybSspgNR8wZDzSphNQajhIHOH9Oe7JywrEIZRKTC4GWVF1YD+wCbyZdrDkQ== X-Received: by 2002:a25:8d90:0:b0:d85:38:4577 with SMTP id o16-20020a258d90000000b00d8500384577mr456372ybl.19.1696372124756; Tue, 03 Oct 2023 15:28:44 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id o28-20020a637e5c000000b00584b293d157sm1866694pgn.80.2023.10.03.15.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 15:28:44 -0700 (PDT) Date: Tue, 3 Oct 2023 15:28:42 -0700 From: Stephen Hemminger To: Tomasz Duszynski Cc: , Jakub Palider , Anatoly Burakov , , Subject: Re: [PATCH 1/2] raw/cnxk_gpio: support multi-process mode Message-ID: <20231003152842.11b3ed7f@hermes.local> In-Reply-To: <20231003204603.3377509-1-tduszynski@marvell.com> References: <20231003204603.3377509-1-tduszynski@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, 3 Oct 2023 22:46:02 +0200 Tomasz Duszynski wrote: > + > +struct cnxk_gpio_params { > + char allowlist[CNXK_GPIO_BUFSZ]; > + int num; > +}; Should be using unsigned for number of params since can't be negative. You could also use a flex array to avoid any buf size issues.