x86/raid6: correctly check for assembler capabilities
[firefly-linux-kernel-4.4.55.git] / lib / raid6 / recov_ssse3.c
index a9168328f03b3dac26f9f2fbd15fe1397147ee2e..cda33e56a5e34633f608703bcb92410d8035dcb9 100644 (file)
@@ -7,6 +7,8 @@
  * of the License.
  */
 
+#ifdef CONFIG_AS_SSSE3
+
 #include <linux/raid/pq.h>
 #include "x86.h"
 
@@ -330,3 +332,7 @@ const struct raid6_recov_calls raid6_recov_ssse3 = {
 #endif
        .priority = 1,
 };
+
+#else
+#warning "your version of binutils lacks SSSE3 support"
+#endif