They don't provide any value and are quite arbitrary. Note arm64 GENERIC-MMCCAM was already excluded, just not the NODEBUG variant. The option is already build-tested with arm64 LINT kernel.
Details
- Reviewers
manu imp - Commits
- rG6b9acd1bfba7: Exclude MMCCAM kernels from make universe
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
I don't think that it's true that they don't provide any value, the code path for mmccam is compile tested that way.
I'm fine for removing some if really you insist but at least one should stay.
it looks to be in sys/arm64/conf/NOTES... I'd think that would be enough to test it... It might be a good idea to leave the 32-bit arm one enabled, but I'm agnostic on that since I know we have a lot of arm kernels.
huh.
diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c index a7283e66df31..1f71f7eba341 100644 --- a/sys/dev/sdhci/sdhci.c +++ b/sys/dev/sdhci/sdhci.c @@ -121,6 +121,7 @@ static void sdhci_write_block_pio(struct sdhci_slot *slot); static void sdhci_transfer_pio(struct sdhci_slot *slot); #ifdef MMCCAM +#error set /* CAM-related */ static void sdhci_cam_action(struct cam_sim *sim, union ccb *ccb); static int sdhci_cam_get_possible_host_clock(const struct sdhci_slot *slot, @@ -129,6 +130,8 @@ static void sdhci_cam_poll(struct cam_sim *sim); static int sdhci_cam_request(struct sdhci_slot *slot, union ccb *ccb); static int sdhci_cam_settran_settings(struct sdhci_slot *slot, union ccb *ccb); static int sdhci_cam_update_ios(struct sdhci_slot *slot); +#else +#error not set #endif /* helper routines */
make -s -j 40 buildkernel TARGET_ARCH=armv7 KERNCONF=LINT
/tank/users/mjg/src/freebsd/sys/dev/sdhci/sdhci.c:134:2: error: not set
#error not set
now that's a bummer.
In that case I concede one kernel which uses it should be left.
I don't care which one.
Just tell me which one to keep (the 32-bit?) and accept, then I'll commit only the other two.
I think that it would be better to remove all the ones from you review from universe and add the arm64 one to it (it's more used on arm64 than armv7)
So I'm good with the added NO_UNIVERSE tags...
We might be able to not remove the one I flagged, but I'm good either way...
sys/arm64/conf/GENERIC-MMCCAM | ||
---|---|---|
9 | LINT already has MMCCAM in it, so I don't think we need to remove this unless there's something I'm missing. sys/arm64/conf/NOTES:options MMCCAM |
So I tested all the archs.
armv7 and amd64 don't have MMCCAM in LINT, but arm64 indeed does, consequently the code already gets build without any of -MMCCAM kernels. I'm going to revert this review back to previous form then.