Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (â‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Armbian build PR] - Fix uwe5622 compilation with fortify

Featured Replies

Description

Fix compilation of the uwe5622 driver with fortify enabled. Currently I get the following error:

[🔨]   In function 'strncpy',
[🔨]       inlined from 'sprdwl_cfg80211_scan' at drivers/net/wireless/uwe5622/unisocwifi/cfg80211.c:1541:4:
[🔨]   ./include/linux/fortify-string.h:144:17: error: call to '__write_overflow' declared with attribute error: detected write beyond size of object (1st parameter)
[🔨]     144 |                 __write_overflow();
[🔨]         |                 ^~~~~~~~~~~~~~~~~~
[🔨]   make[8]: *** [scripts/Makefile.build:243: drivers/net/wireless/uwe5622/unisocwifi/cfg80211.o] Error 1

It seems that fortify considers the 0 sized array at the end of the struct as actually being 0 sized rather than it's pre-C99 meaning of undefined size array.

This patch changes to the standard C99 representation of undefined size array at end of struct.

How Has This Been Tested?

Compilation of the rockchip64-edge kernel (6.7).

Checklist:

  • [X] My code follows the style guidelines of this project
  • [X] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [X] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.