Message ID | 20210203152855.11866-7-elder@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp440112jah; Wed, 3 Feb 2021 07:31:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyq4gc8PjdWN+lUPrd3jNuqpms7RXBe7anNCMrK4aXZkMu7EiRSRh2piZKNxo557jKkYvoq X-Received: by 2002:a17:906:d18e:: with SMTP id c14mr3218338ejz.302.1612366299791; Wed, 03 Feb 2021 07:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612366299; cv=none; d=google.com; s=arc-20160816; b=BF77SEhOIEwupvnJQnEDGrBG4GorJYKdu+MsfZ7fDKR1rUywor7bEbKM7om3voPeI5 kKZdd4SGL41641rH9ohGknS90ZcbJVwobMAUYeqIa8SFSL3klzMU3bQ3Tw5ZR7hXWp3d STnWp72GRygWCCvx8JDLWj3GQIlqWHQO6jL7cibkuMl+LsSPTMw3wyOl629gax84MCpy tky0peVlugjyh9JQEgiNfu3tJSpkAlokwIYpt0T9n383gvyo4VEVSSgtOqg6Vg7q3wxr eMBZAD11O91mgnJ3LQIQOMLweGL0W/geqOLua89NXvA231nSjIX3srSP+cRgG18wUiKW hHBA== 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=ktpO/jSmoOx5RVisI52DM6PeD/6jBsQ5/HisJypSEHU=; b=d1GG5xtqmthkmTugUP/7OjwEgLFEwksvtvu3fYj5whqfIZUdtFF1OhcNUme510zohq VZh6lWuyqq8wO3TcLzAUyVHTcjzA5kq1cq0cl3zAiJNj8Q3o5H1Yme4SukXfOv0x5319 M+sUcAmFCv1uJkeDcr27lxhtuJX5LKCvEyW+9u8N3GRWFSg/sVDjLkraISk7EyzpcWXm GZTapAb8Cz/2B9bsan8x/XPJhsYTWiQYAjsTFnp9jnV7wHp9oeGuNofes9MVCLjfY59h nKQeQqr//r1IAqJU/S9a9G0Y6nNh9yrWzigSxAeCpwQH9am29s0unqnbrz0PMDrEeSdZ A1mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ihyMBeZH; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si1560837eje.586.2021.02.03.07.31.39; Wed, 03 Feb 2021 07:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ihyMBeZH; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbhBCPa4 (ORCPT <rfc822;patch@linaro.org> + 7 others); Wed, 3 Feb 2021 10:30:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234296AbhBCPa0 (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 3 Feb 2021 10:30:26 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0DFC0617AA for <netdev@vger.kernel.org>; Wed, 3 Feb 2021 07:29:07 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id e133so14797191iof.8 for <netdev@vger.kernel.org>; Wed, 03 Feb 2021 07:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ktpO/jSmoOx5RVisI52DM6PeD/6jBsQ5/HisJypSEHU=; b=ihyMBeZHOYDRwhA97Y0VNZOgqPLUdd6gsZglBawAKVdApJXPCH/lhyadqr+oE127v9 K6/FiukWucBm8B9tC7LnshCTCphoaFBvC24l8GRkKXlMotsytnouOt+GqsxIY4L29Abl WAKPZhfTJvWI2RHAHxT9jUtDvX3Dkf7n2JfYWiDy/e5dFRzH1vHhct/AShg24zZoC+iW 8RxwxsWLIhjRqmmZGZLNq/dVGjA+A9YvrVNKEJ1gI2jDXBTTbMYfZ6b0paX1ru5OF0dD E7MQothzZl8yGZV+2Y4zOUjRg1csaOFrBx2urW4VyoaSpl5QqM36ZeKIaTk3FLdlY3uv /4UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ktpO/jSmoOx5RVisI52DM6PeD/6jBsQ5/HisJypSEHU=; b=FT2lOcbZMZzLq+TkCtIGCbAK6caJ2K4mqB1gvoVsSistpxctt3i056k5orhmzld/2U 7BJbQgyDYhY0iegHvubrM0Ky5Sd6LRqa7WhG8idWl9mlVNd3hkNxvyZsCGKXwQLXcA7J 1KgEwuWKhJK9TdXJ+DTaS6wJnrSrhpMcV41nQ0D+EpTYRVBE/KqUqV8aJGMRDM2iKEEv 9smxukUxK8V3mNWzYHHHPFMTfCTBNZFK8QTV2mwXBnFXqjlgGUQ7bUp0vie721NS9F2g cxyi19Kn/ate/ooAvLDSZXzQ4hUmgybF1Iuk+OqK0KwkzcWWE0TI7xSo0DMyy4CkhHLR GUyg== X-Gm-Message-State: AOAM531c1nz48nW2jpR8v+bziuHOSD/PwoG50X4wjqr0UgT0bpwzVxrL y9nYs0gv5YzCU9bD07nfTjRLgQ== X-Received: by 2002:a05:6638:271f:: with SMTP id m31mr3456968jav.23.1612366146675; Wed, 03 Feb 2021 07:29:06 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id a15sm1119774ilb.11.2021.02.03.07.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 07:29:06 -0800 (PST) From: Alex Elder <elder@linaro.org> To: davem@davemloft.net, kuba@kernel.org Cc: elder@kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 6/7] net: ipa: get rid of status size constraint Date: Wed, 3 Feb 2021 09:28:54 -0600 Message-Id: <20210203152855.11866-7-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210203152855.11866-1-elder@linaro.org> References: <20210203152855.11866-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
net: ipa: a mix of small improvements
|
expand
|
diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index bff5d6ffd1186..7209ee3c31244 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -174,9 +174,6 @@ static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count, enum ipa_endpoint_name name; u32 limit; - /* Not sure where this constraint come from... */ - BUILD_BUG_ON(sizeof(struct ipa_status) % 4); - if (count > IPA_ENDPOINT_COUNT) { dev_err(dev, "too many endpoints specified (%u > %u)\n", count, IPA_ENDPOINT_COUNT);
There is a build-time check that the packet status structure is a multiple of 4 bytes in size. It's not clear where that constraint comes from, but the structure defines what hardware provides so its definition won't change. Get rid of the check; it adds no value. Signed-off-by: Alex Elder <elder@linaro.org> --- drivers/net/ipa/ipa_endpoint.c | 3 --- 1 file changed, 3 deletions(-) -- 2.20.1