Message ID | 20210205221100.1738-7-elder@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2811601jah; Fri, 5 Feb 2021 18:36:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsmitIJHCaPYR8cg9s5BFGTxdh25DOMXYx4phZScllzQzOOhG17KNzH8Bi6UpNY9bvsGl8 X-Received: by 2002:a17:906:24ca:: with SMTP id f10mr6658464ejb.96.1612578990647; Fri, 05 Feb 2021 18:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612578990; cv=none; d=google.com; s=arc-20160816; b=B7QiYChJOeKUJW1I66DEphpYg3Vt6N0/ChV+JZ5Zt8bRjFoAQCtuuguXm5K4Exf3Y+ xuWtvdZGySQXrBH/HqJy55FH9MMm+5yBcRrx6DURopMXzZJ+TyBFqyg2ab0i34HT3IAV yHFFWMJ/kqHE6O6CGp4iO4Kpm9RMmG6qQfyzMjZL+yymIL0mnzQU4EF+gyT8wurN7mds JBGCuOD75Ki1pfnkm4JJ80YVNmHgYO/kHaFGivChdKwWetJmvwpOrGj8Sql2ptA0Zm+c w01npklb0NByWb6SgSv5Vwgv4Pq/JIZVpQszY4B/WNz+C/9FfQeYNAhl0khxCdctp1mO 51Ng== 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=zGbsEzOtJ1q5BY2H+h2cnZ9sWfqVfASjGUtwzfF4UGo/XXuW248OR+5I2JxJLZVTpJ DlrVQDY0OMALAQyzuqSl3MMh5jFSwP1OInahzFknRdKHeGzghn7ERqyFF+GXaSKftBOi kBFDuqtovm5I8qu0he3+qTRuPzE5pa7DctHc5uTe4qlBTrWg2gOBd4Bx8zaXrEqSnLqW KQQreu74S6is9tNxMT4RznEyDDF/kD8F88h9JQwWWwm6yMhBrbi9AH34EK5mGeXkyYL2 xXycOaxsXEgxX9ris9C8aDfhwIKOBcj8fJkpb4G7+VoISt2IbSm4jiHfjrG1poJ4hoSR AzVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ozvSvOes; 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 hj12si6844632ejb.577.2021.02.05.18.36.30; Fri, 05 Feb 2021 18:36:30 -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=ozvSvOes; 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 S231168AbhBFCfN (ORCPT <rfc822;patch@linaro.org> + 7 others); Fri, 5 Feb 2021 21:35:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhBFCcb (ORCPT <rfc822;netdev@vger.kernel.org>); Fri, 5 Feb 2021 21:32:31 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FEA9C061BC3 for <netdev@vger.kernel.org>; Fri, 5 Feb 2021 14:11:14 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id e1so7282808ilu.0 for <netdev@vger.kernel.org>; Fri, 05 Feb 2021 14:11:14 -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=ozvSvOes+inyPBHz80LRvVrFcsrJMzQcACU5LKGFx08VpOGwelVCRaOGmPRhfUgQCf N5rqnPRhUMvCvkCVIkkyaPXJ6xaVQ/AoMuGpi6zk8CwVLjaQ8KbMscdkjSWapEY8O8EQ vTLjdqs+t2mXJMIP4Npaiv16vWRmN36xVdMJ4i2sw+Z7elNhC6x42O+YvahqLGUDv4MG ZgH5Tvs3PWP03HWf/1e1H5C2npvac6I6W8e3OFf/HvHaDiP5UVgRq7nf46JLwL0C9bA2 DmaKbWBsP/apTInIRbWEwjExMmiDJ7MFjsv85P9AJ/Z2bNfoC3UqxoxSbfNrFgd34dD4 uExQ== 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=T8H0r0+LEtD7F3v9pWsw2dZ/fHLDJImnGrPAmPtX/MGX4eBUpoZ0ySXGVVQyhmcD9K V5b3c+y2NwPshyO/1khIuw1CD9cq7MieiGrc1FSuCwtz799jA35O3jm+xuBXUignAXT4 hCVSj/3p0GecRiq4nx7rHHZo7/hc8c687iksK1BAvjF/OUCPBIxyKIkjuXMiiRapY61x B924oT9uQ0qn5/tvr+OuUgrvPEnnD4CCSvT1QSCskCHp8jlMLmHvRVj0rzGke8QNRyCp flDqy9/VdXoJpHNIt/CZlha7lyhHUXN1yMRSkfeXVznm9F/vgYVsMGoCwjOPjj34dCAr E2+A== X-Gm-Message-State: AOAM530LuhbHusoTAuGrIZ2Z7/JWYvtRd19KBckzhuGepLM1hNdfXuSt qjCJ6fFCxm1r66nMZHxpLraAXg== X-Received: by 2002:a92:2e05:: with SMTP id v5mr6146744ile.241.1612563073683; Fri, 05 Feb 2021 14:11:13 -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 m15sm4647171ilh.6.2021.02.05.14.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 14:11:13 -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 v2 6/7] net: ipa: get rid of status size constraint Date: Fri, 5 Feb 2021 16:10:59 -0600 Message-Id: <20210205221100.1738-7-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210205221100.1738-1-elder@linaro.org> References: <20210205221100.1738-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