Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30690170rwd; Thu, 6 Jul 2023 09:17:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlFs43DxIehn2Zp70AJ71JJ+5km2x0y6DgLYGcUZRyUktD+qu4gXuSNX3hm9VfoBqpJ/uFtw X-Received: by 2002:a54:4d06:0:b0:3a1:f237:ec62 with SMTP id v6-20020a544d06000000b003a1f237ec62mr2704909oix.48.1688660249770; Thu, 06 Jul 2023 09:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688660249; cv=none; d=google.com; s=arc-20160816; b=pN7TjJk5iPZiRKZMtv9DPJGmGDpgR0ePWZrC3AgV+Sf62jWmDoXnpl3qb4+W7ooVMQ bx4jhiIvt8OmCSPdNuhbiDwXpZO7z8gLwa5uJ7KSanz+zdDbuBIhxgyaI833S6qWq2qU q7qr+3Ts7pm6vlg8qNHQje0lYpF4s48Bh0JvfMdMPyzLwaBYjdxz40phux6EtPaCCjSC HoByRX11JJCHrHNA1uYPcc6n+zNrBQ0/JLJi6vocTqnrWrcYS7wyyA0rwHnS92M2OJeP awEFsCiddnPvyGvzdnkZspWWU8wKLnsG2tGipZCHA7UUIUo0yHoxTy8V7MwytiGb0zx7 XWag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VTwkYSqtsqBHs66NETbnHT5nEfsCUcOLAL0N30buT0Q=; fh=kOcgin8Dbn2jQBNY7itz9tSWWDM7xIwQaTRgZgw7ZHY=; b=tig5YpJjLBMX3EII6CkjxncC9wGGDiNypALyd823rtPdKkzyO5vmr9LUKKp0fAKAJ3 JXcEIHcZBk0OACbIcXcvpQtdwO8GCXYQaPLc3d9NehJ1uUavJyYA8lBh6XmHCORBj+XV wlWehNbzCKtz28RkQzgZ68RwC3/ablAJ+8K2oFi+oEfM5/JNoTr3ioBhdQ97QaNocQc9 iBnOCkKUzAB9LJqyufvs9jvsiO8BXlmvsG9AACuoU7H+WLbRKrIELqCldNrN3paR5WnZ VCHNULiBduBQzS3/W/01/YesuZL1qkyOqnS0x00fF8Ua3od4vQDtYxLnFLNrMpWx0wXU BW2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Jo9h4Fly; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b0053eefa04dc0si1669968pgd.276.2023.07.06.09.17.14; Thu, 06 Jul 2023 09:17:29 -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=@gmail.com header.s=20221208 header.b=Jo9h4Fly; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbjGFQFI (ORCPT + 59 others); Thu, 6 Jul 2023 12:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjGFQFH (ORCPT ); Thu, 6 Jul 2023 12:05:07 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3295DC; Thu, 6 Jul 2023 09:05:06 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-783698a37beso33511039f.0; Thu, 06 Jul 2023 09:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688659506; x=1691251506; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VTwkYSqtsqBHs66NETbnHT5nEfsCUcOLAL0N30buT0Q=; b=Jo9h4FlyCvzQZ0jWs1i0uvFOIN5SotGmaH5DqJNFnELGu1TPjEPh03ovcbUoJqfk2d +GsIAODlxVmIIbUjU6+JyNSS3Bc1iwpl1fSMyAQq2jExpvGhGxHOjAO1z7ZnJ59SF+LM Ey4oI7hLLDiGOM7Tsdpo58lqIIDt6mWAxdrYYhZwSOg8irt4youjs7wlLF/q/Bgz9+vP p6q6ru1kRMSQ+3uoJXSwFVAXrL5Cokrdbuqbxonz1pefI2QH+e+31oxr/plOLpb5PMsw pzUYzTjYYh9sYyxZVeB/fPEDkFlaVa5G+nAAKTSyeYPg6OLwhn4bTuuBNOYqaIai4aWc mUiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688659506; x=1691251506; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VTwkYSqtsqBHs66NETbnHT5nEfsCUcOLAL0N30buT0Q=; b=g6CeUUMpyUu91UMXT/eAjL/PvZATE/66SpVnuEaaRuMw0KoSmESlfaOolfULJqY45g sFmNXmjxgE2QolAsNOCIJbXygqVxKLTRWNA9RYYFpAhBW5dH0s9fWZ1cfTyb7yD0aUsB pKFe2QfZnzn8XCdbHNPJT3Czm3leO4dyo/XB/nRfiZ6aYQ67EvlBp+DFATCnqVfnsOYC TXUqxLhs+n9Woq1z7IAlhFkSUkkAEBc96TuGVRSieZBjj2Hp0iPIrPrvqEDfE4+fdxXz uQ1/bxg3pZqmA1gDC45gjMYInsdyoZZUY4NQlGAGYmqDfk7CQElgZZL1gY7NwG8+KwVT Yjfg== X-Gm-Message-State: ABy/qLYwDvuHGgfu9gfT7dZ7K7YdqMUEsjrACXMyq3qub6FYBX+0pK1P Ilse/ovp9EuAGyUcRmiklT9bSF1LcdEktyfDqMk= X-Received: by 2002:a5e:c648:0:b0:786:445e:1c0e with SMTP id s8-20020a5ec648000000b00786445e1c0emr4030638ioo.20.1688659505925; Thu, 06 Jul 2023 09:05:05 -0700 (PDT) MIME-Version: 1.0 References: <20230706111700.14305-1-dzm91@hust.edu.cn> <87cz15s2gv.fsf@toke.dk> In-Reply-To: <87cz15s2gv.fsf@toke.dk> From: Jonas Gorski Date: Thu, 6 Jul 2023 18:04:54 +0200 Message-ID: Subject: Re: [PATCH v3] wifi: ath9k: fix printk specifier To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Dongliang Mu , Kalle Valo , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Thu, 6 Jul 2023 at 13:39, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > 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 printk. > > > > Signed-off-by: Dongliang Mu > > Third time is the charm! :) > > Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen But do we *want* to replace %lx with %p? Because this now causes a change in behavior, as the kernel will omit the pointer's address, while before it printed the actual memory address. Using %px would have kept the original behavior. So if the change is desired, it should be noted in the commit message. best Regards, Jonas