Skip to content

Commit

Permalink
fix v4.1.0 build issues: (#378)
Browse files Browse the repository at this point in the history
- CMake missing include directory for config.h
- build warnings on unused variables and different signedness
  • Loading branch information
charlie-foxtrot authored May 2, 2023
1 parent ea0f191 commit cf90caa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/hello_fft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_library(hello_fft OBJECT
${hello_fft_source_files}
)
target_include_directories(hello_fft PUBLIC
".."
".." # needed for rtl_airband.h
"${CMAKE_CURRENT_BINARY_DIR}/.." # needed for config.h
${BCM_VC_INCLUDE_DIRS}
)
2 changes: 1 addition & 1 deletion src/hello_fft/gpu_fft.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ unsigned int *gpu_fft_shader_code(int);

unsigned gpu_fft_base_exec (
struct GPU_FFT_BASE *base,
int num_qpus);
unsigned num_qpus);

int gpu_fft_alloc (
int mb,
Expand Down
6 changes: 3 additions & 3 deletions src/hello_fft/gpu_fft_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

unsigned gpu_fft_base_exec_direct (
struct GPU_FFT_BASE *base,
int num_qpus) {
unsigned num_qpus) {

unsigned q, t;
unsigned q;

base->peri[V3D_DBCFG] = 0; // Disallow IRQ
base->peri[V3D_DBQITE] = 0; // Disable IRQ
Expand All @@ -77,7 +77,7 @@ unsigned gpu_fft_base_exec_direct (

unsigned gpu_fft_base_exec(
struct GPU_FFT_BASE *base,
int num_qpus) {
unsigned num_qpus) {

if (base->vc_msg) {
// Use mailbox
Expand Down
2 changes: 1 addition & 1 deletion src/hello_fft/gpu_fft_twiddles.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static float *twiddles_base_64(double two_pi, float *out) {

/****************************************************************************/

static float *twiddles_step_16(double two_pi, float *out, double theta) {
static float *twiddles_step_16(double /*two_pi*/, float *out, double theta) {
int i;
for (i=0; i<16; i++) {
*out++ = ALPHA(theta*k[i]);
Expand Down

0 comments on commit cf90caa

Please sign in to comment.