Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26028667rwd; Mon, 3 Jul 2023 04:38:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNLcEl7TI022nsFK7hsUTjsDRV8Pm+NB+q8Z7BOfT7lAhhVY8q4TavGzVdbqgzH31gWL96 X-Received: by 2002:a17:902:f54e:b0:1b8:5406:a34 with SMTP id h14-20020a170902f54e00b001b854060a34mr10897097plf.24.1688384317258; Mon, 03 Jul 2023 04:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688384317; cv=none; d=google.com; s=arc-20160816; b=Hk4rO6y2FKn2unFXJK3Rii2NXrJT1SIDZCX5c3zfEciSq+mU1/C0W7TtCTo54Xw38Z d7RznkUk3/bttheZNPw3fCayIGG2GgC2IFE8FHNyxrwsEm6yzYAzz3VZZHzdXzRD6H1m nZub0LztqE1ndfZDZ1xB76HlEnvXRJbQ5o2AEBCTDD5gM+J9NyYgMlWEnfgnkE+SrVrn 67tFZ0M5XQsMuLCczOq/7tTzreCTM4m8OIzmrb/w7gd8PYZ/kLUCMV/LiEpVEMrp5gty qStuxaMR3MMAj35xncaJzPmC5CuTnVL85rEhbU6mxMJUsGiI3nxSEhZtNcpOr82hPjB4 CGfw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=m1Vcfj2ZR0Ju2g8J/oLsKnVNHrkLZS0A5xwOFXsgdAM=; fh=lrqL+8uJ0Rko0OTb2KtmRObJnbiLwxmpEy07ZcNtHcc=; b=LeI/Xp8aaUvUN1yfkg4zrSaucmJz7CAqife4JAu+18ycmg/30Vkc0XR4w4Ca6zCUhY fP0RridA7V+NcDU2QVqVi58AbJgEQOThwXmZyBUrIumXwUkbYuV8sToyzo4wazwDAz4I Qm111TWsasHdWvUVYmjM6+c8AW0aQRE+REnscqIpNUDYVqj32YfizCI1I/tKdPuH5i24 zMQqQLfj9R+Xtlca5vpFMKkOg24SCvUPN5J5FQnabG62bOmSwNO6FkIQzNT4JD+jcJPL kkiR+f2k49828/MqDzWIbjBa0SF/GWSw9wPEkYtYWZ3wekBMIOI71X01uArRlxfJYYfY 9Hxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JGYuRaq5; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-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 r10-20020a170902e3ca00b001b692a5f69asi16526496ple.557.2023.07.03.04.38.10; Mon, 03 Jul 2023 04:38:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=JGYuRaq5; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S229604AbjGCLbW (ORCPT + 99 others); Mon, 3 Jul 2023 07:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjGCLbV (ORCPT ); Mon, 3 Jul 2023 07:31:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9E82B3; Mon, 3 Jul 2023 04:31:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 669F760EC2; Mon, 3 Jul 2023 11:31:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD31CC433C7; Mon, 3 Jul 2023 11:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688383879; bh=4dMz6AICQADVRRk6AU4c36ys4TXGNzy34CAOZWE5z1o=; h=From:To:Cc:Subject:Date:From; b=JGYuRaq5gZfzOX8EqTv+gxLLWUN2XdBFw6I4bM65b02eU9FLNa05+EkPbuIM/w/0L KKTu7s2hACooo45t5NDtM88Rdku73L7/D/1UNqwCFiT456JhYx2FO6FLHa2zAdQXk4 kBYM+1lb9c7KI7X8CAO+I/L6fuxTwIv5D8kBj4byiLVWnJR/Y+9kCcCt/CZSdG19TK 6u0MLr5Qpf3fIrA27gXgGb+rRYtyqDcI2T4SQ7j6UslQf0KizBMVMnA9OEbppJPDLf SHVBr8s4T3LmNTyYyYLytU73cOIVLW9itW3Pxduydln2eOH0/4tsmDNlAFniXdwStT DMbLYPeHBgZ9g== From: Arnd Bergmann To: Marcel Holtmann , Johan Hedberg , Chris Lu , Sean Wang , Jing Cai , Abhishek Pandit-Subedi , Manish Mandlik Cc: Arnd Bergmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Brian Gix , Pauli Virtanen , Iulia Tanasescu , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Bluetooth: coredump: fix building with coredump disabled Date: Mon, 3 Jul 2023 13:30:48 +0200 Message-Id: <20230703113112.380663-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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-bluetooth@vger.kernel.org From: Arnd Bergmann The btmtk driver uses an IS_ENABLED() check to conditionally compile the coredump support, but this fails to build because the hdev->dump member is in an #ifdef: drivers/bluetooth/btmtk.c: In function 'btmtk_process_coredump': drivers/bluetooth/btmtk.c:386:30: error: 'struct hci_dev' has no member named 'dump' 386 | schedule_delayed_work(&hdev->dump.dump_timeout, | ^~ The struct member doesn't really make a huge difference in the total size, so just remove the #ifdef around it to avoid adding similar checks around each user. Fixes: 872f8c253cb9e ("Bluetooth: btusb: mediatek: add MediaTek devcoredump support") Fixes: 9695ef876fd12 ("Bluetooth: Add support for hci devcoredump") Signed-off-by: Arnd Bergmann --- include/net/bluetooth/hci_core.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index c0ca3f869c923..491ab83ccafc9 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -593,9 +593,7 @@ struct hci_dev { const char *fw_info; struct dentry *debugfs; -#ifdef CONFIG_DEV_COREDUMP struct hci_devcoredump dump; -#endif struct device dev; -- 2.39.2