Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3655636rwb; Tue, 8 Nov 2022 07:03:07 -0800 (PST) X-Google-Smtp-Source: AMsMyM6nuLXlHTiFilYbCGpNJcZowIzbuEvt1A5BI+PE2WEcOGLN0MwOy3YvtUf4hnsU1Vgs+Vxf X-Received: by 2002:aa7:cfda:0:b0:461:9d22:3484 with SMTP id r26-20020aa7cfda000000b004619d223484mr57809189edy.142.1667919787075; Tue, 08 Nov 2022 07:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667919787; cv=none; d=google.com; s=arc-20160816; b=OHIQ5MHc5sQv1R6E8QxLBHAqeQg9DcijTxMpEEEJMsFtj/5bPCwF9h1HzSxbNyjzg9 vmGZleKNU8ozDT5ZhMj7s2sEY0nSRNzTxkQl2RsdJBBdJociAO97qLMwME8ltldBh/Wo I4m04p8PpsFIht3uhPcB/6OAuFOixdT6fGRdeKx+pA052sjtEZffLmDs7lUPV17vEdI5 3nF5caOuKkxKFZVoGATfhXaygVrh+FyRY5TgT5EyLIm4Xb1EwqrD1zrtXlE63neFM8xS nYlM5qkEnHOgyOpJtE8E/qp6NRVMEPoYyPnr2CUs4BdWUbQYwpohYOLfiIKHIv4nDkPB jd+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=5THLB1iYXuhaabqYf3PYQOaTNCIdvJgv8TQ9xVhgb/M=; b=iYWwG806IlrZ2QhTVRJbSwqz1GqTWUpZYvdUBWXLai8pqoYgan946pwBrUh1strZY3 lxLEWoOiXgNOJGnFMgsfNEbK1eqYByNQw/HN0yXNQMwn5imPCiPsBtpYiDhHPQjRtiYB iKMqJrrPtX2CRk48CXltcPm0cHwDaZZUsDRtDRWfFYdLyyE2gCOaFy8ka4MNIL+MXeCW CjU+bFADNAqzHMsvVdmWf8IfGCLdZBb5nVebFFOH/Lu0DQsZFc1Lj9wQs0dDIPGKFY4n thZ/0rMHqz47lzMtYJ+4dUjKuZzaSK6C485IxUAD2RQ4iW75g9Q4PZ1+6QRM4ClaXHKU wxxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cQ5Arhwj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 hp20-20020a1709073e1400b0073da4a0f01csi12973783ejc.743.2022.11.08.07.02.41; Tue, 08 Nov 2022 07:03:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=cQ5Arhwj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S233920AbiKHO4v (ORCPT + 67 others); Tue, 8 Nov 2022 09:56:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233819AbiKHO4u (ORCPT ); Tue, 8 Nov 2022 09:56:50 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D513C2CE16 for ; Tue, 8 Nov 2022 06:56:49 -0800 (PST) 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 70058615DD for ; Tue, 8 Nov 2022 14:56:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14053C433D6; Tue, 8 Nov 2022 14:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667919408; bh=0sUdFUp/JKQ9HD+qKj1AlZzNDG4QGE5+QW4W3Z0QinE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cQ5Arhwj6EV5XWKF1BZI74UsQoPLbxsS6E1jEKPpwXl9a5AF+334XvMLF4DVurm5+ IBNNcyTA9WL/HHzAOkUEuwzN7w1DDrCZ7Bl2PrDirOwFeZpcggfLwHQDMDeK1F+roO fgBPpnuESS5R23ceHLO/cWUlJDwJ7U8iTwgtMlvYKnileEqCruNg56vz/GOtpsQckT GdTQSevk2eszZIYOD0r+xWVuclx0dI8Nuwd1QRRf8tk6w+boUR5Ok3ORDMvwSocnbR PsJz8l8PRzdONw7Yu0KRp8BzbDyxBWpMyFlqFdNJlZNf+FDdMb1w7FItMa1pcRgWoh 6gHNdcV89Oudg== From: Kalle Valo To: Jeff Johnson Cc: , Subject: Re: [PATCH 36/50] wifi: ath12k: add pci.h References: <20220812161003.27279-1-kvalo@kernel.org> <20220812161003.27279-37-kvalo@kernel.org> Date: Tue, 08 Nov 2022 16:56:45 +0200 In-Reply-To: (Jeff Johnson's message of "Thu, 18 Aug 2022 16:18:04 -0700") Message-ID: <87zgd1cx5e.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 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-wireless@vger.kernel.org Jeff Johnson writes: > On 8/12/2022 9:09 AM, Kalle Valo wrote: >> From: Kalle Valo >> >> (Patches split into one patch per file for easier review, but the final >> commit will be one big patch. See the cover letter for more info.) >> >> Signed-off-by: Kalle Valo >> --- >> drivers/net/wireless/ath/ath12k/pci.h | 132 ++++++++++++++++++++++++++++++++++ >> 1 file changed, 132 insertions(+) >> >> diff --git a/drivers/net/wireless/ath/ath12k/pci.h >> b/drivers/net/wireless/ath/ath12k/pci.h > [...] >> +struct ath12k_msi_user { >> + char *name; > > should this be const? Fixed. >> + int num_vectors; >> + u32 base_vector; >> +}; >> + >> +struct ath12k_msi_config { >> + int total_vectors; >> + int total_users; >> + struct ath12k_msi_user *users; > > should this be const? This is fixed. > then the following typecast in pci.c would not be necessary: > > static const struct ath12k_msi_config ath12k_msi_config[] = { > { > [...] > .users = (struct ath12k_msi_user[]) { > [...] > }, > [...] But I couldn't figure out how to remove the cast, I got compiler errors whatever I tried. I added to todo and will revisit later. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches