From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BFB12D0C99 for ; Tue, 25 Nov 2025 19:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764099775; cv=none; b=ct6IrOua7o/ASL2b9TuqhSZC+AHjBKRHvM+N0CThLBY8IgMurWa21Jtqt4ZSfAJrhDZ4IL89w4oIaV6MD7mh4TGGFWf+Lgscu8nrGIqPM1P3O7U6aYja3sQsuAJRKugfQ6lx7Xk9cdwh/OIHl9KUHVLrPb8gMHGO6iSPvsdkzME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764099775; c=relaxed/simple; bh=JBt1h3L2XtYYOq0p5DK/08eVARBt19AunXpQdaBuxiM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J3RvIvNIqW2PTIWRIxQZW6pjK5OuLnlCVndZQy8kvKUwOlGcSIHfwqkEI/wZWPYFcRW2t3MORZzcKt+24UayfEyBWHYtWtjlFB401jh1vBcDpX1e8Fi30x170ufyInvhFSIl6KdisVbclmMb/sjeUV7UrduHqp0W/ADVeGav2SI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Hfzooown; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=J/cvc1c8; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Hfzooown"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="J/cvc1c8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764099772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XYzyEzWjGRI3sd+N+V0H4yOjf+wNz2/MgKDjSabE5Yc=; b=Hfzooownx6utAtB0cKQxhROh/jmloqcC306we+bGujlhUi8qSY7Q9adVUtb7jh7vu8vijr 4Brcx2ohodI9xhE9RElo5GBjlAP2kw/V6IUxgD0ROUOiD+8n8ZOX1uwS4XzuLJWBr2eIOw wPg+y85E/9vqvuOz8OaYOnr1s9qOIP4= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-397-6NR3c-C-OveYV1dGSFh4Dw-1; Tue, 25 Nov 2025 14:42:50 -0500 X-MC-Unique: 6NR3c-C-OveYV1dGSFh4Dw-1 X-Mimecast-MFC-AGG-ID: 6NR3c-C-OveYV1dGSFh4Dw_1764099770 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-4ee0c1c57bcso227797561cf.2 for ; Tue, 25 Nov 2025 11:42:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1764099770; x=1764704570; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=XYzyEzWjGRI3sd+N+V0H4yOjf+wNz2/MgKDjSabE5Yc=; b=J/cvc1c8EPQoQmpu0QiJmM8hVbXTUYEn/rShOqEhYM2WySA9CTTIXaKYYV9WVLn4pQ 6Z2pbUxx0Pa9CoRRs/9oLrKNHRmjaFiZPbv16vEo2vmT0CG/Ymij8tBqmsgNbHFhZ3i7 ztMhxlA5q8gFfrn3dOvzLWtaRBSU499HUKRkIIt6JhCVDMOfYq2yDopKp4YnkX+CcaD3 VyM0eZBMNnEaRoTcz/6jD1vlxKMKFXIvtH0+pI01IUqtDVimcyTZaZPcM/qK5fUHVgcw 5yMX4pb+FjsUrwohn3bEhHOTrauQobQKlWHh6gD6K7LmWMxGpzcwxWuLeF8pCSnUILvg d8Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764099770; x=1764704570; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XYzyEzWjGRI3sd+N+V0H4yOjf+wNz2/MgKDjSabE5Yc=; b=SrcKJw6UO0kymWy5C1ctM9vYpJF6kxU0HqN6KBrcpEcqVbtC5ni2YhpsqX+448XIdk tfJOL5pimaS8PQf2m0WnnD93eusN0L7+Ghp6jcXZTO/SwQlbbhu0KEKIPkrLborQ0yVK R69wklG3+kTlSieZl9sKaydYRo4mT6hKyuz+5obLA+biiaNbQv71SILZKHwhZjw2fWPj 4irAwJ8kpNxwtx13Awjn1iGBF004XczvBBYSRtm0al90121phezuy5iycDulkU6GfXU+ JOQ9iTCLayPDOTrMQHdT9E2Tzdzo1fnvfoBltO/e3Hjr0eW7KccwKxN1n/MG4cY4jPlL jqGw== X-Forwarded-Encrypted: i=1; AJvYcCU2QvfF5dtI5yEvAYBJyoYjeLwBuCxy9A45JK3xpRiWYn7KqiIjgwKaiNUGGjuIobC8uz/YdQSOe/sSJdE=@vger.kernel.org X-Gm-Message-State: AOJu0YxWpBxePRdaCe76rbEEzErFStBj7pgmyWs8si6cRHS/7LhoZijh SuXIdjeFPmoDoyE+MoTgtBYVsn8J6dYYmBmBbIi98GnSyzq2DHKvIpe7+mXMUDomP6CP+qD7YP9 czPyEkGn/lHVWY5IGR3al19gTgOsXJJd8pqwvN9OJzQp8ILgnEzaTV15iLW+9h35ZdQ== X-Gm-Gg: ASbGncvX2dkJ/GA/Hwoo65YQJwM0092Tl/sXeM4oAgqy7zdQ2Wnn3TqGQhc+WPqWK04 NELnLUoCAJuDgo/uut9TRMj/I0S5TcSSe+dcrO4Kg+74pce8xmhxjYgMWkU0psVHT07pJsApclF mrAfLWOyCpPIselxO0NyG9bcVEdnkvkRrzWRYth33MWLJgg3y4InbE6Lxy2posPQr9IJLQ7eegf MnYLgFAou9PGq6UTzKZ97Fddvx5xpkUwV8NF0XTZl+vsRcw6+AZ7SKe/Y7XJ7jcnRFvNv9DSRW/ 7a0Y69mH3Sh9GzdLdmNguz464ra+LmVNwuf5HTqw14zlolKV6oTBMBnKaCUSccafnQd7A6dt2d2 xmRg8Cpno73jM8+gESVc6wmKFLojcS1dSyJyiMQ+eh8oo X-Received: by 2002:a05:622a:15c7:b0:4ee:1625:f783 with SMTP id d75a77b69052e-4ee58a57849mr240628131cf.21.1764099769723; Tue, 25 Nov 2025 11:42:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2zrlXEGz8Fzd+K/KuGsrxEJEQzWyiUZ4iUBJcE2N5XYvMvBi0OSp2vU9DCTvtsWarlmgq3g== X-Received: by 2002:a05:622a:15c7:b0:4ee:1625:f783 with SMTP id d75a77b69052e-4ee58a57849mr240627871cf.21.1764099769406; Tue, 25 Nov 2025 11:42:49 -0800 (PST) Received: from redhat.com (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8846e46a4b2sm129052196d6.19.2025.11.25.11.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 11:42:48 -0800 (PST) Date: Tue, 25 Nov 2025 14:42:47 -0500 From: Brian Masney To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Stephen Boyd Subject: Re: drivers/clk/microchip/clk-core.c:915:10: sparse: sparse: Initializer entry defined twice Message-ID: References: <202511222115.uvHrP95A-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202511222115.uvHrP95A-lkp@intel.com> User-Agent: Mutt/2.2.14 (2025-02-20) On Sat, Nov 22, 2025 at 09:39:06PM +0800, kernel test robot wrote: > Hi Brian, > > First bad commit (maybe != root cause): > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 2eba5e05d9bcf4cdea995ed51b0f07ba0275794a > commit: 7d85cd8730ab7701a1cafd0db0d7b6b1f6cfbb91 clk: microchip: core: remove duplicate roclk_determine_rate() > date: 7 weeks ago > config: mips-randconfig-r134-20251122 (https://download.01.org/0day-ci/archive/20251122/202511222115.uvHrP95A-lkp@intel.com/config) > compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251122/202511222115.uvHrP95A-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202511222115.uvHrP95A-lkp@intel.com/ > > sparse warnings: (new ones prefixed by >>) > >> drivers/clk/microchip/clk-core.c:915:10: sparse: sparse: Initializer entry defined twice > drivers/clk/microchip/clk-core.c:919:10: sparse: also defined here > > vim +915 drivers/clk/microchip/clk-core.c > > ce6e1188465998 Purna Chandra Mandal 2016-05-13 910 > ce6e1188465998 Purna Chandra Mandal 2016-05-13 911 /* sclk with post-divider */ > ce6e1188465998 Purna Chandra Mandal 2016-05-13 912 const struct clk_ops pic32_sclk_ops = { > ce6e1188465998 Purna Chandra Mandal 2016-05-13 913 .get_parent = sclk_get_parent, > ce6e1188465998 Purna Chandra Mandal 2016-05-13 914 .set_parent = sclk_set_parent, > e9f039c08cdc9b Brian Masney 2025-08-11 @915 .determine_rate = sclk_determine_rate, > ce6e1188465998 Purna Chandra Mandal 2016-05-13 916 .set_rate = sclk_set_rate, > ce6e1188465998 Purna Chandra Mandal 2016-05-13 917 .recalc_rate = sclk_get_rate, > ce6e1188465998 Purna Chandra Mandal 2016-05-13 918 .init = sclk_init, > ce6e1188465998 Purna Chandra Mandal 2016-05-13 919 .determine_rate = __clk_mux_determine_rate, > ce6e1188465998 Purna Chandra Mandal 2016-05-13 920 }; > ce6e1188465998 Purna Chandra Mandal 2016-05-13 921 > > :::::: The code at line 915 was first introduced by commit > :::::: e9f039c08cdc9b38665aee9a88ae21f59c09ba8c clk: microchip: core: convert from round_rate() to determine_rate() > > :::::: TO: Brian Masney > :::::: CC: Brian Masney Thanks for the report. I posted a fix for this: https://lore.kernel.org/linux-clk/20251125-clk-microchip-fixes-v1-0-6c1f5573d1b9@redhat.com/T/#t Brian