Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2436561rwo; Sun, 23 Jul 2023 15:32:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFFrOuhihKDQZF36nvMcQCD4oN4uADMxaevlbDUCx33OeWYTWxsYslpolgxXPhBL3G5z1DC X-Received: by 2002:a17:906:5346:b0:997:eac2:65e0 with SMTP id j6-20020a170906534600b00997eac265e0mr7887653ejo.73.1690151522075; Sun, 23 Jul 2023 15:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690151522; cv=none; d=google.com; s=arc-20160816; b=OD0BdD1GxzfKmmibs9KxdhvsRQqsEwXKe1NXiFU86nx8VzjoLQoWi3ZimI/ZzwRwRr F60012KuvVMpsCVsBLcCnxyl4zqHDH3EBWq3g8Q8+CqFx0pXqI5V/IuzDjhTNFmi6WPx lJbcz77q1SgwM+H8wXnQyTZ1S1rBsibb1H+hszxJWby0FJaOt4614+NZvGS0alYGVplb GAU8ppbTLUU/GCPPD/d3NL4kHR8W3kFbqCR477MXUX8Wk7Eb3EHIXLvWvcneR8gI9v7C Qp2sVU7TkymDR7oPta9FDxRx4UpLd0vmzpk14UyY6ZVdm4mBJl1zuaTaNTVDoqx7/yHw G5TA== 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:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=RBLYzId7q5rLyrmeOfA7KtxUDvqgZPZcTGOEpMnxbOo=; fh=joeGTn15TOvoAByebC3X2Xzy78J+QEzkXXtISuYJt5k=; b=FpgBVFihogYJwOw7SdrP4ZxKUQlaz0NWDrMFf9HM0fK+Jynabi+12sFwNkoHcoQ4ZR 5QznjIA0pEi1K5k6g7IpFJlWHnUV6f9JC5BM6fClD9H4TobNG7oIjzTUoQme8bqYeLnz FTmqntWiz2VNCLm+Kn+DFi8E8MaHblNiT1pqBLGUcYwXLrCW+1wBgD9M+qVEDnT5l5eO jO6+ceIuXqIVP8bwvLCKanF+Yx2MBCBojAPl9mvuRBioyyvOo6L+7lFOpi/gsElcg787 N+umgsut1TDfWONiHYmcKb0aIlrmNeqyH+qv8e0m14xX+ljhcVft0Pb84AOHHaxBQGRZ F6CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=OeuGmuPh; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k24-20020aa7d8d8000000b0051a5ea200c9si5525670eds.343.2023.07.23.15.31.41; Sun, 23 Jul 2023 15:32:02 -0700 (PDT) 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=@toke.dk header.s=20161023 header.b=OeuGmuPh; 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=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbjGWWKm (ORCPT + 58 others); Sun, 23 Jul 2023 18:10:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjGWWKl (ORCPT ); Sun, 23 Jul 2023 18:10:41 -0400 Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F120AD; Sun, 23 Jul 2023 15:10:39 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1690150234; bh=RBLYzId7q5rLyrmeOfA7KtxUDvqgZPZcTGOEpMnxbOo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OeuGmuPhicNWMwN1ajbzHHH55e0IEwqhIz8RNBgekmQ7zXWc1pTXxsxPnCUP4HWku KbA+Yv6U0F+Mi6sZnUcn51yJsYhlVBSCRoGAXsludTAXnpgymgqRThS2Xd8GKf6E8O CV+9BfuguTz7W1dN79bD7cteUdfwMdQ7Uf+v/eYeHAc//ScT06KkS482CNBA9DKOrU g1f8MOv4pG5B3arjzVVG6ScuVQDFu7fRZmbSSZgmnxwc7GbZj/LdVNv0u3tpIlslHs XtHGpoKzEoWVwnVMnF+tWbx4HpII/LZ92zMMdPLy3vW10kIXDiIOsfARcNQyiMZWJv /W/Fo7qpD/9Ag== To: Dongliang Mu , Kalle Valo Cc: Dongliang Mu , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] wifi: ath9k: fix printk specifier In-Reply-To: <20230723040403.296723-1-dzm91@hust.edu.cn> References: <20230723040403.296723-1-dzm91@hust.edu.cn> Date: Mon, 24 Jul 2023 00:10:33 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87mszms2hy.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-wireless@vger.kernel.org Dongliang Mu writes: > Smatch reports: > > ath_pci_probe() warn: argument 4 to %lx specifier is cast from pointer > ath_ahb_probe() warn: argument 4 to %lx specifier is cast from pointer > > Fix it by modifying %lx to %p in the printk format string. > > Note that with this change, the pointer address will be printed as a > hashed value by default. This is appropriate because the kernel > should not leak kernel pointers to user space in an informational > message. If someone wants to see the real address for debugging > purposes, this can be achieved with the no_hash_pointers kernel option. > > Signed-off-by: Dongliang Mu Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen