All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jon Hunter <jonathanh@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jonhunter:tegra/phy 7/8] drivers/phy/tegra/xusb.c:1261:10: warning: data argument not used by format string
Date: Wed, 23 Sep 2026 07:45:33 +0800	[thread overview]
Message-ID: <202609230734.kIMmPtIp-lkp@intel.com> (raw)

tree:   https://github.com/jonhunter/linux tegra/phy
head:   9e9fa3f13e336e32163c18c43a5543007dd180fc
commit: 2116b46dd4b4aa9036f83bdbd828d6aa6fec9bed [7/8] phy: tegra: xusb: Use dev_err_probe()
config: arm-defconfig (https://download.01.org/0day-ci/archive/20260923/202609230734.kIMmPtIp-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5dc57157f12f0ff676e823d9b4d98b45c07e5df2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260923/202609230734.kIMmPtIp-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609230734.kIMmPtIp-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/phy/tegra/xusb.c:1261:10: warning: data argument not used by format string [-Wformat-extra-args]
    1260 |                 dev_err_probe(&pdev->dev, err, "failed to setup XUSB ports\n",
         |                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1261 |                               err);
         |                               ^
   1 warning generated.


vim +1261 drivers/phy/tegra/xusb.c

  1180	
  1181	static int tegra_xusb_padctl_probe(struct platform_device *pdev)
  1182	{
  1183		struct device_node *np = pdev->dev.of_node;
  1184		const struct tegra_xusb_padctl_soc *soc;
  1185		struct tegra_xusb_padctl *padctl;
  1186		const struct of_device_id *match;
  1187		int err;
  1188	
  1189		/* for backwards compatibility with old device trees */
  1190		np = of_get_child_by_name(np, "pads");
  1191		if (!np) {
  1192			dev_warn(&pdev->dev, "deprecated DT, using legacy driver\n");
  1193			return tegra_xusb_padctl_legacy_probe(pdev);
  1194		}
  1195	
  1196		of_node_put(np);
  1197	
  1198		match = of_match_node(tegra_xusb_padctl_of_match, pdev->dev.of_node);
  1199		soc = match->data;
  1200	
  1201		padctl = soc->ops->probe(&pdev->dev, soc);
  1202		if (IS_ERR(padctl))
  1203			return PTR_ERR(padctl);
  1204	
  1205		platform_set_drvdata(pdev, padctl);
  1206		INIT_LIST_HEAD(&padctl->ports);
  1207		INIT_LIST_HEAD(&padctl->lanes);
  1208		INIT_LIST_HEAD(&padctl->pads);
  1209		mutex_init(&padctl->lock);
  1210	
  1211		padctl->regs = devm_platform_ioremap_resource(pdev, 0);
  1212		if (IS_ERR(padctl->regs)) {
  1213			err = PTR_ERR(padctl->regs);
  1214			goto remove;
  1215		}
  1216	
  1217		padctl->rst = devm_reset_control_get(&pdev->dev, NULL);
  1218		if (IS_ERR(padctl->rst)) {
  1219			err = PTR_ERR(padctl->rst);
  1220			goto remove;
  1221		}
  1222	
  1223		padctl->supplies = devm_kcalloc(&pdev->dev, padctl->soc->num_supplies,
  1224						sizeof(*padctl->supplies), GFP_KERNEL);
  1225		if (!padctl->supplies) {
  1226			err = -ENOMEM;
  1227			goto remove;
  1228		}
  1229	
  1230		regulator_bulk_set_supply_names(padctl->supplies,
  1231						padctl->soc->supply_names,
  1232						padctl->soc->num_supplies);
  1233	
  1234		err = devm_regulator_bulk_get(&pdev->dev, padctl->soc->num_supplies,
  1235					      padctl->supplies);
  1236		if (err < 0) {
  1237			dev_err_probe(&pdev->dev, err, "failed to get regulators\n");
  1238			goto remove;
  1239		}
  1240	
  1241		err = reset_control_deassert(padctl->rst);
  1242		if (err < 0)
  1243			goto remove;
  1244	
  1245		err = regulator_bulk_enable(padctl->soc->num_supplies,
  1246					    padctl->supplies);
  1247		if (err < 0) {
  1248			dev_err(&pdev->dev, "failed to enable supplies: %d\n", err);
  1249			goto reset;
  1250		}
  1251	
  1252		err = tegra_xusb_setup_pads(padctl);
  1253		if (err < 0) {
  1254			dev_err(&pdev->dev, "failed to setup pads: %d\n", err);
  1255			goto power_down;
  1256		}
  1257	
  1258		err = tegra_xusb_setup_ports(padctl);
  1259		if (err) {
  1260			dev_err_probe(&pdev->dev, err, "failed to setup XUSB ports\n",
> 1261				      err);
  1262			goto remove_pads;
  1263		}
  1264	
  1265		return 0;
  1266	
  1267	remove_pads:
  1268		tegra_xusb_remove_pads(padctl);
  1269	power_down:
  1270		regulator_bulk_disable(padctl->soc->num_supplies, padctl->supplies);
  1271	reset:
  1272		reset_control_assert(padctl->rst);
  1273	remove:
  1274		platform_set_drvdata(pdev, NULL);
  1275		soc->ops->remove(padctl);
  1276		return err;
  1277	}
  1278	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-22 23:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609230734.kIMmPtIp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jonathanh@nvidia.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.