HP cannot void the warranty for using non-HP cartridges. In fact MAGNUSON-MOSS WARRANTY IMPROVEMENT ACT makes illegal for HP to void the warranty for using non-HP cartridge.
Here is what HP states regarding Non-HP Laser Print Cartridge Use
(http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c01848047)
For HP printer products, the use of a non-HP toner cartridge or a refilled toner cartridge does not affect either the warranty to the customer or any HP support contract with the customer. However, if printer failure or damage is attributable to the use of a non-HP or refilled toner cartridge, HP will charge its standard time and materials charges to service the printer for the particular failure or damage.
Answered by TP on Jun 7, 2016