Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41737C433EF for ; Wed, 12 Jan 2022 00:42:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347388AbiALAmU (ORCPT ); Tue, 11 Jan 2022 19:42:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347278AbiALAmS (ORCPT ); Tue, 11 Jan 2022 19:42:18 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D860C061751 for ; Tue, 11 Jan 2022 16:42:18 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id a23-20020a9d4717000000b0056c15d6d0caso732319otf.12 for ; Tue, 11 Jan 2022 16:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EuLiyWvOKCNFHRzc7SJEufnmfQWRRouNshUT1JlfJ7U=; b=XoTI7sR5YkrKP0/NNOqYf8pOBuqhdkwarPDPgSPCCAUHq6zUjJzc3DOJDzusa6QIzO yPZ9ZVmJFQFKetvwV7ZWkkbvYtRXfYX5nvoQZ9u4/3V+QGWiG40EiH1cICJmBJkyDPJX saAho07b48FH9U2ncbrnwX4dsvYetNonIxFTP5/VRLsYMjQ72Bzai6NdvsYE2kRbHXpq UITtpZC+VQcnSJbL8eH73ddx97cJ3GqSrxi9nWGSMyoBeMuqWdmap7+jZczNPr8Kfz57 5FGAM3qSkNicdfrCJzdzX8Zz8Y7Wms7IfCqOMPqAM6v7OCEYk904DZp+A/OoxMhjTmJj rvNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EuLiyWvOKCNFHRzc7SJEufnmfQWRRouNshUT1JlfJ7U=; b=wGlVkvfzcfKvqchS62zaPYfWlL4mJDzUB7AiuzfZ3Mc/VizRydF8dApo09p70ciwLL oo9lr+APzDHD/GNlu0BB6ydLX7VUVTXtgzTUPNcdehyvB8CT0nyLHFhNOvBtb5lJig79 d++sTqotJq3eiyOCgXvRukA/09eYjpkVlYrWV37cJEbr6K6tTI8SmhPUWTcIvQHxxHEp UInbrbdq3hororFmTi0c6OcGb71ExV563Yw4cVgGq2VBh4aET+GCuPYUuPBcCPmShaTz 04h2/hf3YaSwpV+sGKF1Cs9mgclxfKOZvtX7gFAn8/hW4ZE+ckDjiECzXalFfYyy0Agg b1eg== X-Gm-Message-State: AOAM531vJRBrxMJs59aPJWbI1/YYpKGgdswwXspaoD0G1oQROMeAuvpB Y4fu1klADgtM1qiqHsR69v6d9kSge0JA6KJDQcsQqbkcmWA= X-Google-Smtp-Source: ABdhPJyRua3x8hGIFEnkS6VGhkf9ddNtgUUB/HL1p9RdfA7g0IHb/yI28TavFsuaWNvTtxfLQbintksNl5BueuZsv5w= X-Received: by 2002:a9d:465:: with SMTP id 92mr4915625otc.35.1641948137630; Tue, 11 Jan 2022 16:42:17 -0800 (PST) MIME-Version: 1.0 References: <20220105023700.10966-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220105023700.10966-1-yang.lee@linux.alibaba.com> From: Linus Walleij Date: Wed, 12 Jan 2022 01:42:05 +0100 Message-ID: Subject: Re: [PATCH -next] power: supply_core: fix application of sizeof to pointer To: Yang Li Cc: t.schramm@manjaro.org, sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 5, 2022 at 3:37 AM Yang Li wrote: > The coccinelle check report: > ./drivers/power/supply/cw2015_battery.c:692:12-18: ERROR: application of > sizeof to pointer > > Reported-by: Abaci Robot > Fixes: 25fd330370ac ("power: supply_core: Pass pointer to battery info") > Signed-off-by: Yang Li Reviewed-by: Linus Walleij Thanks for finding this! Yours, Linus Walleij